Question : 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

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

here is one way you can try:

if (Request.Url.ToString().Contains("/docs/"))
{
   docsTab.CssClass = "docs";
}
Random Solutions  
 
programming4us programming4us