现在的位置: 首页 > 综合 > 正文

oracle 执行netca 时报错 An unexpected exception has been detected in native code outside the VM 的解决方案

2013年04月20日 ⁄ 综合 ⁄ 共 2293字 ⁄ 字号 评论关闭

环境:
vmware
suse linux
oracle 10g

远程登陆使用 secureCRT

安装好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.<init>(Unknown Source)
at oracle.net.ca.NetCA.main(Unknown Source)
 
Dynamic libraries:
08048000-08056000 r-xp 00000000 03:06 263311 /u01/oracle/product/10.2.0/db/jdk/jre/bin/java
08056000-08059000 rwxp 0000d000 03:06 263311 /u01/oracle/product/10.2.0/db/jdk/jre/bin/java
08059000-08365000 rwxp 08059000 00:00 0 [heap]
a90b4000-a90c3000 r-xp 00000000 03:06 15511 /lib/tls/libresolv-2.3.2.so
a90c3000-a90c4000 rwxp 0000f000 03:06 15511 /lib/tls/libresolv-2.3.2.so
 
[...]
 
b7f28000-b7f30000 r-xp 00000000 03:06 263228 /u01/oracle/product/10.2.0/db/jdk/jre/lib/i386/native_threads/libhpi.so
b7f30000-b7f31000 rwxp 00007000 03:06 263228 /u01/oracle/product/10.2.0/db/jdk/jre/lib/i386/native_threads/libhpi.so
b7f32000-b7f48000 r-xp 00000000 03:06 15468 /lib/ld-2.3.2.so
b7f48000-b7f49000 rwxp 00015000 03:06 15468 /lib/ld-2.3.2.so
bf833000-bf848000 rwxp bf833000 00:00 0 [stack]
ffffe000-fffff000 ---p 00000000 00:00 0 [vdso]
 
Heap at VM Abort:
Heap
def new generation total 576K, used 345K [0xab7b0000, 0xab850000, 0xabc90000)
eden space 512K, 60% used [0xab7b0000, 0xab7fd228, 0xab830000)
from space 64K, 58% used [0xab840000, 0xab849508, 0xab850000)
to space 64K, 0% used [0xab830000, 0xab830000, 0xab840000)
tenured generation total 1408K, used 544K [0xabc90000, 0xabdf0000, 0xaf7b0000)
the space 1408K, 38% used [0xabc90000, 0xabd18148, 0xabd18200, 0xabdf0000)
compacting perm gen total 4096K, used 3573K [0xaf7b0000, 0xafbb0000, 0xb37b0000)
the space 4096K, 87% used [0xaf7b0000, 0xafb2d678, 0xafb2d800, 0xafbb0000)
 
Local Time = Tue Oct 23 21:36:23 2007
Elapsed Time = 6
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot™ Client VM (1.4.2_08-b03 mixed mode)
#
# An error report file has been saved as hs_err_pid9698.log.
# Please refer to the file for further information.
#

错误的原因是未在 /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

保存即可。 ;)

抱歉!评论已关闭.