Error in invoking target ntcontab.o During CRS installation [ID 443675.1]

Error in invoking target ntcontab.o During CRS installation [ID 443675.1]


 

Modified 01-AUG-2008     Type PROBLEM     Status PUBLISHED

 

In this Document
  Symptoms
  Changes
  Cause
  Solution


Applies to:

Oracle Server - Enterprise Edition - Version: 10.2.0.1
Linux x86-64

Symptoms

When installing CRS using runInstaller, get an error when doing "linking oracle net required
support files 10.2.0.1":

error in invoking target 'ntcontab.o' of makefile
'/u01/app/oracle/product/10.2.0/crs/network/lib/ins_net_client.mk'.

make.log shows:

/usr/bin/make -f ins_net_client.mk mkldflags ORACLE_HOME=
/u01/app/oracle/product/10.2.0/crs//usr/bin/make -f ins_net_client.mk ntcontab.o ORACLE_HOME=/u01/app/oracle/product/10.2.0/crs/rm -f ntcontab.*
(if [ "compile" = "compile" ] ; then /
   /u01/app/oracle/product/10.2.0/crs/bin/gennttab > ntcontab.c ;/
   gcc -c ntcontab.c ;/
   rm -f /u01/app/oracle/product/10.2.0/crs/lib/ntcontab.o ;/
   mv ntcontab.o /u01/app/oracle/product/10.2.0/crs/lib/ ;/
       /usr/bin/ar rv /u01/app/oracle/product/10.2.0/crs/lib/libn10.a
/u01/app/oracle/product/10.2.0/crs/lib/ntcontab.o ; fi)
ntcontab.c:7:23: sys/types.h: No such file or directory
mv: cannot stat `ntcontab.o': No such file or directory
/usr/bin/ar: /u01/app/oracle/product/10.2.0/crs/lib/ntcontab.o: No such file or directory
make: *** [ntcontab.o] Error 1

Changes

New installation.

Cause

The output of the link command shows that the compiler is looking for sys/types.h.
Package glibc-headers-* is not installed which cause header file (/usr/include/sys/types.h) missing on the system.

Solution

Install the missing package glibc-headers-* (ie, glibc-headers-2.3.4-2.13).

Reinstall CRS (recommended) after clean up existing installation per
Note 239998.1 10g RAC: How to Clean Up After a Failed CRS Install
or
Execute commands in $ORA_CRS_HOME/install/make.log manually for client relink.


 

 

 

 

 

 

------------------------------------------------------------------------------

QQ:492913789

Email:ahdba@qq.com

Blog: http://www.cndba.cn/dave 


网上资源: http://tianlesoftware.download.youkuaiyun.com

相关视频:http://blog.youkuaiyun.com/tianlesoftware/archive/2009/11/27/4886500.aspx

DBA1 群:62697716(); DBA2 群:62697977()

DBA3 群:62697850   DBA 超级群:63306533;    

聊天 群:40132017

--加群需要在备注说明Oracle表空间和数据文件的关系,否则拒绝申请

 

<think>嗯,用户遇到了在安装Oracle数据库时出现的错误,具体是“Error in invoking target 'nmo' of makefile”。我需要帮他分析这个问题。首先,根据提供的引用信息,这个问题在多个文档中都有提到,比如引用[1]、[3]、[4]和[5]。看起来这个问题通常出现在Linux系统上,尤其是Red Hat 7或Oracle Linux 7。 首先,我应该考虑可能的原因。根据引用[5],这个错误可能与系统库的兼容性有关,特别是glibc的版本问题。Oracle 11gR2可能对较新的glibc版本支持不好。另外,引用[4]提到AIX系统上的类似错误,可能与文件缺失或空文件有关,比如Libnmemso.So是空的,这可能涉及到安装包不完整或权限问题。 接下来,用户需要具体的解决步骤。通常这类错误的解决方法包括安装兼容性库,比如libgcc和compat-libstdc++,这可能解决库依赖问题。另外,设置环境变量,比如$ORACLE_HOME/sysman/lib/ins_emagent.mk中的变量修改,如将$(MK_EMAGENT_NMECTL)改为$(MK_EMAGENT_NMECTL) -lnnz11,这可能修复链接错误。 还有可能需要检查安装包的完整性,确保下载的Oracle安装文件没有损坏,尤其是针对AIX系统的引用[4]提到的文件问题。另外,权限问题也不容忽视,需要确保Oracle用户有足够的权限访问相关目录和文件。 用户提到的是关于'nmo'目标的错误,而引用中多次提到'nmo'和'nmhs',可能需要具体检查这些makefile目标的依赖项。可能还需要应用特定的补丁,如引用[4]中的BUG:10383618,可能需要应用对应的补丁来解决。 另外,操作系统兼容性也是一个关键点。Oracle 11gR2在较新的Linux版本上可能不受官方支持,因此需要确认系统是否符合要求,或者需要调整系统配置,比如使用兼容模式安装。 最后,建议用户查看具体的日志文件,如引用[2]提到的日志路径,以获取更详细的错误信息,从而更有针对性地解决问题。同时,参考Oracle官方文档和知识库文章,如Note 1300175.11298284.1,可能提供更详细的解决方案。</think>### 解决Oracle安装中“Error invoking target nmo”的步骤 该错误通常由系统库缺失、权限问题或Makefile配置冲突引起。以下是逐步解决方案: --- #### 1. **安装缺失的系统库** Oracle Agent组件依赖`libgcc`和`libstdc++`库。在Red Hat/CentOS/Oracle Linux 7+系统中执行: ```bash yum install -y libgcc compat-libstdc++-33 ``` 若提示包不存在,需启用EPEL仓库或通过RPM手动安装[^5]。 --- #### 2. **修复Makefile链接参数** 编辑`$ORACLE_HOME/sysman/lib/ins_emagent.mk`文件: ```makefile # 修改前: $(MK_EMAGENT_NMECTL) # 修改后: $(MK_EMAGENT_NMECTL) -lnnz11 ``` 此变更强制链接`libnnz11`库,解决符号未定义错误(如`nmo`目标依赖的`ss_score`函数)[^4][^5]。 --- #### 3. **检查文件权限与完整性** - **权限问题**:确保Oracle用户对`$ORACLE_HOME`有读写权限: ```bash chown -R oracle:oinstall /u01/app/oracle ``` - **空文件错误**:检查`$ORACLE_HOME/lib/libnmemso.so`是否为空。若为空,需重新解压安装包或从官方补丁修复。 --- #### 4. **应用官方补丁** 针对该错误的已知补丁: - **BUG 10383618**:适用于AIX系统,修复`nmo`编译失败问题。 - **Patch 23177536**:针对Linux系统的通用修复补丁。 需通过Oracle Support下载并应用。 --- #### 5. **操作系统兼容性调整** 若在RHEL 7+/Oracle Linux 7+安装11gR2,需关闭`oracle-rdbms-server-11gR2-preinstall`的冲突配置: ```bash yum remove oracle-rdbms-server-11gR2-preinstall yum install -y glibc-devel.i686 ``` 之后重启安装程序[^3][^5]。 --- #### 6. **查看详细日志定位问题** 错误日志通常位于: ```bash $ORACLE_HOME/install/make.log $ORACLE_HOME/sysman/log/emagent.trc ``` 通过日志可定位具体缺失的符号或依赖库[^2]。 --- ###
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值