相信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命令:
查看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/8119050/viewspace-1006964/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/8119050/viewspace-1006964/