今天在单位的一台服务器上windows操作系统下安装oracle10g,结果前半部分的安装没问题,到复制数据库时出现Enterprise Manager配置失败,参数port的值null无效的错误!安装就失败了,是不是端口已经被占用了?请各位高手给我解答一下,谢谢! 安装时的log: 2007-10-23 16:59:54 oracle.sysman.emcp.ParamsManager setParam 
配置: Setting param: LOG_FILE value: K:\oracle\product\10.2.0\db_2\cfgtoollogs\dbca\niim\emConfig.log 
2007-10-23 16:59:54 oracle.sysman.emcp.ParamsManager setParam 
配置: Setting param: HOST value: riim 
2007-10-23 16:59:54 oracle.sysman.emcp.ParamsManager setParam 
配置: Setting param: PORT value: null 
2007-10-23 16:59:54 oracle.sysman.emcp.ParamsManager setParam 
配置: Setting param: SID value: niim 
2007-10-23 16:59:54 oracle.sysman.emcp.ParamsManager setParam 
配置: Setting param: LISTENER value: LISTENER 
2007-10-23 16:59:54 oracle.sysman.emcp.ParamsManager setParam 
配置: Setting param: LISTENER_OH value: K:\oracle\product\10.2.0\db_2 
2007-10-23 16:59:54 oracle.sysman.emcp.ParamsManager setFlag 
配置: Flag  '-config ' set to true 
2007-10-23 16:59:54 oracle.sysman.emcp.ParamsManager setFlag 
配置: Flag  'db ' set to true 
2007-10-23 16:59:54 oracle.sysman.emcp.ParamsManager setParam 
配置: Setting param: EM_HOME value: K:\oracle\product\10.2.0\db_2 
2007-10-23 16:59:54 oracle.sysman.emcp.ParamsManager setParam 
配置: Setting param: DB_UNIQUE_NAME value: niim 
2007-10-23 16:59:54 oracle.sysman.emcp.ParamsManager setParam 
配置: Setting param: SERVICE_NAME value: niim 
2007-10-23 16:59:54 oracle.sysman.emcp.ParamsManager setParam 
配置: Setting param: ORACLE_HOME value: K:\oracle\product\10.2.0\db_2 
2007-10-23 16:59:54 oracle.sysman.emcp.ParamsManager setFlag 
配置: Flag  'dbcontrol ' set to true 
2007-10-23 16:59:54 oracle.sysman.emcp.ParamsManager setFlag 
配置: Flag  'UPDATE_EMAIL ' set to false 
2007-10-23 16:59:54 oracle.sysman.emcp.ParamsManager setFlag 
配置: Flag  '-backup ' set to false 
2007-10-23 16:59:54 oracle.sysman.emcp.ParamsManager setFlag 
配置: Flag  'create ' set to false 
2007-10-23 16:59:54 oracle.sysman.emcp.util.FileUtil _copyFile 
配置: 正在将文件 K:\oracle\product\10.2.0\db_2\cfgtoollogs\emca\emca_2007-10-23_04-59-54-下午.log 复制到 K:\oracle\product\10.2.0\db_2\cfgtoollogs\emca\niim\emca_2007-10-23_04-59-54-下午.log 
2007-10-23 16:59:54 oracle.sysman.emcp.EMConfig perform 
信息: 正在将此操作记录到 K:\oracle\product\10.2.0\db_2\cfgtoollogs\dbca\niim\emConfig.log。 
2007-10-23 16:59:54 oracle.sysman.emcp.ParamsManager setFlag 
配置: Flag  'CHECK_CONFIG ' set to true 
2007-10-23 16:59:54 oracle.sysman.emcp.util.GeneralUtil initSQLEngine 
配置: SQLEngine connecting with SID: niim, oracleHome: K:\oracle\product\10.2.0\db_2, and user: SYS 
2007-10-23 16:59:56 oracle.sysman.emcp.util.GeneralUtil initSQLEngine 
配置: SQLEngine created successfully and connected 
2007-10-23 16:59:56 oracle.sysman.emcp.util.GeneralUtil initSQLEngine 
配置: SQLEngine connecting with SID: niim, oracleHome: K:\oracle\product\10.2.0\db_2, and user: DBSNMP 
2007-10-23 16:59:57 oracle.sysman.emcp.util.GeneralUtil initSQLEngine 
配置: SQLEngine created successfully and connected 
2007-10-23 16:59:57 oracle.sysman.emcp.EMConfig perform 
严重: 参数 PORT 的值 null 无效 
有关详细资料, 请参阅 K:\oracle\product\10.2.0\db_2\cfgtoollogs\dbca\niim\emConfig.log 中的日志文件。 
2007-10-23 16:59:57 oracle.sysman.emcp.EMConfig perform 
配置: Stack Trace:  
oracle.sysman.emcp.exception.EMConfigException: 参数 PORT 的值 null 无效 
at oracle.sysman.emcp.ParamsManager.checkParam(ParamsManager.java:2630) 
at oracle.sysman.emcp.EMDBPreConfig.checkConfigParams(EMDBPreConfig.java:1285) 
at oracle.sysman.emcp.EMDBPreConfig.checkParameters(EMDBPreConfig.java:1060) 
at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:174) 
at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:160) 
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:141) 
at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:430) 
at java.lang.Thread.run(Thread.java:534) 

