Tuesday, October 4, 2011

How To Delete and Re-add the target “OMS and Repository” Target in Grid Control?

Visit the Below Website to access unlimited exam questions for all IT vendors and Get Oracle Certifications for FREE
http://www.free-online-exams.com

Problem: How To Delete and Re-add the target “OMS and Repository” Target in Grid Control?


Symptoms:


This document describes the steps to be followed for deleting and re-adding the 'OMS And Repository' target type in the Grid Control.
Some of the scenarios where this may be needed are described below:

- The OMS and Agent (on the OMS machine) have not been upgraded at the same time. This can result in the problem described in Note 387881.1 - Oracle Enterprise Manager Grid Control Support Notes for Windows 10g Release 2 (10.2.0.2), Topic: "Independent Upgrade of Oracle Management Service and Central Agent Results in Metric Collection Errors".
To resolve the metric collection errors, the 'OMS and Repository' target needs to be deleted and re-added.

- The 'OMS and Repository target has been discovered from the wrong Agent machine. This target should alwaysbe monitored by the Agent on the OMS machine, irrespective of whether the Repository Database is running on the same machine as the OMS or on a remote machine.

- The 'OMS and Repository' target has been partially discovered i.e there is an entry for the oracle_emrep target in the repository database but the monitoring Agent does not have an entry in its targets.xml file.



Solution:

1) To delete the 'OMS and Repository' target:

Login to Grid Control using sysman user --> Targets --> All Targets --> in the search drop down menu choose "OMS and Repository" then click go --> select the "Management Services and Repository" target appeared the click on remove.
If this target is removed, it is not possbile to view the performance details of the repository anymore. It is not possible to monitor if all of the OMS components are running fine either. Hence, the target should be immediately added back after the removal.

2) Make sure that the OMS and repository target was removed completely:

Login to the repository database as the sysman user and execute:
select target_name, target_type
from mgmt_targets
where target_type='oracle_emrep';

This should not return any rows.

The usual method of checking status of deleted target from Setup --> "Management Services and Repository" --> "Overview" - 'Deleted targets' page is not possible as the 'OMS and Repository' target itself is being deleted.
3) To add the OMS and repository target, follow the steps in Note 289567.1: 'Management Service and Repository' Page in Grid Control Shows 'No Data Available' / Status Down / Internal Error

Note:
In 10.2.0.5 and 11.1 GC, it is not necessary to remove and re-add the 'OMS and Repository' target, if it was originally discovered from the wrong Agent machine. To correct the association, execute:

emctl config emrep -sysman_pwd <sysman password=""> -agent <agent name:port="">
For example:

emctl config emrep -agent omsmachine.domain:3872 -sysman_pwd oracle1


References:

How To Delete and Re-add the target “OMS and Repository” Target in Grid Control? [ID 554835.1]

Note 604311.1: How To Find which Grid Control agent is monitoring the target "OMS and Repository" in case of multiple OMS.

Get Oracle Certifications for all Exams
Free Online Exams.com

No comments: