Failed to shutdown database console gracefully

zhanglei_itput發表於2009-05-14

   今天在執行emctl stop dbconsole的時候,出現一個錯誤:
    Failed to shutdown database console gracefully
    查詢metalink原因如下:
    1.  問題重現
          [oracle@rac1 ~]$ emctl stop dbconsole
          TZ set to Asia/Manila
          Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
          Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
           

           Stopping Oracle Enterprise Manager 10g Database Control ...
            --- Failed to shutdown DBConsole Gracefully ---
            failed.
            檢視$ORACLE_HOME//sysman/log/emdb.nohup 
            報錯資訊:
----- Mon Dec 11 18:12:03 2006::DBConsole. 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


    2.  原因
         Issue is caused by incorrect configuration of the /etc/hosts file :
         (問題原因為:沒有127.0.0.1  localhost這一行)
         192.168.230.66  rac1.domain.com rac1
         192.168.230.68  rac1-vip.domain.com     rac1-vip
         10.10.10.31     rac1-priv.domain.com    rac1-priv
         192.168.230.67  rac2.domain.com rac2
         192.168.230.69  rac2-vip.domain.com     rac2-vip
         10.10.10.32     rac2-priv.domain.com    rac2-priv

     3. 解決辦法 
         Correct the hosts configuration file so that it looks like:
          [root@rac1 ~]#  vi  /etc/host
          新增 127.0.0.1  localhost

     4.驗證結果
         [oracle@rac1 ~]$ emctl start dbconsole
TZ set to PRC
Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0 
Copyright (c) 1996, 2007 Oracle Corporation.  All rights reserved.

Starting Oracle Enterprise Manager 10g Database Control ......... started.
------------------------------------------------------------------
Logs are generated in directory /u01/app/oracle/product/10.2.0/db_1/rac1_devdb1/sysman/log
[oracle@rac1 ~]$ emctl status dbconsole
TZ set to PRC
Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0 
Copyright (c) 1996, 2007 Oracle Corporation.  All rights reserved.

Oracle Enterprise Manager 10g is running.
------------------------------------------------------------------
Logs are generated in directory /u01/app/oracle/product/10.2.0/db_1/rac1_devdb1/sysman/log
 
備註:此問題是我在做vmware複製的時候遇到的一個問題,當把C:\VM\rac1\*的檔案複製到C:\VM\rac2\下或者在做不同主機copy的時候,/etc/hosts檔案中的127.0.0.1會自動消失,會導致節點起不來或者emctl stop dbconsole遇到問題,需要手工修改/etc/hosts檔案,新增127.0.0.1 localhost進去,要細心的檢查。


參考文獻:

Subject: Failed to shutdown database console gracefully
  : 414877.1 Type: PROBLEM
  Modified Date : 21-DEC-2007 Status: PUBLISHED


  

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

相關文章