本帖最后由 郑全 于 2016-11-17 17:50 编辑
我们在gc上部署dg备库时,直接报一个错误:
ERROR: NMO not setuid-root (Unix-only)
检查客户端机器agent的状态:
登录到该target对应Server的Agent_Home/bin下检查发现:
[oracle@odd] /u01/app/oracle/agent11g/bin> ls -ltr nm*
-rwxr-xr-x 1 oracle dba 367163 Nov 2 2005 nmuct
-rwxr-xr-x 1 oracle dba 30840 Nov 3 2005 nmcbufp
-rwxrwx--- 1 oracle dba 60154 Jul 19 16:14 nmupm
-rwxrwx--- 1 oracle dba 104495 Jul 19 16:14 nmei
-rwxrwx--- 1 oracle dba 56182 Jul 19 16:14 nmocat
-rwxrwx--- 1 oracle dba 44779 Jul 19 16:14 nmhs
-rwxrwx--- 1 oracle dba 22802 Jul 19 16:14 nmo
-rwxrwx--- 1 oracle dba 18530 Jul 19 16:14 nmb
看来忘了执行root.sh了,
解决问题就比较简单了
停止agent
[oracle@edbj2p1 bin]$ ./emctl stop agent
Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
Stopping agent ... stopped.
切换到ROOT用户,重新执行Agent_Home下的root.sh脚本
[root@edbj2p1 agent11g]# ./root.sh
返回到Oracle用户下再查看一下
[root@edbj2p1 bin]# ls -ltr nmo
-rws--x--- 1 root oinstall 25123 Nov 14 01:00 nmo
已经改过来了,重新启动Agent[oracle@edbj2p1 bin]$ ./emctl start agent
Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
Starting agent ......... started.
[oracle@edbj2p1 bin]$
再次返回Grid里,重新调度dg的配置,成功!
|