oracle版本 10.2.0.1 ,报错日志如下,大家帮忙看看:CONFIG: Failed to append DBConsole URL to readme.txt
2012-6-13 14:50:43 oracle.sysman.emcp.ParamsManager getParam
CONFIG: 未设置参数 ORACLE_HOSTNAME 的值。
2012-6-13 14:50:43 oracle.sysman.emcp.EMConfig perform
SEVERE: null
有关详细资料, 请参阅 /apps/oracle/OraHome_1/cfgtoollogs ca/tcua/emConfig.log 中的日志文件。
2012-6-13 14:50:43 oracle.sysman.emcp.EMConfig perform
CONFIG: Stack Trace: 
java.lang.NullPointerException
        at oracle.sysman.emcp.util.DBControlUtil.getRepositoryURL(DBControlUtil.java:202)
        at oracle.sysman.emcp.EMDBPostConfig.getRepositoryURL(EMDBPostConfig.java:1449)
        at oracle.sysman.emcp.EMDBPostConfig.getRepositoryURLMessage(EMDBPostConfig.java:1442)
        at oracle.sysman.emcp.EMDBPostConfig.performConfiguration(EMDBPostConfig.java:591)
        at oracle.sysman.emcp.EMDBPostConfig.invoke(EMDBPostConfig.java:177)
        at oracle.sysman.emcp.EMDBPostConfig.invoke(EMDBPostConfig.java:146)
        at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:155)
        at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:426)
        at java.lang.Thread.run(Thread.java:568)

解决方案 »

  1.   

    CONFIG: 未设置参数 ORACLE_HOSTNAME 的值
      

  2.   

    使用命令行方式一步步创建emca -config dbcontrol db -repos create|recreate它会教你一步步输入创建em需要的参数,注意一下创建em前需要配置listener.
      

  3.   

    谢谢各位,问题一个星期前已经解决。是因为环境变量 LANG的原因,需要是en_US