oracle 执行netca 时报错 An unexpected exception has been detected in native code outside the VM 的解决方案,安装好oracle
Oracle 执行netca 时报错 An unexpected exception has been detected in native code outside the VM 的解决方案
安装好oracle 10后,配置网络监听,执行 netca ,报错如下:
Oracle Net Services Configuration: An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0xB7E52093 Function=index+0x63
Library=/lib/tls/libc.so.6 Current Java thread: at oracle.net.common.NetGetEnv.getDNSDomain(Native Method) at oracle.net.ca.ConfigureProfile.setDefaultProfileParams(Unknown Source) at oracle.net.ca.InitialSetup.setupConfigObjects(Unknown Source) at oracle.net.ca.InitialSetup.
错误的原因是未在 /etc/hosts 文件中添加hostname对应的ip地址。
解决:
查看主机名shell下执行 hostname 譬如 hostnameAAA
查看IP地址,执行ifconfig 譬如 XXX.XXX.X.XXX
vi /etc/hosts
在 127.0.0.1 这一行的下面添加一行:
XXX.XXX.X.XXX hostnameAAA
保存即可。
怎样解决ORA-01078 & LRM-00109错误
SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/opt/oracle/products/10.1.0.3/db_1/dbs/initrawdb.ora'
解决办法:
cp $ORACLE_BASE/admin/$ORACLE_SID/pfile/init.ora /opt/oracle/products/10.1.0.3/db_1/dbs/initrawdb.ora
> sqlplus /nolog
SQL*Plus: Release 10.1.0.3.0 - Production on Thu Jun 8 13:16:00 2006
Copyright (c) 1982, 2004, Oracle. All rights reserved.
SQL> conn / as sysdba
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 167772160 bytes
Fixed Size 778212 bytes
Variable Size 57679900 bytes
Database Buffers 109051904 bytes
Redo Buffers 262144 bytes
Database mounted.
Database opened.
SQL>
问题解决!
注:Oracle在启动过程中,需要读取参数文件(pfile/spfile)来创建实例.Oracle在启动过程中,寻找参数文件的顺序为:spfile
问题补充:错误信息:
SQL> conn sys/oracle@xzomc as sysdba
Connected to an idle instance.
SQL> startup pfile=/oracleapp/u01/app/oracle/admin/xzomc/pfile/initgomcr.ora
LRM-00109: could not open parameter file '/oracleapp/u01/app/oracle/admin/xzomc/pfile/initgomcr.ora'
ORA-01078: failure in processing system parameters
解决办法:
$ cp $ORACLE_BASE/admin/xzomc/pfile/init.ora.728200794421 /oracleapp/u01/app/oracle/product/10.2.0/dbs/initrawdb.ora
SQL> conn sys/oracle@xzomc as sysdba;
Connected to an idle instance.
SQL> startup pfile=$ORACLE_BASE/admin/xzomc/pfile/init.ora.728200794421
ORACLE instance started.
Total System Global Area 2550136832 bytes
Fixed Size 1980808 bytes
Variable Size 536872568 bytes
Database Buffers 1996488704 bytes
Redo Buffers 14794752 bytes
Database mounted.
Database opened.
也可能是ORACLE_SID的问题,问题出在设置oracle用户.bash_profile文件的ORACLE_SID变量时,写为了 ORACLE_SID=wilson ,在startup的时候报错,其实真正的数据库实例名称是venus。
,