Oracle安装时遇到的问题及解决方法
因公司需要,搭建Oracle数据库
服务器:Ubuntu 14.0.4 LTS 64
Oracle : Oracle 11g
jdk : jdk 1.7
下面开始介绍安装时候遇到的问题
1 :Error in invoking target 'install' of makefile '/u01/app/oracle/product/11.2.0/dbhome_1/ctx/lib/ins_ctx.mk'. See '/u01/app/oraInventory/logs/installActions2015-01-22_09-39-03AM.log' for details.
查看详细日志如下:
INFO: /lib64/libstdc++.so.5: undefined reference to `memcpy@GLIBC_2.14'
INFO: collect2: error: ld returned 1 exit status
INFO: make: *** [ctxhx] Error 1
解决方法如下:
使用rpm安装这个glibc-static-2.17-55.el7.x86_64.rpm资源,安装即可,
然后点击retry ,接着往下执行
2 :Error in invoking target 'agent nmhs' of makefile '/opt/oracle/product/11.2.0/dbhome_1/sysman/lib/ins_emagent.mk
查看日志如下:
/usr/bin/ld: /opt/oracle/product/11.2.0/db_1/sysman/lib//libnmectl.a(nmectlt.o): undefined reference to symbol 'B_DestroyKeyObject'
解决方法:
打开新的终端窗口
使用vi命令,打开/opt/oracle/product/11.2.0/dbhome_1/sysman/lib/ins_emagent.mk文件,将$(MK_EMAGENT_NMECTL)修改成$(MK_EMAGENT_NMECTL)-lnnz11即可,
然后点击retry ,接着往下执行
3:Error in invoking target 'all_no_orcl' of makefile '/opt/oracle/product/11.2.0/dbhome_1/rdbms/lib/ins_rdbms.mk'. See '/opt/oraInventory/logs/installActions2016-03-19_02-37-44PM.log' for details.
INFO: /opt/oracle/product/11.2.0/dbhome_1/bin/genorasdksh: Failed to link liborasdk.so.11.1
INFO: make: *** [liborasdksh] Error 1
INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'all_no_orcl' of makefile '/opt/oracle/product/11.2.0/dbhome_1/rdbms/lib/ins_rdbms.mk'. See '/opt/oraInventory/logs/installActions2016-03-19_02-37-44PM.log' for details.
解决办法:
打开一个新的终端,输入如下四个命令:
sed -i 's/^TNSLSNR L INKLINE.∗$(TNSLSNR O FILES) $(LINKTTLIBS) /\1 -Wl,--no-as-needed \2/g' $ORACLE_HOME/network/lib/env_network.mk
sed -i 's/^ORACLE L INKLINE.∗$(ORACLE L INKER) $(PL F LAGS) /\1 -Wl,--no-as-needed \2/g' $ORACLE_HOME/rdbms/lib/env_rdbms.mk
sed -i 's/^$LD$LD R UNTIME $LD O PT /\1 -Wl,--no-as-needed \2/g' $ORACLE_HOME/bin/genorasdksh
sed -i 's/^\s∗ $(OCRLIBS D EFAULT) /\1 -Wl,--no-as-needed \2/g' $ORACLE_HOME/srvm/lib/ins_srvm.mk
你复制出来的代码和显示的可能不同,请仔细对照后,再执行!
然后在图形界面点击‘Retry’就能继续安装了。
然后按照安装程序提示最后执行两个脚本:
sudo /opt/oracle/oraInventory/orainstRoot.sh
sudo /opt/oracle/Oracle11gee/product/11.2.0/dbhome_1/root.sh