Link to home
Start Free TrialLog in
Avatar of Jax Logan
Jax Logan

asked on

Failed to allocate port error when configuring EM (Oracle 11g)

Experts,

I'm having some issues when I try to configure EM (see log below)
./emca -config dbcontrol db -repos create
on 11g.

I think part of the problem is that the Oracle instance was created with a host name of <server>.domain.com but this server + domain name does not resolve. The /etc/hosts file contains an entry for IP address - server name.

Any suggestions?

Thanks!

Jun 2, 2010 1:35:02 PM oracle.sysman.emcp.util.PortManager getAgentPort
CONFIG: Cannot parse EMD_URL correctly. No port identified
Jun 2, 2010 1:35:02 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
CONFIG: Marking Agent port: null from /data/disk1/app/oracle/product/11.2.0/diagnostics_db/sysman/config/emd.properties
Jun 2, 2010 1:35:02 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
CONFIG: Cannnot parse EMD_URL correctly. No port identified
Jun 2, 2010 1:35:02 PM oracle.sysman.emcp.util.FileUtil getProperties
CONFIG: Error reading file /data/disk1/app/oracle/product/11.2.0/diagnostics_db/install/staticports.ini
Jun 2, 2010 1:35:03 PM oracle.sysman.emcp.EMConfig perform
SEVERE: Failed to allocate port(s) in the specified range(s) for the following process(es): JMS [5540-5559],RMI [5520-5539],Database Control [5500-5519],EM Agent [3938] | [1830-1849]
Refer to the log file at /data/disk1/app/oracle/cfgtoollogs/emca/ba/emca_2010_06_02_13_34_37.log for more details.
Jun 2, 2010 1:35:03 PM oracle.sysman.emcp.EMConfig perform
CONFIG: Stack Trace:
oracle.sysman.emcp.exception.EMConfigException: Failed to allocate port(s) in the specified range(s) for the following process(es): JMS [5540-5559],RMI [5520-5539],Database Control [5500-5519],EM Agent [3938] | [1830-1849]
      at oracle.sysman.emcp.EMDBPreConfig.checkPorts(EMDBPreConfig.java:2682)
      at oracle.sysman.emcp.EMDBPreConfig.performConfiguration(EMDBPreConfig.java:864)
      at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:282)
      at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:195)
      at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:250)
      at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:589)
      at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1448)
      at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:573)
      at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:521)
Jun 2, 2010 1:35:03 PM oracle.sysman.emcp.EMConfig restoreOuiLoc
Avatar of Chakravarthi Ayyala
Chakravarthi Ayyala
Flag of United States of America image

Could you please fgrep for "emd_url" in the file "/data/disk1/app/oracle/product/11.2.0/diagnostics_db/sysman/config/emd.properties" and give the output here?
Avatar of Jax Logan
Jax Logan

ASKER

sure:
EMD_URL=http://db-svr01.mydomain.com:/emd/main/

NOTE: some values where changed for security
That is ok on the part of values being changed for security.

The EMD_URL should look like the one below:
    EMD_URL=<http or https>://<hostname>:<port>/emd/main/

Hence, please give the port on which you want to run your agent.
If you are not sure about the port, please start with 3872 and in which case, give the http, but not https.
ReliableDBA, thanks for the suggestion. I changed
EMD_URL=http://db-srv01:3872/emd/main/

but I still get the same error...
Could you please copy/paste your error message after this change or you can email me at cayyala@yahoo.com.
Thanks.
Hi,

please find the log output below.

ONFIG: Searching all DBConsole instances for used ports under ORACLE_HOME /data/disk1/app/oracle/product/11.2.0/diagnostics_db
Jun 2, 2010 3:28:19 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
CONFIG: Marking JMS port: null from /data/disk1/app/oracle/product/11.2.0/diagnostics_db/oc4j/j2ee/OC4J_DBConsole
Jun 2, 2010 3:28:19 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
CONFIG: Marking RMI port: null from /data/disk1/app/oracle/product/11.2.0/diagnostics_db/oc4j/j2ee/OC4J_DBConsole
Jun 2, 2010 3:28:19 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
CONFIG: Marking HTTP port: null from /data/disk1/app/oracle/product/11.2.0/diagnostics_db/oc4j/j2ee/OC4J_DBConsole
Jun 2, 2010 3:28:19 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
CONFIG: Marking JMS port: null from /data/disk1/app/oracle/product/11.2.0/diagnostics_db/oc4j/j2ee/OC4J_DBConsole_ba-db-svr03.clear.com_ba
Jun 2, 2010 3:28:19 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
CONFIG: Marking RMI port: null from /data/disk1/app/oracle/product/11.2.0/diagnostics_db/oc4j/j2ee/OC4J_DBConsole_ba-db-svr03.clear.com_ba
Jun 2, 2010 3:28:19 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
CONFIG: Marking HTTP port: null from /data/disk1/app/oracle/product/11.2.0/diagnostics_db/oc4j/j2ee/OC4J_DBConsole_ba-db-svr03.clear.com_ba
Jun 2, 2010 3:28:19 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
CONFIG: Marking Agent port: 3872 from /data/disk1/app/oracle/product/11.2.0/diagnostics_db/sysman/config/emd.properties
Jun 2, 2010 3:28:19 PM oracle.sysman.emcp.util.FileUtil getProperties
CONFIG: Error reading file /data/disk1/app/oracle/product/11.2.0/diagnostics_db/install/staticports.ini
Jun 2, 2010 3:28:20 PM oracle.sysman.emcp.EMConfig perform
SEVERE: Failed to allocate port(s) in the specified range(s) for the following process(es): JMS [5540-5559],RMI [5520-5539],Database Control [5500-5519],EM Agent [3938] | [1830-1849]
Refer to the log file at /data/disk1/app/oracle/cfgtoollogs/emca/ba/emca_2010_06_02_15_27_57.log for more details.
Jun 2, 2010 3:28:20 PM oracle.sysman.emcp.EMConfig perform
CONFIG: Stack Trace:
oracle.sysman.emcp.exception.EMConfigException: Failed to allocate port(s) in the specified range(s) for the following process(es): JMS [5540-5559],RMI [5520-5539],Database Control [5500-5519],EM Agent [3938] | [1830-1849]
        at oracle.sysman.emcp.EMDBPreConfig.checkPorts(EMDBPreConfig.java:2682)
        at oracle.sysman.emcp.EMDBPreConfig.performConfiguration(EMDBPreConfig.java:864)
        at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:282)
        at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:195)
        at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:250)
        at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:589)
        at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1448)
        at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:573)
        at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:521)

ASKER CERTIFIED SOLUTION
Avatar of Chakravarthi Ayyala
Chakravarthi Ayyala
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
hmm, that file does not exist...
Is there anything that you can do about it?