Enterprise manager configuration failed due to the following error -Failed to allocate prot(s) in the specified range(s) for the follow process(es) : JMS [5540-5559],RMI [5520-5539],Database Control [5500-5519],EM Agent [3938] | [1830-1849]
查看提示的报错日志
[oracle@oel10g ~]$ cat /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/dbca/testdb/emConfig.log
oracle.sysman.emcp.exception.EMConfigException: Failed to allocate port(s) in the specified range(s) for the following : JMS [5540-5559],RMI [5520-5539],Database Control [5500-5519],EM Agent [3938] | [1830-1849]
at oracle.sysman.emcp.EMDBPreConfig.checkPorts(EMDBPreConfig.java:2520)
at oracle.sysman.emcp.EMDBPreConfig.performConfiguration(EMDBPreConfig.java:752)
at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:259)
at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:185)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:221)
at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:460)
at java.lang.Thread.run(Thread.java:595)
开始时以为是端口被占用
[oracle@oel10g ~]$ netstat -an | grep -i list
通过查看没有占用 JMS [5540-5559],RMI [5520-5539],Database Control [5500-5519],EM Agent [3938] | [1830-1849]的相应端口
在百般纠结时,查看了一下自己的ip
[root@oel10g ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:6F:2A:34
inet addr:192.168.61.131 Bcast:192.168.61.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:400 errors:0 dropped:0 overruns:0 frame.:0
TX packets:430 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:35588 (34.7 KiB) TX bytes:182837 (178.5 KiB)
Interrupt:67 Base address:0x2024
[root@oel10g ~]# more /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.61.103 oel10g.localdomain oel10g
此时发现原来是由于自己的/etc/hosts文件中的ip与自己实际的ip不符合
随后更改
[root@oel10g ~]# more /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
#192.168.61.103 oel10g.localdomain oel10g
192.168.61.131 oel10g.localdomain oel10g
再次运行dbca配置EM,此时可以成功安装
Thanks
jhon
2012-08-30
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26474945/viewspace-742265/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/26474945/viewspace-742265/