oracle安装完成netca无法启动

   

安装完oracle启动netca时报错:

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# SIGSEGV (0xb) at pc=0x00007f7f35fffa61, pid=26037, tid=140185032115968
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_17-b03 mixed mode)
# Problematic frame:
# C [libclntsh.so.11.1+0x62aa61] snlinGetAddrInfo+0x1b1
#
# An error report file with more information is saved as hs_err_pid26037.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
/home/oracle/app/oracle/product/11.2.0/dbhome_1/bin/netca: line 178: 26037  已放弃  (core dumped) $JRE $JRE_OPTIONS -classpath $CLASSPATH oracle.net.ca.NetCA $*

这是由于使用了默认的主机名导致的,解决:

[root@tsmtest ~]# vim /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=tsmtest
[root@tsmtest ~]# vim /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 tsmtest
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.198.134 localhost tsmtest
[root@tsmtest ~]# hostname tsmtest
[root@tsmtest ~]# reboot

发表评论