oracle em报Failed to shutdown DBConsole Gracefully解决方法

故障环境:Centos6.9 +Oracle11gR2

今天发现公司一台服务器em有些不正常,查看日志发现是密码过期了。在解除密码过期和锁定后发现em依然无法正常使用,停止em时报错如下:

[oracle@whdcx log]$ emctl stop dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.3.0
Copyright (c) 1996, 2011 Oracle Corporation. All rights reserved.
https://localhost:1158/em/console/aboutApplication
Stopping Oracle Enterprise Manager 11g Database Control …

all attemps to stop oc4j failed… now trying to kill 9
— Failed to shutdown DBConsole Gracefully —
… Stopped.

Linux 下执行如下命令为发现无法杀掉的进程。

[oracle@whdcx ~]$ ps -ef|grep oc4j
oracle 11707 4652 0 17:28 pts/0 00:00:00 grep oc4j
[oracle@whdcx ~]$ ps -ef |grep dbconsole
oracle 11710 4652 0 17:28 pts/0 00:00:00 grep dbconsole

启动的时候可以正常启动但是无法正常访问

[oracle@whdcx ~]$ emctl start dbconsole;
Oracle Enterprise Manager 11g Database Control Release 11.2.0.3.0
Copyright (c) 1996, 2011 Oracle Corporation. All rights reserved.
https://localhost:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 11g Database Control ………………. started.
——————————————————————
Logs are generated in directory /home/oracle/product/11.2.0/db_1/localhost_WHDC/sysman/log

于是在查阅日志后发现hosts有问题,缺少127.0.0.1 localhost.localdomain 修改后问题得到解决。

 

发表评论