ITPub博客

首页 > 应用开发 > IT综合 > 关于emctl报OC4J issue的解决

关于emctl报OC4J issue的解决

原创 IT综合 作者:zildjianzhang 时间:2008-03-17 10:11:52 0 删除 编辑

相信10g,emctl在给很多DBA带来很大便利的同时,也给我们带来了一些困扰。在这其中,OC4J issue应该算是一个常见的问题。就我个人而言,遇到过已经不止一次,这包括单机环境,RAC环境等。

今天查找资料,便作总结:

原因:是由于主机名发生变化,导致IP地址解析不能够返回正确的hostname

详见下文解释:

The information in this document applies to:
Enterprise Manager for RDBMS - Version: 10.1.0.3
This problem can occur on any platform.

Symptoms
Getting the following error when starting dbconsole:

$ emctl start dbconsole
OC4J Configuration issue.
/u01/app/oracle/product/10.1.0/db10g/oc4j/j2ee/OC4J_DBConsole_5 [main] WAR
N emSDK.config - Exception in getting local host
java.net.UnknownHostException:
at java.net.InetAddress.getLocalHost(InetAddress.java:1199)
at
oracle.sysman.emSDK.conf.TargetInstaller.getLocalHost(TargetInstaller.java:4790)
at
oracle.sysman.emSDK.conf.TargetInstaller.main(TargetInstaller.java:3767)
null_altpmp1 not found.

Cause
A reverse lookup using the ip address of the server does not return the correct hostname.

If it is not possible to resolve the ip address of the server, dbconsole will not start.

Solution
To implement the solution, please execute the following steps:

1.Configure DNS (or local hosts file) to allow the ip address of the server to resolve to the hostname of the server
2. Start the dbconsole using:

/bin/emctl start dbconsole

扩展内有部分常用emca命令:

[@more@]

查看em control的配置信息 emca -displayConfig dbcontrol –cluster

重新配置cluster emca -reconfig dbcontrol –cluster –EM_NODE -EM_SID_LIST

当主机名或IP地址更改后,会导致em control失效,运行 emca -deconfig dbcontrol db -repos drop [-cluster] emca -config dbcontrol db -repos create [-cluster]

当TNS更改后,运行 emca -config dbcontrol db [-cluster]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/404722/viewspace-1001050/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
  • 博文量
    15
  • 访问量
    206091