合 EMCC添加被监控主机和数据库
添加其它主机和数据库
添加其它主机(安装agent代理)
AGENT安装目录:
1 | mkdir -p /u01/app/oracle/middleware/agentbase |
设置 -> 添加目标 ->手动添加目标,下一步,下一步即可。
报错:
Execution of command cd /u01/app/oracle/middleware/agentbase/ADATMP_2018-10-22_15-29-02-PM;/u01/app/oracle/middleware/agentbase/ADATMP_2018-10-22_15-29-02-PM/agentDeploy.sh -ignorePrereqs ORACLE_HOSTNAME=192.168.59.52 AGENT_BASE_DIR=/u01/app/oracle/middleware/agentbase OMS_HOST=cos73emcc133lhr EM_UPLOAD_PORT=4903 AGENT_INSTANCE_HOME=/u01/app/oracle/middleware/agentbase/agent_inst b_doDiscovery=false START_AGENT=false b_forceInstCheck=true -force on host 192.168.59.52 Failed
Error Message: The Oracle Management Server (OMS) host and port specified via OMS_HOST and EM_UPLOAD_PORT is not available. Pass in a valid hostname and port number for the OMS to successfully deploy the agent.
Exit Code :1
解决:
在agent端的/etc/hosts文件中加上OMS的解析地址:
1 | 192.168.59.60 cos73emcc133lhr |
root用户执行:
1 | /u01/app/oracle/middleware/agentbase/agent_13.3.0.0.0/root.sh |