关于emctl报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命令:

[@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/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/404722/viewspace-1001050/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值