hostname引发的内部错误 | ORA-00600 keltnfy-ldmInit |
近期在迁移数据库的时候无意中遇到一个比较ORA-00600的错误,特此记录。
当时我只想登入一个普通的测试用户,看看新数据库的情况:
SQL> connect scott/tiger ERROR: ORA-00600: internal error code, arguments: [%s], [%s], [%s], [%s], [%s], [%s], [%s], [%s] Warning: You are no longer connected to ORACLE.
尝试几次看后故障类似,查看 alert 文件发现:
Completed: ALTER DATABASE OPEN Fri Oct 8 14:12:42 2010 Shutting down archive processes Fri Oct 8 14:12:47 2010 ARCH shutting down ARC2: Archival stopped Fri Oct 8 14:50:37 2010 Errors in file /u01/app/admin/ora8i/udump/ora8i_ora_7629.trc: ORA-00600: internal error code, arguments: [keltnfy-ldmInit], [46], [1], [], [], [], [], [] Fri Oct 8 14:54:39 2010 Errors in file /u01/app/admin/ora8i/udump/ora8i_ora_7814.trc: ORA-00600: internal error code, arguments: [keltnfy-ldmInit], [46], [1], [], [], [], [], [] Fri Oct 8 14:54:45 2010 Errors in file /u01/app/admin/ora8i/udump/ora8i_ora_7816.trc: ORA-00600: internal error code, arguments: [keltnfy-ldmInit], [46], [1], [], [], [], [], [] Fri Oct 8 14:54:52 2010 Errors in file /u01/app/admin/ora8i/udump/ora8i_ora_7819.trc: ORA-00600: internal error code, arguments: [keltnfy-ldmInit], [46], [1], [], [], [], [], []
检查一下Oracle进程,还在,借助万能的google终于将问题定位到了 hostname 的设置上。
在Linux中是在 /etc/sysconfig/network 中设置 hostname。同时要将该hostname 也写一份在 /etc/hosts 这个文件中。
检查的方法很简单,在shell中执行 ping $HOSTNAME ,看看解析出来的地址是不是本机的地址,如果不是,应仔细检查上述的两个文件。