copy了一台虚拟机,启动oracle的时候提示
ORA-00600: internal error code, arguments: [keltnfy-ldmInit], [46], [1], [], [], [], [], []
这是因为hostname 和/etc/hosts不一致造成的
# more /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
hosts文件说明
#第一部份:网络IP地址;
#第二部份:主机名或域名;
#第三部份:主机名别名;
# hostname
[oracle@resourceintf bin]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Thu Sep 27 15:12:50 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 1895825408 bytes
Fixed Size 2021696 bytes
Variable Size 889194176 bytes
Database Buffers 989855744 bytes
Redo Buffers 14753792 bytes
Database mounted.
Database opened.
ORA-00600: internal error code, arguments: [keltnfy-ldmInit], [46], [1], [], [], [], [], []
这是因为hostname 和/etc/hosts不一致造成的
# more /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
hosts文件说明
#第一部份:网络IP地址;
#第二部份:主机名或域名;
#第三部份:主机名别名;
直接在上面的文件里追加
127.0.0.1 resourceintf(hostname的值)
不要删除127.0.0.1 localhost.localdomain localhost
否则listener.ora里面用了localhost,启动的时候会提示
TNS-12537: TNS:connection closed
TNS-12560: TNS:protocol adapter error
TNS-00507: Connection closed
Linux Error: 29: Illegal seek
# hostname
resourceintf
# vi /etc/hosts
重新启动oracle
# su oracle[oracle@resourceintf bin]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Thu Sep 27 15:12:50 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 1895825408 bytes
Fixed Size 2021696 bytes
Variable Size 889194176 bytes
Database Buffers 989855744 bytes
Redo Buffers 14753792 bytes
Database mounted.
Database opened.