Oracle删除oms主机,windows下部署12c oms agent 及清除agent

清除:

1. Stop the Agent on the target machine:

cd /bin

emctl stop agent

2. Login to the Repository Ddatabase (via  sqlplus)  as user SYSMAN and execute the following command:

SQL> exec mgmt_admin.cleanup_agent(':');

For example:

SQL> exec mgmt_admin.cleanup_agent('agentmachine.domain:3872');

3. De-install the Agent on the target machine.

首先在server端安装组件,需账号密码

emcli login -username=sysman -password=123456

在windows端创建目录,c:\soft和c:\agent

agentDeploy.bat -ignorePrereqs AGENT_BASE_DIR=C:\agent OMS_HOST=172.16.5.233 EM_UPLOAD_PORT=4900 AGENT_REGISTRATION_PASSWORD=Oracle123 ORACLE_HOSTNAME=pzyserver08

安装后会报错,切换到bin/emctl下,执行emctl status agent和emctl start agent以及emctl upload

如果遇到

After reinstallation need to add agent and host target and then need to perform sync operation for the upload to be successful.

Perform the following steps to resolve the issue:

1. Start the agent:

/bin/emctl start agent

2. Issue following command to add agent and host targets:

/bin/emctl config agent addinternaltargets

This would list the agent target in Setup > Add Target > Auto Discovery Results > Non-Host Targets.

3. Secure the agent:

/bin/emctl secure agent

This would show the host and agent in pending status under Targets > All targets.

4. Do the following steps to show the status of host and agent as up:

/bin/emctl stop agent

/bin/emctl clearstate agent

/bin/emctl start agent

Once done, the host and agent status would be shown as up.

5. Do a resync of agent as per Note 1376968.1.

Follow these steps to perform agent resynchronization :

1. Log in to the EM 12c console

2. Navigate:  Setup > Manage Cloud Control > Agents (for EM 12.1.0.2 or later)

Navigate: Setup > Agents (for EM 12.1.0.1)

3. Select the problematic agent

4. In the Agent drop down menu, choose "Resynchronization"t.

5. Choose the option to "Unblock agent on successful completion of agent resynchronization." and Click on Continue

6. The resynchronization operation is submitted as a job as shown below:

7. Check the resynchronization job's status by clicking on the job name's link.

6. Verify the agent upload:

/bin/emctl upload

Agent uploads will be successful and remaining targets can be discovered.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值