- 论坛徽章:
- 59
|
关于无法分配端口的问题,一定记得改/etc/hosts文件,让主机名和IP地址对应上。
关于安装ORACLE报错:无法在指定的范围内为以下进程分配端口2009年08月25日 09:47我在昨天安装ORACLE时,报错:
严重: 无法在指定的范围内为以下进程分配端口: JMS [5540-5559],RMI [5520-5539],Database Control [5500-5519],EM Agent [3938] | [1830-1849]
有关详细资料, 请参阅 c:\oracle\cfgtoollogs\dbca\orcl\emConfig.log 中的日志文件。
2009-8-24 18:59:58 oracle.sysman.emcp.EMConfig perform
配置: Stack Trace:
oracle.sysman.emcp.exception.EMConfigException: 无法在指定的范围内为以下进程分配端口: 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)
2009-8-24 18:59:58 oracle.sysman.emcp.EMConfig restoreOuiLoc
配置: Restoring oracle.installer.oui_loc to c:\oracle\product\11.1.0\db_1\oui
再用emca -reconfig dbconrol 进行重新配置,继续出错:
2009-8-24 19:34:30 oracle.sysman.emcp.EMConfig perform
严重: 参数 PORT 的值 null 无效
有关详细资料, 请参阅 c:\oracle\cfgtoollogs\dbca\orcl\emConfig.log 中的日志文件。
2009-8-24 19:34:30 oracle.sysman.emcp.EMConfig perform
配置: Stack Trace:
oracle.sysman.emcp.exception.EMConfigException: 参数 PORT 的值 null 无效
at oracle.sysman.emcp.ParamsManager.checkParam(ParamsManager.java:2794)
at oracle.sysman.emcp.EMDBPreConfig.checkConfigParams(EMDBPreConfig.java:1515)
at oracle.sysman.emcp.EMDBPreConfig.checkParameters(EMDBPreConfig.java:1295)
at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:199)
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)
2009-8-24 19:34:30 oracle.sysman.emcp.EMConfig restoreOuiLoc
由于前几天安装过HP QC11的软件,初步怀疑是端口占用,但是用netstat 一查,根本没有冲突。折腾了一天,终于知道,QC11修改过文件:C:\Windows\System32\drivers\etc\hosts
127.0.0.1 localhost
::1 localhost
192.168.0.101 YhT-pvc
把IP和机器名称对应,然后ORACLE缺省的主机是主机名称,而在这主机下的IP又不是这个IP,所以导致了这些错误。
修给192.168.0.101 YhT-pvc 改为:192.168.0.100 YhT-pvc即可 |
|