今天尝试在rhel6 32bit安装oracle 11gR2 11.2.0 32bit,静默安装数据库后,在执行netca配置监听,却一直报错。
执行语句如下:
$ORACLE_HOME/bin/netca /silent /responsefile /oracle/database/response/netca.rsp
报错信息如下:
Parsing command line arguments:
Parameter "silent" = true
Parameter "responsefile" = /oracle/database/response/netca.rsp
Done parsing command line arguments.
Oracle Net Services Configuration:
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# SIGSEGV (0xb) at pc=0xa38ef45c, pid=1615, tid=3075786432
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_17-b02 mixed mode)
# Problematic frame:
# C [libnnz11.so+0x3c45c]
#
# An error report file with more information is saved as hs_err_pid1615.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
/oracle/app/oracle/product/11.2.0/db_1/bin/netca: line 178: 1615 Aborted $JRE $JRE_OPTIONS -classpath $CLASSPATH oracle.net.ca.NetCA $*
在纠结中不停上网搜索,并尝试修改主机名后无果。
最后发现有网友有同样现状,使用64bit CPU在32位系统装32位oracle 11G,其解决方法为安装oracle官方的补丁p8670579_112010_LINUX.zip。
补丁说明:
安装oracle的时候经常遇到的错误,需要安装这个补丁
机器CPU如果是AMD64位,装Linux32系统,再装32位Oracle会出现netca无法执行的错误
此时突然发现自己的CPU是那万恶的AMD A4-6300
建议玩oracle的朋友在买电脑前一定要考虑好硬件兼容性问题
以下为补丁安装方法:
将下载好的补丁p8670579_112010_LINUX.zip解压缩,若通过ftp传输到Linux,注意改ftp模式为binary模式
1.进入目录8670579
2.执行$ORACLE_HOME/OPatch/opatch apply
安装好再执行netca
$ $ORACLE_HOME/bin/netca /silent /responsefile /oracle/database/response/netca.rsp
Parsing command line arguments:
Parameter "silent" = true
Parameter "responsefile" = /oracle/database/response/netca.rsp
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Oracle Net Listener Startup:
Running Listener Control:
/oracle/app/oracle/product/11.2.0/db_1/bin/lsnrctl start LISTENER
Listener Control complete.
Listener started successfully.
Listener configuration complete.
Oracle Net Services configuration successful. The exit code is 0