Thursday, November 8, 2007

OEM Grid Control Rediscover targets on host

Ever found the need to Rediscover targets for host with Oracle Enterprise Manager Grid Control?

We will need to work with the agent on the host where the targets need rediscovring.

Here is some steps that may help:

1. Check that the ENV is set for the Management Agent
- ORACLE_HOME set
- $ORACLE_HOME/bin in $PATH

The agentca utility is expecting the oraInst.loc to be located in the agents ORACLE_HOME. Please check that the oraInst.loc is located in the agent ORACLE_HOME location.

** Speical Note for Solaris Platform: The Solaris Operating System puts the oraInst.loc in /var/opt/oracle. This means that the agentca command will not find the oraInst.loc file. You need to create a soft link: $ORACLE_HOME/oraInst.loc to /var/opt/oracle/oraInst.loc for the agentca to work properly.

2. Copy the file $ORACLE_HOME/sysman/emd/targets.xml. to targets.xml.orig

3. Run agentca -d

4. Check that the targets.xml has been created in $ORACLE_HOME/sysman/emd directory

Check that the Management Agent uploads successfully to the Management Service with emctl status agent

emctl upload
emctl status agent

5. For any agentca issue consult the following log files: - $ORACLE_HOME/cfgtoollogs/oui/configActions.log - $ORACLE_HOME/cfgtoollogs/oui/configActions.err - $ORACLE_HOME/cfgtoollogs/cfgfw/CfmLogger__.log

1 comment:

Anonymous said...

Probably a bit late in commenting, but this does work. Copy it and put into your bag of tools