ITPub博客

首页 > 数据库 > Oracle > how to use command to install agent and join to grid control

how to use command to install agent and join to grid control

原创 Oracle 作者:nmgzw 时间:2019-05-23 14:00:07 0 删除 编辑

使用grid安装agnet失败户,手动在客户端安装:
/oracle/BWP/sapdata6/agent12/ADATMP_2016-10-13_01-49-52-AM/agentDeploy.sh \
-ignorePrereqs ORACLE_HOSTNAME=x.x.x.x \
AGENT_BASE_DIR=/oracle/BWP/sapdata6/agent12 \
OMS_HOST=linux-ha1.localdomain EM_UPLOAD_PORT=4903 \
AGENT_INSTANCE_HOME=/oracle/BWP/sapdata6/agent12/agent_inst \
b_doDiscovery=false b_startAgent=false b_forceInstCheck=true \
AGENT_PORT=3872

安装成功后,如何把客户端加入到grid control的步骤:
1. Stop agent

     $/AGENT_INST/bin/emctl stop agent

2. Execute following commands from OMS server

     $export ORACLE_HOME=omshome

     $/OMS_HOM/bin/emcli login -username=SYSMAN

     $/OMS_HOM/bin/emcli sync

     $/OMS_HOM/bin/emcli delete_target -name="<previous_agentname>" -type="oracle_emd" -delete_monitored_targets -async
     where <previous_agentname> is the value retrieved by the command:
      $/OMS_HOME//bin/emcli get_targets -target='%agentname%:oracle_emd'

     Example:

     $/OMS_HOM/bin/emcli delete_target -name="previous_agentname:1835" -type="oracle_emd" -delete_monitored_targets -async

3. Start agent

     $/AGENT_INST/bin/emctl clearstate agent

     $/AGENT_INST/bin/emctl secure agent

     $/AGENT_INST/bin/emctl start agent

4. Execute the following command add internal targets

     $/AGENT_INST/bin/emctl config agent addinternaltargets

     $/AGENT_INST/bin/emctl upload agent

参考:https://community.oracle.com/thread/3921638

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/25702/viewspace-2130756/,如需转载,请注明出处,否则将追究法律责任。

上一篇: ORA-07445:kkssct
请登录后发表评论 登录
全部评论

注册时间:2002-10-18

  • 博文量
    62
  • 访问量
    47745