cent5.5_X86系统单节点安装oracle10g,软件安装正常,配置监听报如下错误:
[oracle@c1 bin]$ ./netca
Oracle Net Services Configuration:
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x525B33 Function=index+0x63 Library=/lib/libc.so.6Current 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:
00453000-0046a000 r-xp 00000000 08:02 1083195 /usr/lib/libICE.so.6.3.0 0046a000-0046b000 rwxp 00016000 08:02 1083195 /usr/lib/libICE.so.6.3.0 0047b000-00483000 r-xp 00000000 08:02 1082743 /usr/lib/libSM.so.6.0.0 00483000-00484000 rwxp 00007000 08:02 1082743 /usr/lib/libSM.so.6.0.0 00493000-004ad000 r-xp 00000000 08:02 3287151 /lib/ld-2.5.so 004ad000-004ae000 r-xp 00019000 08:02 3287151 /lib/ld-2.5.so 004ae000-004af000 rwxp 0001a000 08:02 3287151 /lib/ld-2.5.so 004b1000-004b3000 r-xp 00000000 08:02 1083097 /usr/lib/libXau.so.6.0.0 004b3000-004b4000 rwxp 00001000 08:02 1083097 /usr/lib/libXau.so.6.0.0 004b6000-005f5000 r-xp 00000000 08:02 3287155 /lib/libc-2.5.so 005f5000-005f6000 --xp 0013f000 08:02 3287155 /lib/libc-2.5.so 005f6000-005f8000 r-xp 0013f000 08:02 3287155 /lib/libc-2.5.so 005f8000-005f9000 rwxp 00141000 08:02 3287155 /lib/libc-2.5.so 005fe000-00600000 r-xp 00000000 08:02 3289477 /lib/libdl-2.5.so 00600000-00601000 r-xp 00001000 08:02 3289477 /lib/libdl-2.5.so 00601000-00602000 rwxp 00002000 08:02 3289477 /lib/libdl-2.5.so 00604000-00629000 r-xp 00000000 08:02 3289451 /lib/libm-2.5.so 00629000-0062a000 r-xp 00024000 08:02 3289451 /lib/libm-2.5.so 0062a000-0062b000 rwxp 00025000 08:02 3289451 /lib/libm-2.5.so 0062d000-00641000 r-xp 00000000 08:02 3289483 /lib/libpthread-2.5.so 00641000-00642000 r-xp 00013000 08:02 3289483 /lib/libpthread-2.5.so 00642000-00643000 rwxp 00014000 08:02 3289483 /lib/libpthread-2.5.so 00667000-0066c000 r-xp 00000000 08:02 1086714 /usr/lib/libXtst.so.6.1.0 0066c000-0066d000 rwxp 00004000 08:02 1086714 /usr/lib/libXtst.so.6.1.0 006c9000-006ce000 r-xp 00000000 08:02 1082959 /usr/lib/libXdmcp.so.6.0.0 006ce000-006cf000 rwxp 00004000 08:02 1082959 /usr/lib/libXdmcp.so.6.0.0 00771000-00870000 r-xp 00000000 08:02 1083119 /usr/lib/libX11.so.6.2.0 00870000-00874000 rwxp 000ff000 08:02 1083119 /usr/lib/libX11.so.6.2.0 008c5000-008d4000 r-xp 00000000 08:02 1086330 /usr/lib/libXext.so.6.4.0 008d4000-008d5000 rwxp 0000e000 08:02 1086330 /usr/lib/libXext.so.6.4.0 008d7000-008ea000 r-xp 00000000 08:02 3289480 /lib/libnsl-2.5.so 008ea000-008eb000 r-xp 00012000 08:02 3289480 /lib/libnsl-2.5.so 008eb000-008ec000 rwxp 00013000 08:02 3289480 /lib/libnsl-2.5.so 00dcd000-00ddc000 r-xp 00000000 08:02 3289479 /lib/libresolv-2.5.so 00ddc000-00ddd000 r-xp 0000e000 08:02 3289479 /lib/libresolv-2.5.so 00ddd000-00dde000 rwxp 0000f000 08:02 3289479 /lib/libresolv-2.5.so 0290d000-02961000 r-xp 00000000 08:02 1082745 /usr/lib/libXt.so.6.0.0 02961000-02965000 rwxp 00054000 08:02 1082745 /usr/lib/libXt.so.6.0.0 08048000-08056000 r-xp 00000000 08:02 2929506 /oracle/db/jdk/jre/bin/java 08056000-08059000 rwxp 0000d000 08:02 2929506 /oracle/db/jdk/jre/bin/java 08f50000-09309000 rwxp 08f50000 00:00 0 [heap] a920d000-a9211000 r-xp 00000000 08:02 3286982 /lib/libnss_dns-2.5.so a9211000-a9212000 r-xp 00003000 08:02 3286982 /lib/libnss_dns-2.5.so a9212000-a9213000 rwxp 00004000 08:02 3286982 /lib/libnss_dns-2.5.so a9213000-a9220000 r-xp 00000000 08:02 2642702 /oracle/db/lib/libldapjclnt10.so a9220000-a9222000 rwxp 0000c000 08:02 2642702 /oracle/db/lib/libldapjclnt10.so a9222000-a93fe000 r-xp 00000000 08:02 2646082 /oracle/db/lib/libnnz10.so a93fe000-a9424000 rwxp 001dc000 08:02 2646082 /oracle/db/lib/libnnz10.so a9426000-aa157000 r-xp 00000000 08:02 2645580 /oracle/db/lib/libclntsh.so.10.1 aa157000-aa1b8000 rwxp 00d31000 08:02 2645580 /oracle/db/lib/libclntsh.so.10.1 aa1cc000-aa1e1000 r-xp 00000000 08:02 2645882 /oracle/db/lib/libnjni10.so aa1e1000-aa1e5000 rwxp 00014000 08:02 2645882 /oracle/db/lib/libnjni10.so aa1e5000-aa30d000 r-xs 00000000 08:02 2645331 /oracle/db/lib/xmlparserv2.jar aa30d000-aa314000 r-xp 00000000 08:02 1082705 /usr/lib/libXp.so.6.2.0 aa314000-aa315000 rwxp 00006000 08:02 1082705 /usr/lib/libXp.so.6.2.0 aa320000-aa373000 r-xp 00000000 08:02 2929407 /oracle/db/jdk/jre/lib/i386/libmlib_p_w_picpath.so aa373000-aa374000 rwxp 00052000 08:02 2929407 /oracle/db/jdk/jre/lib/i386/libmlib_p_w_picpath.so aa374000-aa645000 r-xp 00000000 08:02 2929390 /oracle/db/jdk/jre/lib/i386/libawt.so aa645000-aa65b000 rwxp 002d0000 08:02 2929390 /oracle/db/jdk/jre/lib/i386/libawt.so aa680000-aaa1d000 r-xs 00000000 08:02 2646181 /oracle/db/oui/jlib/OraInstaller.jar aaa1d000-aaa2b000 r-xs 00000000 08:02 2640816 /oracle/db/jlib/srvmhas.jar aaa2b000-aaaf2000 r-xs 00000000 08:02 2640814 /oracle/db/jlib/srvm.jar aaaf2000-aab00000 r-xs 00000000 08:02 2640467 /oracle/db/jlib/ewtcompat-3_3_15.jar aab00000-aab0e000 r-xs 00000000 08:02 2646084 /oracle/db/jlib/share.jar aab0e000-aabc3000 r-xs 00000000 08:02 2645724 /oracle/db/jlib/oracle_ice.jar aabc3000-aad6a000 r-xs 00000000 08:02 2645722 /oracle/db/jlib/jewt4.jar aad6a000-aadcf000 r-xs 00000000 08:02 2645314 /oracle/db/jlib/help4.jar aadcf000-ab054000 r-xs 00000000 08:02 2645725 /oracle/db/jlib/ewt3.jar ab054000-ab06c000 r-xs 00000000 08:02 2640573 /oracle/db/jlib/jndi.jar ab06c000-ab0b1000 r-xs 00000000 08:02 2640556 /oracle/db/ldap/oidadmin/dasnls.jar ab0b1000-ab0bd000 r-xs 00000000 08:02 2640912 /oracle/db/jlib/jssl-1_1.jar ab0bd000-ab106000 r-xs 00000000 08:02 2645925 /oracle/db/jlib/netcfg.jar ab106000-ab19e000 r-xs 00000000 08:02 2642578 /oracle/db/jlib/ldapjclnt10.jar ab19e000-ab1d0000 r-xs 00000000 08:02 2640392 /oracle/db/network/jlib/netca.jar ab1d0000-ab1f6000 r-xs 00000000 08:02 2640393 /oracle/db/network/jlib/netcam.jar ab1f6000-ab1f9000 r-xs 00000000 08:02 2646775 /oracle/db/jdk/jre/lib/ext/jta.jar ab1f9000-ab206000 r-xs 00000000 08:02 2646868 /oracle/db/jdk/jre/lib/ext/ldapsec.jar ab206000-ab222000 r-xs 00000000 08:02 2646870 /oracle/db/jdk/jre/lib/ext/sunjce_provider.jar ab222000-ab248000 r-xs 00000000 08:02 2646777 /oracle/db/jdk/jre/lib/ext/mailapi.jar ab248000-ab304000 r-xs 00000000 08:02 2646869 /oracle/db/jdk/jre/lib/ext/localedata.jar ab304000-ab349000 r-xs 00000000 08:02 2646776 /oracle/db/jdk/jre/lib/ext/mail.jar ab54d000-ab74d000 r-xp 00000000 08:02 1079142 /usr/lib/locale/locale-archive b3950000-b395e000 r-xs 00000000 08:02 2646779 /oracle/db/jdk/jre/lib/ext/activation.jar b5a06000-b5fa6000 r-xs 00000000 08:02 2646819 /oracle/db/jdk/jre/lib/charsets.jar b5fa6000-b5fb7000 r-xs 00000000 08:02 2646857 /oracle/db/jdk/jre/lib/jce.jar b5fb7000-b6094000 r-xs 00000000 08:02 2646858 /oracle/db/jdk/jre/lib/jsse.jar b6094000-b60aa000 r-xs 00000000 08:02 2646866 /oracle/db/jdk/jre/lib/sunrsasign.jar b60f4000-b7a9f000 r-xs 00000000 08:02 2646865 /oracle/db/jdk/jre/lib/rt.jar b7a9f000-b7ab3000 r-xp 00000000 08:02 2929413 /oracle/db/jdk/jre/lib/i386/libzip.so b7ab3000-b7ab6000 rwxp 00013000 08:02 2929413 /oracle/db/jdk/jre/lib/i386/libzip.so b7ab6000-b7ad6000 r-xp 00000000 08:02 2929398 /oracle/db/jdk/jre/lib/i386/libjava.so b7ad6000-b7ad8000 rwxp 0001f000 08:02 2929398 /oracle/db/jdk/jre/lib/i386/libjava.so b7ad8000-b7ae8000 r-xp 00000000 08:02 2929412 /oracle/db/jdk/jre/lib/i386/libverify.so b7ae8000-b7aea000 rwxp 0000f000 08:02 2929412 /oracle/db/jdk/jre/lib/i386/libverify.so b7aea000-b7af3000 r-xp 00000000 08:02 3286984 /lib/libnss_files-2.5.so b7af3000-b7af4000 r-xp 00008000 08:02 3286984 /lib/libnss_files-2.5.so b7af4000-b7af5000 rwxp 00009000 08:02 3286984 /lib/libnss_files-2.5.so b7af6000-b7af9000 r-xs 00000000 08:02 2646867 /oracle/db/jdk/jre/lib/ext/dnsns.jar b7af9000-b7afc000 r-xs 00000000 08:02 2646778 /oracle/db/jdk/jre/lib/ext/smtp.jar b7afc000-b7b00000 rwxs 00000000 08:02 1790444 /tmp/hsperfdata_oracle/9233 b7b00000-b7f06000 r-xp 00000000 08:02 2929421 /oracle/db/jdk/jre/lib/i386/client/libjvm.so b7f06000-b7f21000 rwxp 00405000 08:02 2929421 /oracle/db/jdk/jre/lib/i386/client/libjvm.so b7f37000-b7f3f000 r-xp 00000000 08:02 2929423 /oracle/db/jdk/jre/lib/i386/native_threads/libhpi.so b7f3f000-b7f40000 rwxp 00007000 08:02 2929423 /oracle/db/jdk/jre/lib/i386/native_threads/libhpi.so b7f41000-b7f42000 r-xp b7f41000 00:00 0 [vdso] bfd36000-bfd4b000 rwxp bffea000 00:00 0 [stack]Heap at VM Abort:
Heap def new generation total 576K, used 244K [0xab950000, 0xab9f0000, 0xabe30000) eden space 512K, 35% used [0xab950000, 0xab97d2f8, 0xab9d0000) from space 64K, 100% used [0xab9e0000, 0xab9f0000, 0xab9f0000) to space 64K, 0% used [0xab9d0000, 0xab9d0000, 0xab9e0000) tenured generation total 1408K, used 493K [0xabe30000, 0xabf90000, 0xaf950000) the space 1408K, 35% used [0xabe30000, 0xabeab5e8, 0xabeab600, 0xabf90000) compacting perm gen total 4096K, used 3559K [0xaf950000, 0xafd50000, 0xb3950000) the space 4096K, 86% used [0xaf950000, 0xafcc9cc0, 0xafcc9e00, 0xafd50000)Local Time = Sat Oct 22 00:01:11 2011
Elapsed Time = 0 # # The exception above was detected in native code outside the VM # # Java VM: Java HotSpot(TM) Client VM (1.4.2_08-b03 mixed mode) # # An error report file has been saved as hs_err_pid9233.log. # Please refer to the file for further information. # ./netca: line 190: 9233 Aborted $JRE -mx64m $SRVM_PROPERTY_DEFS -Dsun.java2d.font.DisableAlgorithmicStyles=true -classpath $CLASSPATH oracle.net.ca.NetCA $* 分析:[root@c1 oracle]# hostname
c1 [root@c1 oracle]#cat /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 localhost6192.168.1.161 c1.bjqtd.com
192.168.1.162 c2.bjqtd.com
原来hosts文件与主机名不匹配,后来想想,开始的时候用的主机名是c1,c2,后来因为要做双机,改为了c1.bjqtd.com,c2.bjqtd.com
解决方法:
[root@c1 oracle]# vi/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 192.168.1.161 c1.bjqtd.com c1 192.168.1.162 c2.bjqtd.com c2保存,继续配置监听,下回可不要这么粗心咯!!