天天看點

OC4J issue

相信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]

[@[email protected]]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8119050/viewspace-1006964/,如需轉載,請注明出處,否則将追究法律責任。

轉載于:http://blog.itpub.net/8119050/viewspace-1006964/