解决方案 »

  1.   

    有关详细资料, 请参阅 K:\oracle\product\10.2.0\db_2\cfgtoollogs\dbca\niim\emConfig.log 中的日志文件。  看看它说了什么.
      

  2.   

    K:\oracle\product\10.2.0\db_2\cfgtoollogs\dbca\niim\emConfig.log 中的日志我已经贴在上面了,就是安装的log.
      

  3.   

    Oracle 10G EM 创建无法分配端口是如何回事?
    [oracle@zfbdbsvr config]$ emca -config dbcontrol db
    STARTED EMCA at Jun 14, 2008 11:45:48 AM
    EM Configuration Assistant, Version 10.2.0.1.0 Production
    Copyright (c) 2003, 2005, Oracle.  All rights reserved.
    Enter the following information:
    Database SID: gstgate
    Listener port number: 1521
    Password for SYS user:  
    Password for DBSNMP user:  
    Password for SYSMAN user:  
    Email address for notifications (optional): [[email protected]][email protected][/email]
    Outgoing Mail (SMTP) server for notifications (optional): 
    -----------------------------------------------------------------
    You have specified the following settings
    Database ORACLE_HOME ................ /u01/oracle/product/10.2.0
    Database hostname ................ zfbdbsvr
    Listener port number ................ 1521
    Database SID ................ gstgate
    Email address for notifications ............... [[email protected]][email protected][/email]
    Outgoing Mail (SMTP) server for notifications ............... 
    -----------------------------------------------------------------
    Do you wish to continue? [yes(Y)/no(N)]: y
    Jun 14, 2008 11:46:20 AM oracle.sysman.emcp.EMConfig perform
    INFO: This operation is being logged at /u01/oracle/product/10.2.0/cfgtoollogs/emca/gstgate/emca_2008-06-14_11-45-48-AM.log.
    Jun 14, 2008 11:46:21 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]
    Refer to the log file at /u01/oracle/product/10.2.0/cfgtoollogs/emca/gstgate/emca_2008-06-14_11-45-48-AM.log for more details.
    Could not complete the configuration. Refer to the log file at /u01/oracle/product/10.2.0/cfgtoollogs/emca/gstgate/emca_2008-06-14_11-45-48-AM.log for more details.
      

  4.   

    [oracle@zfbdbsvr config]$ cat /u01/oracle/product/10.2.0/cfgtoollogs/emca/gstgate/emca_2008-06-14_11-45-48-AM.log
    。。
    Jun 14, 2008 11:46:21 AM oracle.sysman.emcp.util.PortManager AllUsedPorts
    CONFIG: Searching all DBConsole instances for used ports under ORACLE_HOME /u01/oracle/product/10.2.0
    Jun 14, 2008 11:46:21 AM oracle.sysman.emcp.util.PortManager AllUsedPorts
    CONFIG: Marking JMS port: null from /u01/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole
    Jun 14, 2008 11:46:21 AM oracle.sysman.emcp.util.PortManager AllUsedPorts
    CONFIG: Marking RMI port: null from /u01/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole
    Jun 14, 2008 11:46:21 AM oracle.sysman.emcp.util.PortManager AllUsedPorts
    CONFIG: Marking HTTP port: null from /u01/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole
    Jun 14, 2008 11:46:21 AM oracle.sysman.emcp.util.PortManager getAgentPort
    CONFIG: Cannot parse EMD_URL correctly. No port identified
    Jun 14, 2008 11:46:21 AM oracle.sysman.emcp.util.PortManager AllUsedPorts
    CONFIG: Marking Agent port: null from /u01/oracle/product/10.2.0/sysman/config/emd.properties
    Jun 14, 2008 11:46:21 AM oracle.sysman.emcp.util.PortManager AllUsedPorts
    CONFIG: Cannnot parse EMD_URL correctly. No port identified
    Jun 14, 2008 11:46:21 AM oracle.sysman.emcp.util.FileUtil getProperties
    CONFIG: Error reading file /u01/oracle/product/10.2.0/install/staticports.ini
    Jun 14, 2008 11:46:21 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]
    Refer to the log file at /u01/oracle/product/10.2.0/cfgtoollogs/emca/gstgate/emca_2008-06-14_11-45-48-AM.log for more details.
    Jun 14, 2008 11:46:21 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]
            at oracle.sysman.emcp.EMDBPreConfig.checkPorts(EMDBPreConfig.java:2250)
            at oracle.sysman.emcp.EMDBPreConfig.performConfiguration(EMDBPreConfig.java:685)
            at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:244)
            at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:171)
            at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:170)
            at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:486)
            at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1142)
            at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:470)
            at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:419)
      

  5.   

    检查一下/etc/hosts 文件是不是有问题。。