下面开始介绍安装时候遇到的问题
1 :Error in invoking target 'install' of makefile collect2:
error: ld returned 1 exit status
INFO: make: *** [ctxhx] Error 1
INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: 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/installActions2020-02-14_03-48-53PM.log'
for details.
解决方法如下:
从http://download.csdn.net/detail/adnerly/9467935下载,使用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
INFO: make[1]: ***
[/u01/app/oracle/product/11.2.0/dbhome_1/sysman/lib/emdctl] Error
1
make: *** [emdctl] Error 2
INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'agent nmhs' of
makefile
'/u01/app/oracle/product/11.2.0/dbhome_1/sysman/lib/ins_emagent.mk'.
See
'/u01/app/oraInventory/logs/installActions2020-02-14_03-48-53PM.log'
for details.
Exception Severity: 1
解决办法:
打开一个新的终端,输入如下四个命令:
sed -i 's/^\(TNSLSNR_LINKLINE.*\$(TNSLSNR_OFILES)\)
\(\$(LINKTTLIBS)\)/\1 -Wl,--no-as-needed \2/g'
$ORACLE_HOME/network/lib/env_network.mk
sed -i 's/^\(ORACLE_LINKLINE.*\$(ORACLE_LINKER)\)
\(\$(PL_FLAGS)\)/\1 -Wl,--no-as-needed \2/g'
$ORACLE_HOME/rdbms/lib/env_rdbms.mk
sed -i 's/^\(\$LD \$LD_RUNTIME\) \(\$LD_OPT\)/\1
-Wl,--no-as-needed \2/g' $ORACLE_HOME/bin/genorasdksh
sed -i 's/^\(\s*\)\(\$(OCRLIBS_DEFAULT)\)/\1
-Wl,--no-as-needed \2/g' $ORACLE_HOME/srvm/lib/ins_srvm.mk
因为csdn会自动转换格式,所以复制出来的代码和显示的可能不同,请仔细对照后,再执行!
然后在图形界面点击‘Retry’就能继续安装了。
然后按照安装程序提示最后执行两个脚本:
sudo /opt/oracle/oraInventory/orainstRoot.sh
sudo
/opt/oracle/Oracle11gee/product/11.2.0/dbhome_1/root.sh
————————————————
参考
https://blog.csdn.net/adnerly/article/details/50945906
https://blog.csdn.net/langkeziju/article/details/43016221