Failed to shutdown DBConsole Gracefully
在关闭EM中遇到下面的错误
oracle@ZFKDB004:/home/oracle> emctl stop dbconsole
TZ set to ROC
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
http://ZFKDB004:1158/em/console/aboutApplication
Stopping Oracle Enterprise Manager 10g Database Control ...
--- Failed to shutdown DBConsole Gracefully ---
failed.
oracle@ZFKDB004:/home/oracle> emctl status dbconsole
TZ set to ROC
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
http://ZFKDB004:1158/em/console/aboutApplication
Oracle Enterprise Manager 10g is running.
------------------------------------------------------------------
oracle@ZFKDB004:/home/oracle> emctl start dbconsole
TZ set to ROC
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
http://ZFKDB004:1158/em/console/aboutApplication
- An instance of Oracle Enterprise Manager 10g Database Control is already running.
从网上找到原因:/etc/hosts文件配置错误造成的,缺少127.0.0.1 127.0.0.1 localhost.localdomain localhost.
.
修改前hosts文件的内容如下:
[root@zfkdb004 ~]# cat /etc/hosts
10.182.x.x ZFKDB004 localhost.localdomain localhost
10.182.x.x hdi_backup
修改后hosts文件的内容:
[root@zfkdb004 ~]# cat /etc/hosts
10.182.x.x ZFKDB004
10.182.x.x hdi_backup
127.0.0.1 localhost.localdomain localhost
oracle@ZFKDB004:/home/oracle> emctl stop dbconsole
TZ set to ROC
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
http://ZFKDB004:1158/em/console/aboutApplication
Stopping Oracle Enterprise Manager 10g Database Control ...
... Stopped.
附MetaLink Doc ID: 414877.1,感谢pub网友提供给我
Subject: Failed to shutdown database console gracefully
Doc ID: 414877.1 Type: PROBLEM
Modified Date : 21-DEC-2007 Status: PUBLISHED
In this Document
Symptoms
Cause
Solution
--------------------------------------------------------------------------------
Applies to:
Enterprise Manager Grid Control - Version: 10.2.0.1 to 10.2.0.3
This problem can occur on any platform.
RDBMS DB Control
Symptoms
When stopping the database console, the error bellow is shown:
[oracle@s8db-prod ~]$ emctl stop dbconsole
TZ set to Asia/Manila
Oracle Enterprise Manager 10g Database Control Release 10.2.0.2.0
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
http://foo-machine:1158/em/console/aboutApplication
Stopping Oracle Enterprise Manager 10g Database Control ...
--- Failed to shutdown DBConsole Gracefully ---
failed.
The file $ORACLE_HOME/
----- Mon Dec 11 18:12:03 2006: BConsole. Monitoring Agent+Console -----
----- Mon Dec 11 18:12:03 2006::Console Launched with PID 5270 at time Mon Dec
11 18:12:03 2006 -----
06/12/11 18:12:13 Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)
initialized
----- Mon Dec 11 18:13:34 2006::Agent Launched with PID 7320 at time Mon Dec 11
18:13:34 2006 -----
(pid=7320): starting emagent version 10.1.0.4.1
06/12/11 18:14:10 stack = java.sql.SQLException: Io exception: The Network
Adapter could not establish the connection
Cause
Issue is caused by incorrect configuration of the hosts file :
192.169.10.11 foo-machine foo-machine
192.169.10.11 localhost localhost
Solution
Correct the hosts configuration file so that it looks like:
192.169.10.11 foo-machine foo-machine
127.0.0.1 localhost localhost
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/7419833/viewspace-616617/ ,如需转载,请注明出处,否则将追究法律责任。