EM12c : emctl start agent Fails 'java.net.inetaddress.getaddressfromnameservice' Reported in emdctlj.log (Doc ID 1599041.1)

Last updated on NOVEMBER 13, 2014

Applies to:

Enterprise Manager Base Platform - Version 12.1.0.1.0 and later
HP-UX Itanium

Symptoms

$/agent_inst/bin/emctl start agent

fails with following message

Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.
Starting agent ..........Consult emctl.log and emagent.nohup in:
/u01/app/oracle/product/em12cr2p1/agent/agent_inst/sysman/log

$agent_inst/bin/emctl status agent

shows Agent is Not Running

Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved
Agent is Not Running

agent_inst/sysman/log/emdctlj.log  reports the following excpetion

2013-09-25 14:03:23,884 [main] INFO  - Command: status agent
2013-09-25 14:03:24,049 [main] INFO  - unable to connect to the agent at
https://orapkg.my.oracle.net:3872/emd/lifecycle/main/
[orapkg.my.oracle.net]
oracle.sysman.emSDK.agent.comm.exception.ConnectException: unable to connect
to the agent at https://orapkg.my.oracle.net:3872/emd/lifecycle/main/ [orapkg.my.oracle.net]

2013-09-25 14:03:19,941 [main] INFO  - Command: status agent
2013-09-25 14:03:20,110 [main] INFO  - unable to connect to the agent at https://orapkg.my.oracle.net:3872/emd/lifecycle/main/ [orapkg.my.oracle.net]
oracle.sysman.emSDK.agent.comm.exception.ConnectException: unable to connect to the agent at https://orapkg.my.oracle.net:3872/emd/lifecycle/main/ [orapkg.my.oracle.net]
    at oracle.sysman.gcagent.comm.oms.http.TMClientConnection.newConnectException(TMClientConnection.java:231)
......
Caused by: java.net.UnknownHostException: orapkg.my.oracle.net
    at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
    at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:850)
    at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1201)
    at java.net.InetAddress.getAllByName0(InetAddress.java:1154)
    at java.net.InetAddress.getAllByName(InetAddress.java:1084)
    at java.net.InetAddress.getAllByName(InetAddress.java:1020)
    at HTTPClient.HTTPConnection$24.run(HTTPConnection.java:5718)
....

 

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms