Linux7安装Oracle 11g 86%报错:Error in invoking target 'agent nmhs' of makefile

环境信息:

OS:Oracle Linux 7、Redhat 7、CentOS7
DB:Oracle 11.2.0.4

报错信息:

原因分析:

官方解释
Unpublished bug 19692824
During installation of Oracle Database or Oracle RAC on OL7, the following linking error may be encountered:
Error in invoking target 'agent nmhs' of makefile '<ORACLE_HOME>/sysman/lib/ins_emagent.mk'. See '' for details.
If this error is encountered, the user should select Continue. Then, after the installation has completed, the user must download Patch 19692824 from My Oracle Support and apply it per the instructions included in the patch README.

官方的解释说是先继续安装,然后在创建数据库时再打补丁,再创建数据库。否则创建数据库时em dbconsole功能会失败。

解决方案:
1、按照官方解释,先继续,打补丁,建库;
2、WorkRound

在makefile中添加链接libnnz11库的参数
修改$ORACLE_HOME/sysman/lib/ins_emagent.mk,找到下面这行

$(MK_EMAGENT_NMECTL)
修改为:
$(MK_EMAGENT_NMECTL) -lnnz11
建议修改前备份原始文件

cd $ORACLE_HOME/sysman/lib
cp ins_emagent.mk ins_emagent.mk.bak
vi ins_emagent.mk

进入vi编辑器后 命令模式输入/NMECTL 进行查找,快速定位要修改的行。
在后面追加参数-lnnz11, 第一个是字母l,后面两个是数字1。
保存退出后Retry。
posted @ 2021-07-13 19:13  syksky  阅读(263)  评论(0编辑  收藏  举报