代码改变世界

Redhat 7安装Oracle 11.2.0.4 RAC 数据库软件中报错:Error in invoking target 'agent nmhs' of makefile

2020-03-20 16:00  狂澜与玉昆0950  阅读(750)  评论(0编辑  收藏  举报

环境:Redhat Linux 7.6 + Oracle 11.2.0.4 RAC

现象:图像化安装数据库软件过程中的86%时,报错。

1. 具体现象

2. 定位问题

下列官方文档中有提到该问题的原因或者解决办法:

Installation walk-through - Oracle Grid/RAC 11.2.0.4 on Oracle Linux 7 (Doc ID 1951613.1)

Patch 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 '<installation log>' 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.

Installation of Oracle 11.2.0.4 Database Software on OL7 fails with 'Error in invoking target 'agent nmhs' of makefile ' & “undefined reference to symbol ‘B_DestroyKeyObject’” error (Doc ID 1965691.1)

3. 解决问题

官方文档给出的解决方法:

CAUSE
Unpublished bug 19692824
SOLUTION
01) Ignore the undefined symbol error during Oracle 11.2.0.4 installation and proceed further. The software installation will succeed without any further errors.
02) Download and install patch 19692824

还有一种较为简单有效的解决方法:

修改前备份原始文件
cd $ORACLE_HOME/sysman/lib
cp ins_emagent.mk ins_emagent.mk.bak
vi ins_emagent.mk

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

修改为:
$(MK_EMAGENT_NMECTL) -lnnz11

在后面追加参数-lnnz11, 第一个是字母l,后面两个是数字1。 
保存退出后Retry