Oracle启动netca报错libclntsh.so.11.1问题

安装oracle软件后,必须要先配置listener才能通过dbca创建数据库实例,但是netca却报下面的错误。

root用户修改:

Oracle Net Services Configuration:
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# SIGSEGV (0xb) at pc=0xa4bf5f4e, pid=11819, tid=3086902976
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_17-b02 mixed mode)
# Problematic frame:
# C [libclntsh.so.11.1+0x421f4e] snlinGetAddrInfo+0x1b2
#
# An error report file with more information is saved as hs_err_pid11819.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
/u01/oracle/bin/netca: line 178: 11819 Aborted                 $JRE $JRE_OPTIONS -classpath $CLASSPATH oracle.net.ca.NetCA $*

1、修改主机名:

[oracle@jc11g ~]$ vi /etc/sysconfig/network
NETWORKING=yes
#修改主机名,原主机名为localhost
HOSTNAME=oracleDb
#网关
GATEWAY=192.168.1.1

2、修改hosts文件,添加主机名到127.0.0.1的映射:

[oracle@jc11g ~]$ vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
# 添加主机名到127.0.0.1的域名映射
127.0.0.1               localhost.localdomain localhost oracleDb

3、使主机名更改生效:

hostname oracleDb
切换到oracle用户,重新执行./netca命令即可。

你可能感兴趣的:(Oracle启动netca报错libclntsh.so.11.1问题)