ITPub博客

首页 > 数据库 > Oracle > windows下部署12c oms agent 及清除agent

windows下部署12c oms agent 及清除agent

原创 Oracle 作者:peng163fj 时间:2015-08-18 15:14:10 0 删除 编辑
清除:

1. Stop the Agent on the target machine:

cd <AGENT_HOME>/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('<myserver>:<agent port>');

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:
     <AGENT_INST>/bin/emctl start agent

2. Issue following command to add agent and host targets:
     <AGENT_INST>/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:
     <AGENT_INST>/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:
     <AGENT_INST>/bin/emctl stop agent
     <AGENT_INST>/bin/emctl clearstate agent
     <AGENT_INST>/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:
     <AGENT_INST>/bin/emctl upload

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


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

上一篇: esxi6 修改密码
请登录后发表评论 登录
全部评论

注册时间:2013-11-20

  • 博文量
    155
  • 访问量
    381113