现象如下:
 今天一同事安装完数据库软件运行netca创建监听时报错(运行netmgr与dbca均可执行成功),
  报错信息:
 [oracle@WEB01A bin]$ netca
  
 Oracle Net Services Configuration:
 #
 # An unexpected error has been detected by HotSpot Virtual Machine:
 #
 #  SIGSEGV (0xb) at pc=0x002193c3, pid=26410, tid=4160576384
 #
 # Java VM: Java HotSpot(TM) Client VM (1.4.2_14-b05 mixed mode)
 # Problematic frame:
 # C  [libc.so.6+0x703c3]  index+0x63
 #
 # An error report file with more information is saved as hs_err_pid26410.log
 #
 # If you would like to submit a bug report, please visit:
 #   http://java.sun.com/webapps/bugreport/crash.jsp
 #
 /usr/appsoft/oracle/product/10.2.0/db_1/bin/netca: line 190: 26410 Aborted   $JRE -mx64m $SRVM_PROPERTY_DEFS -Dsun.java2d.font.DisableAlgorithmicStyles=true -classpath $CLASSPATH oracle.net.ca.NetCA $*
报错原因:运行netca时可能需要获取主机名和相应ip,netca应该是从/etc/hosts/文件中获取主机名和ip。但本主机的/etc/hosts中配置主机名和ip的记录有误,导致necta获取不到相关信息报错。
  
解决过程:
  [oracle@WEB01A ~]$hostname
   WEB01A 
 查看/etc/hosts文件
  # Do not remove the following line, or various programs
  # that require network functionality will fail.
  127.0.0.1    localhost.localdomain   localhost
   192.168.3.1 WEBO1A 
  
 发现:运行ifconfig、hostname 都可以得到ip和主机名,且正确。但/etc/hosts文件里的主机名写错了,把数字0写成了字母O了。问题可能出在这里;
解决办法:将hosts文件中的主机名修改正确后,后netca运行成功。 
  
转载于:https://blog.51cto.com/semiter/1141144