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.Po rtManager getAgentPort
CONFIG: Cannot parse EMD_URL correctly. No port identified
Jun 2, 2010 1:35:02 PM oracle.sysman.emcp.util.Po rtManager markAllUsedPorts
CONFIG: Marking Agent port: null from /data/disk1/app/oracle/pro duct/11.2. 0/diagnost ics_db/sys man/config /emd.prope rties
Jun 2, 2010 1:35:02 PM oracle.sysman.emcp.util.Po rtManager markAllUsedPorts
CONFIG: Cannnot parse EMD_URL correctly. No port identified
Jun 2, 2010 1:35:02 PM oracle.sysman.emcp.util.Fi leUtil getProperties
CONFIG: Error reading file /data/disk1/app/oracle/pro duct/11.2. 0/diagnost ics_db/ins tall/stati cports.ini
Jun 2, 2010 1:35:03 PM oracle.sysman.emcp.EMConfi g 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/cfg toollogs/e mca/ba/emc a_2010_06_ 02_13_34_3 7.log for more details.
Jun 2, 2010 1:35:03 PM oracle.sysman.emcp.EMConfi g perform
CONFIG: Stack Trace:
oracle.sysman.emcp.excepti on.EMConfi gException : 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.EMDBPre Config.che ckPorts(EM DBPreConfi g.java:268 2)
at oracle.sysman.emcp.EMDBPre Config.per formConfig uration(EM DBPreConfi g.java:864 )
at oracle.sysman.emcp.EMDBPre Config.inv oke(EMDBPr eConfig.ja va:282)
at oracle.sysman.emcp.EMDBPre Config.inv oke(EMDBPr eConfig.ja va:195)
at oracle.sysman.emcp.EMConfi g.perform( EMConfig.j ava:250)
at oracle.sysman.emcp.EMConfi gAssistant .invokeEMC A(EMConfig Assistant. java:589)
at oracle.sysman.emcp.EMConfi gAssistant .performCo nfiguratio n(EMConfig Assistant. java:1448)
at oracle.sysman.emcp.EMConfi gAssistant .statusMai n(EMConfig Assistant. java:573)
at oracle.sysman.emcp.EMConfi gAssistant .main(EMCo nfigAssist ant.java:5 21)
Jun 2, 2010 1:35:03 PM oracle.sysman.emcp.EMConfi g restoreOuiLoc
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.Po
CONFIG: Cannot parse EMD_URL correctly. No port identified
Jun 2, 2010 1:35:02 PM oracle.sysman.emcp.util.Po
CONFIG: Marking Agent port: null from /data/disk1/app/oracle/pro
Jun 2, 2010 1:35:02 PM oracle.sysman.emcp.util.Po
CONFIG: Cannnot parse EMD_URL correctly. No port identified
Jun 2, 2010 1:35:02 PM oracle.sysman.emcp.util.Fi
CONFIG: Error reading file /data/disk1/app/oracle/pro
Jun 2, 2010 1:35:03 PM oracle.sysman.emcp.EMConfi
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/cfg
Jun 2, 2010 1:35:03 PM oracle.sysman.emcp.EMConfi
CONFIG: Stack Trace:
oracle.sysman.emcp.excepti
at oracle.sysman.emcp.EMDBPre
at oracle.sysman.emcp.EMDBPre
at oracle.sysman.emcp.EMDBPre
at oracle.sysman.emcp.EMDBPre
at oracle.sysman.emcp.EMConfi
at oracle.sysman.emcp.EMConfi
at oracle.sysman.emcp.EMConfi
at oracle.sysman.emcp.EMConfi
at oracle.sysman.emcp.EMConfi
Jun 2, 2010 1:35:03 PM oracle.sysman.emcp.EMConfi
Could you please fgrep for "emd_url" in the file "/data/disk1/app/oracle/pr oduct/11.2 .0/diagnos tics_db/sy sman/confi g/emd.prop erties" and give the output here?
ASKER
sure:
EMD_URL=http://db-svr01.mydomain.com:/emd/main/
NOTE: some values where changed for security
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.
The EMD_URL should look like the one below:
EMD_URL=<http or https>://<hostname>:<port>
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.
ASKER
ReliableDBA, thanks for the suggestion. I changed
EMD_URL=http://db-srv01:3872/emd/main/
but I still get the same error...
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.
Thanks.
ASKER
Hi,
please find the log output below.
ONFIG: Searching all DBConsole instances for used ports under ORACLE_HOME /data/disk1/app/oracle/pro duct/11.2. 0/diagnost ics_db
Jun 2, 2010 3:28:19 PM oracle.sysman.emcp.util.Po rtManager markAllUsedPorts
CONFIG: Marking JMS port: null from /data/disk1/app/oracle/pro duct/11.2. 0/diagnost ics_db/oc4 j/j2ee/OC4 J_DBConsol e
Jun 2, 2010 3:28:19 PM oracle.sysman.emcp.util.Po rtManager markAllUsedPorts
CONFIG: Marking RMI port: null from /data/disk1/app/oracle/pro duct/11.2. 0/diagnost ics_db/oc4 j/j2ee/OC4 J_DBConsol e
Jun 2, 2010 3:28:19 PM oracle.sysman.emcp.util.Po rtManager markAllUsedPorts
CONFIG: Marking HTTP port: null from /data/disk1/app/oracle/pro duct/11.2. 0/diagnost ics_db/oc4 j/j2ee/OC4 J_DBConsol e
Jun 2, 2010 3:28:19 PM oracle.sysman.emcp.util.Po rtManager markAllUsedPorts
CONFIG: Marking JMS port: null from /data/disk1/app/oracle/pro duct/11.2. 0/diagnost ics_db/oc4 j/j2ee/OC4 J_DBConsol e_ba-db-sv r03.clear. com_ba
Jun 2, 2010 3:28:19 PM oracle.sysman.emcp.util.Po rtManager markAllUsedPorts
CONFIG: Marking RMI port: null from /data/disk1/app/oracle/pro duct/11.2. 0/diagnost ics_db/oc4 j/j2ee/OC4 J_DBConsol e_ba-db-sv r03.clear. com_ba
Jun 2, 2010 3:28:19 PM oracle.sysman.emcp.util.Po rtManager markAllUsedPorts
CONFIG: Marking HTTP port: null from /data/disk1/app/oracle/pro duct/11.2. 0/diagnost ics_db/oc4 j/j2ee/OC4 J_DBConsol e_ba-db-sv r03.clear. com_ba
Jun 2, 2010 3:28:19 PM oracle.sysman.emcp.util.Po rtManager markAllUsedPorts
CONFIG: Marking Agent port: 3872 from /data/disk1/app/oracle/pro duct/11.2. 0/diagnost ics_db/sys man/config /emd.prope rties
Jun 2, 2010 3:28:19 PM oracle.sysman.emcp.util.Fi leUtil getProperties
CONFIG: Error reading file /data/disk1/app/oracle/pro duct/11.2. 0/diagnost ics_db/ins tall/stati cports.ini
Jun 2, 2010 3:28:20 PM oracle.sysman.emcp.EMConfi g 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/cfg toollogs/e mca/ba/emc a_2010_06_ 02_15_27_5 7.log for more details.
Jun 2, 2010 3:28:20 PM oracle.sysman.emcp.EMConfi g perform
CONFIG: Stack Trace:
oracle.sysman.emcp.excepti on.EMConfi gException : 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.EMDBPre Config.che ckPorts(EM DBPreConfi g.java:268 2)
at oracle.sysman.emcp.EMDBPre Config.per formConfig uration(EM DBPreConfi g.java:864 )
at oracle.sysman.emcp.EMDBPre Config.inv oke(EMDBPr eConfig.ja va:282)
at oracle.sysman.emcp.EMDBPre Config.inv oke(EMDBPr eConfig.ja va:195)
at oracle.sysman.emcp.EMConfi g.perform( EMConfig.j ava:250)
at oracle.sysman.emcp.EMConfi gAssistant .invokeEMC A(EMConfig Assistant. java:589)
at oracle.sysman.emcp.EMConfi gAssistant .performCo nfiguratio n(EMConfig Assistant. java:1448)
at oracle.sysman.emcp.EMConfi gAssistant .statusMai n(EMConfig Assistant. java:573)
at oracle.sysman.emcp.EMConfi gAssistant .main(EMCo nfigAssist ant.java:5 21)
please find the log output below.
ONFIG: Searching all DBConsole instances for used ports under ORACLE_HOME /data/disk1/app/oracle/pro
Jun 2, 2010 3:28:19 PM oracle.sysman.emcp.util.Po
CONFIG: Marking JMS port: null from /data/disk1/app/oracle/pro
Jun 2, 2010 3:28:19 PM oracle.sysman.emcp.util.Po
CONFIG: Marking RMI port: null from /data/disk1/app/oracle/pro
Jun 2, 2010 3:28:19 PM oracle.sysman.emcp.util.Po
CONFIG: Marking HTTP port: null from /data/disk1/app/oracle/pro
Jun 2, 2010 3:28:19 PM oracle.sysman.emcp.util.Po
CONFIG: Marking JMS port: null from /data/disk1/app/oracle/pro
Jun 2, 2010 3:28:19 PM oracle.sysman.emcp.util.Po
CONFIG: Marking RMI port: null from /data/disk1/app/oracle/pro
Jun 2, 2010 3:28:19 PM oracle.sysman.emcp.util.Po
CONFIG: Marking HTTP port: null from /data/disk1/app/oracle/pro
Jun 2, 2010 3:28:19 PM oracle.sysman.emcp.util.Po
CONFIG: Marking Agent port: 3872 from /data/disk1/app/oracle/pro
Jun 2, 2010 3:28:19 PM oracle.sysman.emcp.util.Fi
CONFIG: Error reading file /data/disk1/app/oracle/pro
Jun 2, 2010 3:28:20 PM oracle.sysman.emcp.EMConfi
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/cfg
Jun 2, 2010 3:28:20 PM oracle.sysman.emcp.EMConfi
CONFIG: Stack Trace:
oracle.sysman.emcp.excepti
at oracle.sysman.emcp.EMDBPre
at oracle.sysman.emcp.EMDBPre
at oracle.sysman.emcp.EMDBPre
at oracle.sysman.emcp.EMDBPre
at oracle.sysman.emcp.EMConfi
at oracle.sysman.emcp.EMConfi
at oracle.sysman.emcp.EMConfi
at oracle.sysman.emcp.EMConfi
at oracle.sysman.emcp.EMConfi
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
hmm, that file does not exist...
Is there anything that you can do about it?