Failed to shutdown database console gracefully
今天在執行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/
報錯資訊:
----- 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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Bug 4632780 - PMON "failed to acquire latch" during shutdownAIUI
- PMON "failed to acquire latch" during shutdown-4632780.8AIUI
- Overview of Database and Instance Shutdown (302)ViewDatabase
- ORA-38760: This database instance failed to turn on flashback databaseDatabaseAI
- 如何手工重建10g database consoleDatabase
- ORA-38760: This database instance failed to turn on flashback database 第三篇DatabaseAI
- ORA-38760: This database instance failed to turn on flashback database 錯誤解決DatabaseAI
- failed to establish dependency between database GERP and diskgroup resourceAIDatabase
- When to Use Startup / Shutdown DB and Alter Database Command in 12c_1582453.1Database
- ERROR: failed to establish dependency between database db_name and diskgroupErrorAIDatabase
- SQLBackupAndFTP12.0 failed to backup database with full backup typeSQLFTPAIDatabase
- linux下配置oracle 10G EM Database ConsoleLinuxOracle 10gDatabase
- PMON TRYING TO START CJQ0 DURING DATABASE SHUTDOWN-ORA-443&ORA-450Database
- Server shutdown in progressServer
- Oracle shutdown and startupOracle
- 關閉資料庫遇到SHUTDOWN: Active processes prevent shutdown operation資料庫
- [Ins-20802] Oracle Database Configuration Assistant failedOracleDatabaseAI
- SQLSERVER 2012從2000還原失敗:Restore of database failedSQLServerRESTDatabaseAI
- db支援共享模式連線的話shutdown通常會很慢(dispatcher shutdown)模式
- shutdown immediate alert出現SHUTDOWN: waiting for active calls to complete.AI
- Unity3d build打包app時報錯:Failed to re-package resources. See the Console for details.Unity3DUIAPPAIPackage
- 為ExecutorService增加shutdown hookHook
- shutdown,halt,reboot,init(轉)boot
- PRKR-1005 : adding of cluster database asmdb configuration failed, {1}DatabaseASMAI
- zt_Resolving Shutdown Immediate Hang Situations_shutdown immediate關庫慢
- Linux基礎命令---shutdownLinux
- MYSQL The Server Shutdown Process(筆記)MySqlServer筆記
- 不同shutdown命令的區別
- mysqld: Sort aborted: Server shutdown in progressMySqlServer
- oracle shutdown 引數對比Oracle
- 2 Day DBA-開始資料庫管理-啟動和停止Database Control Console程式資料庫Database
- 禁用console
- js中console日誌詳解 | console groupJS
- Linux下shutdown命令詳解Linux
- MySQL • 原始碼分析 • SHUTDOWN過程MySql原始碼
- 關於shutdown的幾個模式模式
- shutdown命令被job程式hang住
- Java Console類Java