运维开发网

ERROR: NMO not setuid-root (Unix-only)错误的解决方法

运维开发网 https://www.qedev.com 2021-04-13 09:13 出处:51CTO 作者:小麦苗DB宝
ERROR: NMO not setuid-root (Unix-only)错误的解决方法      小麦苗在使用GC搭建DG的时候报错“  NMO not setuid-root (Unix-only)  ”,网上搜索了半天,最后想起来是,安装agent后忘记执行root.sh脚本了,再执行该脚本后,问题解决。该脚本会把$AGENT_HOME/bin/nm*的几个文件的权限修改为root

  ERROR: NMO not setuid-root (Unix-only)错误的解决方法    

 

小麦苗在使用GC搭建DG的时候报错“  NMO not setuid-root (Unix-only)  ”,网上搜索了半天,最后想起来是,安装agent后忘记执行root.sh脚本了,再执行该脚本后,问题解决。该脚本会把$AGENT_HOME/bin/nm*的几个文件的权限修改为root。执行完毕后重启agent即可。  

1、在服务端OMS启动的情况下,在客户端执行:

./agentDownload.Linux -b /u01/app/agentbase -m edsir1p8.us.oracle.com -r 7799 -y

       安装过程中要输入server端的密码:Oracle123

2、安装完成要用root执行:[[email protected] ~]# sudo /u01/app/agentbase/agent11g/root.sh



ERROR: NMO not setuid-root (Unix-only)错误的解决方法

              

解决方法:  

重新执行$ORACLE_HOME/root.sh,问题得到解决.  

因数据库安装过程中已执行root.sh,怀疑是重建EM后需要重新执行root.sh,经测试不是,没有找出引起问题的原因.  

ERROR: NMO not setuid-root (Unix-only)错误的解决方法  

1、Was the root.sh script. ran?  

1)、停止EM  

[[email protected] ~]$ emctl stop dbconsole  

Oracle Enterprise Manager 11g Database Control Release 11.2.0.3.0   

Copyright (c) 1996, 2011 Oracle Corporation.  All rights reserved.  

https://rtest.localdomain:1158/em/console/aboutApplication  

Stopping Oracle Enterprise Manager 11g Database Control ...   

 ...  Stopped.   

2)、运行root.sh  

[[email protected] ~]# /u01/app/oracle/product/11.2.0/dbhome_1/root.sh  

Performing root user operation for Oracle 11g   

 

The following environment variables are set as:  

    ORACLE_OWNER= oracle  

    ORACLE_HOME=  /u01/app/oracle/product/11.2.0/dbhome_1  

 

Enter the full pathname of the local bin directory: [/usr/local/bin]:   

The contents of "dbhome" have not changed. No need to overwrite.  

The contents of "oraenv" have not changed. No need to overwrite.  

The contents of "coraenv" have not changed. No need to overwrite.  

 

Entries will be added to the /etc/oratab file as needed by  

Database Configuration Assistant when a database is created  

Finished running generic part of root script.  

Now product-specific root actions will be performed.  

Finished product-specific root actions.  

3)、启动EM  

[[email protected] ~]$   

[[email protected] ~]$ emctl start dbconsole  

Oracle Enterprise Manager 11g Database Control Release 11.2.0.3.0   

Copyright (c) 1996, 2011 Oracle Corporation.  All rights reserved.  

https://rtest.localdomain:1158/em/console/aboutApplication  

Starting Oracle Enterprise Manager 11g Database Control .............. started.   

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

Logs are generated in directory /u01/app/oracle/product/11.2.0/dbhome_1/rtest.localdomain_test0924/sysman/log   

[[email protected] ~]$   

2、Check the permission of the nmo and nmb executable found in $ORACLE_HOME/bin or $AGENT_OH/bin. Both should have the following permissions  

[[email protected] ~]$ cd $ORACLE_HOME/bin  

[[email protected] bin]$ ls -al nmo  

-rws--x--- 1 root oinstall 44691 Jun 20 08:27 nmo  

[[email protected] bin]$ ls -al nmb  

-rws--x--- 1 root oinstall 34420 Jun 20 08:30 nmb  

扫码领视频副本.gif

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号