oracle启动netca时报[libclntsh.so.11.1+0x628c2d]

本文详细记录了在使用Oracle Net Services配置过程中遇到的一个关于默认主机名的问题及其解决方案。通过修改/etc/sysconfig/network和/etc/hosts文件中的HOSTNAME和对应主机名,解决了netca命令在静默模式下配置监听器时出现的SIGSEGV错误。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

[oracle@localhost bin]$ netca -silent -responsefile /home/oracle/database/response/netca.rsp

正在对命令行参数进行语法分析:
参数"silent" = true
参数"responsefile" = /home/oracle/database/response/netca.rsp
完成对命令行参数进行语法分析。
Oracle Net Services 配置:
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0x00007fe6b5594c2d, pid=14041, tid=140629913499456
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_17-b03 mixed mode)
# Problematic frame:
# C  [libclntsh.so.11.1+0x628c2d]  snlinGetAddrInfo+0x1b1
#
# An error report file with more information is saved as hs_err_pid14041.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
/u01/app/oracle/product/11.2.0/db_1/bin/netca: 行 178: 14041 已放弃               $JRE $JRE_OPTIONS -classpath $CLASSPATH oracle.net.ca.NetCA $*

错误的原因是由于默认的主机名导致的,修改2处

[root@localhost ~]# cat /etc/sysconfig/network
# Created by anaconda
NETWORKING=yes
HOSTNAME=test11g
GATEWAY=192.168.8.124


[root@localhost ~]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 test11g
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

对应好hostname,在这里我增加了一个test11g

执行如下命令:

hostname test11g

让oracle用户退出重新登录就可以正常启动netca了

[oracle@test11g ~]$ netca -silent -responsefile /home/oracle/database/response/netca.rsp

正在对命令行参数进行语法分析:
参数"silent" = true
参数"responsefile" = /home/oracle/database/response/netca.rsp
完成对命令行参数进行语法分析。
Oracle Net Services 配置:
完成概要文件配置。
Oracle Net 监听程序启动:
    正在运行监听程序控制: 
      /u01/app/oracle/product/11.2.0/db_1/bin/lsnrctl start LISTENER
    监听程序控制完成。
    监听程序已成功启动。
监听程序配置完成。
成功完成 Oracle Net Services 配置。退出代码是0

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

黄宝康

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值