Monday, November 22, 2010

oracle.apps.fnd.oam.em.sdk.targetData.discovery.AppsDiscoveryException: Fail to get EMDClient for Host hostname

Error:
Caused By: oracle.apps.fnd.oam.em.sdk.targetData.discovery.AppsDiscoveryException: Fail to get EMDClient for Host hostname
Caused By: java.sql.SQLException: ORA-01403: no data found
ORA-06512: at "SYSMAN.EM_JOB_UTIL", line 1087
ORA-06512: at "SYSMAN.MGMT_JOB_ENGINE", line 19035
ORA-06512: at line 1

Cause:
Hostname lacks domainname

Solution:
Step 1.  Bounce the Agent.
Step 2.  Create a backup copy of AGENT_HOME/sysman/emd/targets.xml.
Step3. Edit targets.xml and change the host property from hostname to hostname.domainname
Step4. Start , upload the agent and redo the discovery.

If this doesn’t work , you can restore the targets.xml.

However,  you can change the host property of an agent through emcli utility . It will not create the duplicate entry.
How to setup emcli:
http://download.oracle.com/docs/cd/B16240_01/doc/em.102/b40004/cli.htm#sthref10
Emcli sample command:
emcli modify_target -name="" -type="" -properties="MachineName=hostname.domainname" -on_agent

1 comment:

  1. Nice Procedure .. It worked for me..

    Thanks a lot

    ReplyDelete