OEM 错误处理一例 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]. Fix the error(s) and re-run EM Configuration Assistant.
使用DBUA做数据库升级,最后出现OEM错误
日志如下:
-bash-4.1$ tail -100 /oracle/cfgtoollogs/dbca/xhl/emConfig.log
Nov 14, 2012 2:21:14 AM oracle.sysman.emcp.util.PortManager isPortFree
CONFIG: IP Address: shlong/192.168.221.21 isIPV6: false
Nov 14, 2012 2:21:14 AM oracle.sysman.emcp.util.PortManager isPortFree
CONFIG: IP Address: shlong/127.0.0.1 isIPV6: false
Nov 14, 2012 2:21:14 AM oracle.sysman.emcp.util.PortManager isPortFree
CONFIG: IP Address: shlong/192.168.221.21 isIPV6: false
Nov 14, 2012 2:21:14 AM oracle.sysman.emcp.util.PortManager isPortFree
CONFIG: IP Address: shlong/127.0.0.1 isIPV6: false
Nov 14, 2012 2:21:14 AM oracle.sysman.emcp.util.PortManager isPortFree
CONFIG: IP Address: shlong/192.168.221.21 isIPV6: false
Nov 14, 2012 2:21:14 AM oracle.sysman.emcp.util.PortManager isPortFree
CONFIG: IP Address: shlong/127.0.0.1 isIPV6: false
Nov 14, 2012 2:21:14 AM oracle.sysman.emcp.util.PortManager isPortFree
CONFIG: IP Address: shlong/192.168.221.21 isIPV6: false
Nov 14, 2012 2:21:14 AM oracle.sysman.emcp.util.PortManager isPortFree
CONFIG: IP Address: shlong/127.0.0.1 isIPV6: false
Nov 14, 2012 2:21:14 AM oracle.sysman.emcp.util.PortManager isPortFree
CONFIG: IP Address: shlong/192.168.221.21 isIPV6: false
Nov 14, 2012 2:21:14 AM oracle.sysman.emcp.util.PortManager isPortFree
CONFIG: IP Address: shlong/127.0.0.1 isIPV6: false
Nov 14, 2012 2:21:14 AM oracle.sysman.emcp.util.PortManager isPortFree
CONFIG: IP Address: shlong/192.168.221.21 isIPV6: false
Nov 14, 2012 2:21:14 AM oracle.sysman.emcp.util.PortManager isPortFree
CONFIG: IP Address: shlong/127.0.0.1 isIPV6: false
Nov 14, 2012 2:21:14 AM oracle.sysman.emcp.util.PortManager isPortFree
CONFIG: IP Address: shlong/192.168.221.21 isIPV6: false
Nov 14, 2012 2:21:14 AM oracle.sysman.emcp.util.PortManager isPortFree
CONFIG: IP Address: shlong/127.0.0.1 isIPV6: false
Nov 14, 2012 2:21:14 AM oracle.sysman.emcp.util.PortManager isPortFree
CONFIG: IP Address: shlong/192.168.221.21 isIPV6: false
Nov 14, 2012 2:21:14 AM oracle.sysman.emcp.util.PortManager isPortFree
CONFIG: IP Address: shlong/127.0.0.1 isIPV6: false
Nov 14, 2012 2:21:14 AM oracle.sysman.emcp.util.PortManager isPortFree
CONFIG: IP Address: shlong/192.168.221.21 isIPV6: false
Nov 14, 2012 2:21:14 AM oracle.sysman.emcp.util.PortManager isPortFree
CONFIG: IP Address: shlong/127.0.0.1 isIPV6: false
Nov 14, 2012 2:21:14 AM oracle.sysman.emcp.util.PortManager isPortFree
CONFIG: IP Address: shlong/192.168.221.21 isIPV6: false
Nov 14, 2012 2:21:14 AM oracle.sysman.emcp.util.PortManager isPortFree
CONFIG: IP Address: shlong/127.0.0.1 isIPV6: false
Nov 14, 2012 2:21:14 AM oracle.sysman.emcp.util.PortManager isPortFree
CONFIG: IP Address: shlong/192.168.221.21 isIPV6: false
Nov 14, 2012 2:21:14 AM oracle.sysman.emcp.util.PortManager isPortFree
CONFIG: IP Address: shlong/127.0.0.1 isIPV6: false
Nov 14, 2012 2:21:14 AM oracle.sysman.emcp.util.PortManager isPortFree
CONFIG: IP Address: shlong/192.168.221.21 isIPV6: false
Nov 14, 2012 2:21:14 AM oracle.sysman.emcp.util.PortManager isPortFree
CONFIG: IP Address: shlong/127.0.0.1 isIPV6: false
Nov 14, 2012 2:21:14 AM oracle.sysman.emcp.util.PortManager isPortFree
CONFIG: IP Address: shlong/192.168.221.21 isIPV6: false
Nov 14, 2012 2:21:14 AM oracle.sysman.emcp.util.PortManager isPortFree
CONFIG: IP Address: shlong/127.0.0.1 isIPV6: false
Nov 14, 2012 2:21:14 AM oracle.sysman.emcp.util.PortManager isPortFree
CONFIG: IP Address: shlong/192.168.221.21 isIPV6: false
Nov 14, 2012 2:21:14 AM oracle.sysman.emcp.util.PortManager isPortFree
CONFIG: IP Address: shlong/127.0.0.1 isIPV6: false
Nov 14, 2012 2:21:14 AM oracle.sysman.emcp.util.PortManager isPortFree
CONFIG: IP Address: shlong/192.168.221.21 isIPV6: false
Nov 14, 2012 2:21:14 AM oracle.sysman.emcp.util.PortManager isPortFree
CONFIG: IP Address: shlong/127.0.0.1 isIPV6: false
Nov 14, 2012 2:21:14 AM oracle.sysman.emcp.util.PortManager isPortFree
CONFIG: IP Address: shlong/192.168.221.21 isIPV6: false
Nov 14, 2012 2:21:14 AM oracle.sysman.emcp.util.PortManager isPortFree
CONFIG: IP Address: shlong/127.0.0.1 isIPV6: false
Nov 14, 2012 2:21:14 AM oracle.sysman.emcp.util.PortManager isPortFree
CONFIG: IP Address: shlong/192.168.221.21 isIPV6: false
Nov 14, 2012 2:21:14 AM 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]. Fix the error(s) and re-run EM Configuration Assistant.
Some of the possible reasons may be:
1) Firewall may be on. Turn it off.
2) Port is already in use by some other process. Either free the port or re-run emca script by providing free ports as command line options.
Refer to the log file at /oracle/cfgtoollogs/dbca/xhl/emConfig.log for more details.
Nov 14, 2012 2:21:14 AM 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]. Fix the error(s) and re-run EM Configuration Assistant.
Some of the possible reasons may be:
1) Firewall may be on. Turn it off.
2) Port is already in use by some other process. Either free the port or re-run emca script by providing free ports as command line options.
at oracle.sysman.emcp.EMDBPreConfig.checkPorts(EMDBPreConfig.java:2669)
at oracle.sysman.emcp.EMDBPreConfig.performConfiguration(EMDBPreConfig.java:881)
at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:288)
at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:198)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:250)
at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:621)
at oracle.sysman.assistants.util.em.EMConfigStep.executeImpl(EMConfigStep.java:139)
at oracle.sysman.assistants.util.step.BasicStep.execute(BasicStep.java:210)
at oracle.sysman.assistants.util.step.BasicStep.callStep(BasicStep.java:251)
at oracle.sysman.assistants.dbca.backend.PostDBConfigureStep.executeImpl(PostDBConfigureStep.java:269)
at oracle.sysman.assistants.util.step.BasicStep.execute(BasicStep.java:210)
at oracle.sysman.assistants.util.step.Step.execute(Step.java:140)
at oracle.sysman.assistants.util.step.StepContext$ModeRunner.run(StepContext.java:2708)
at java.lang.Thread.run(Thread.java:637)
Nov 14, 2012 2:21:14 AM oracle.sysman.emcp.EMConfig restoreOuiLoc
CONFIG: Restoring oracle.installer.oui_loc to /oracle/product/11.2.0/db_1/oui
日志信息中出现了 很多的如下IP信息
CONFIG: IP Address: shlong/127.0.0.1 isIPV6: false
CONFIG: IP Address: shlong/192.168.221.21 isIPV6: false
本机的ip地址不是如上的地址啊。
-bash-4.1$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:BD:DD:D5
inet addr:192.168.221.221 Bcast:192.168.221.221 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:febd:ddd5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2289 errors:0 dropped:0 overruns:0 frame.:0
TX packets:4013 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:158777 (155.0 KiB) TX bytes:678355 (662.4 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:65567 errors:0 dropped:0 overruns:0 frame.:0
TX packets:65567 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:29425447 (28.0 MiB) TX bytes:29425447 (28.0 MiB)
-bash-4.1$
查看 listener 配置信息如下:
-bash-4.1$ cat /oracle/product/11.2.0/db_1/network/admin/listener.ora
# listener.ora Network Configuration File: /oracle/product/11.2.0/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
)
ADR_BASE_LISTENER = /oracle
-bash-4.1$
从如上的信息来看,应该就是IP相关的信息导致的错误。192.168.221.21 为之前的IP地址了。查看 /etc/hosts 发现信息不正确
-bash-4.1$ cat /etc/hosts
127.0.0.1 localhost localhost.localdomain shlong
192.168.221.21 shlong
-bash-4.1$
发现问题,修改IP地址 hostname 。重新安装 OEM 即可。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/25475140/viewspace-749246/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/25475140/viewspace-749246/