共计 2332 个字符,预计需要花费 6 分钟才能阅读完成。
因公司需要,搭建 Oracle 数据库
服务器:Ubuntu 14.0.4 LTS 64
Oracle:Oracle 11g
jdk:jdk 1.7
安装教程可以参考:http://www.linuxidc.com/Linux/2015-03/115264.htm
下面开始介绍安装时候遇到的问题
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 资源,安装即可,
glibc-static-2.17-55.el7.x86_64.rpm 下载见 http://www.linuxidc.com/Linux/2015-01/112247.htm
然后点击 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
本文永久更新链接地址 :http://www.linuxidc.com/Linux/2017-01/139073.htm