詳細(xì)介紹Oracle數(shù)據(jù)庫EM Console重建過程
作者:Albert
本文詳細(xì)介紹了Oracle數(shù)據(jù)庫中EM Console重建的一些知識(shí)以及重建時(shí)的錯(cuò)誤分析與解決,希望能夠?qū)δ兴鶐椭?/div>
Oracle數(shù)據(jù)庫操作中,在對(duì)Oracle數(shù)據(jù)庫庫EM Console重建時(shí),EM啟動(dòng)報(bào)錯(cuò),錯(cuò)誤代碼如下:
- C:\Documents and Settings\GAOYANG>set ORACLE_SID=rman
- C:\Documents and Settings\GAOYANG>emctl start dbconsole
- OC4J Configuration issue. D:\oracle\product\10.2.0
- \db_1/oc4j/j2ee/OC4J_DBConsole
- _192.100.8.188_rman not found.
由此,我們分析一下重建時(shí)可能遇到的問題:
- 1.EM Configuration issue
- 2.OC4J Configuration issue
按照如下步驟正常完成Oracle 10g EM Console重建。
- C:\Documents and Settings\GAOYANG>emca -config dbcontrol db -repos
- recreate
- EMCA 開始于 2009-5-6 9:28:19
- EM Configuration Assistant 10.2.0.1.0 正式版
- 版權(quán)所有 (c) 2003, 2005, Oracle。保留所有權(quán)利。
- 輸入以下信息:
- 數(shù)據(jù)庫 SID: rman
- 監(jiān)聽程序端口號(hào): 1158
- SYS 用戶的口令:
- DBSNMP 用戶的口令:
- SYSMAN 用戶的口令:
- 通知的電子郵件地址 (可選):
- 通知的發(fā)件 (SMTP) 服務(wù)器 (可選):
- -----------------------------------------------------------------
- 已指定以下設(shè)置
- 數(shù)據(jù)庫 ORACLE_HOME ................ D:\oracle\product\10.2.0\db_1
- 數(shù)據(jù)庫主機(jī)名 ................ 192.100.8.188
- 監(jiān)聽程序端口號(hào) ................ 1158
- 數(shù)據(jù)庫 SID ................ rman
- 通知的電子郵件地址 ...............
- 通知的發(fā)件 (SMTP) 服務(wù)器 ...............
- -----------------------------------------------------------------
- 是否繼續(xù)? [yes(Y)/no(N)]: Y
- 2009-5-6 9:28:36 oracle.sysman.emcp.EMConfig perform
- 信息: 正在將此操作記錄到 D:\oracle\product\10.2.0\db_1
- \cfgtoollogs\emca\rman\emc
- a_2009-05-06_09-28-19-上午.log。
- 2009-5-6 9:28:40 oracle.sysman.emcp.EMReposConfig dropRepository
- 信息:正在刪除 EM 資料檔案庫 (此操作可能需要一段時(shí)間)...
- 2009-5-6 9:28:42 oracle.sysman.emcp.EMReposConfig invoke
- 信息: 已成功刪除資料檔案庫
- 2009-5-6 9:28:43 oracle.sysman.emcp.EMReposConfig createRepository
- 信息:正在創(chuàng)建EM資料檔案庫 (此操作可能需要一段時(shí)間)...
- 2009-5-6 9:28:43 oracle.sysman.emcp.EMReposConfig invoke
- 嚴(yán)重:創(chuàng)建資料檔案庫時(shí)出錯(cuò)
- 2009-5-6 9:28:43 oracle.sysman.emcp.EMReposConfig invoke
- 信息:有關(guān)詳細(xì)資料, 請(qǐng)參閱 D:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\rman\emca_repos_create_<日期>.log 中的日志文件。
- 2009-5-6 9:28:43 oracle.sysman.emcp.EMConfig perform
- 嚴(yán)重:創(chuàng)建資料檔案庫時(shí)出錯(cuò)
- 有關(guān)詳細(xì)資料, 請(qǐng)參閱 D:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\rman\emca_2009-05-06_09-28-19-上午.log 中的日志文件。
- 無法完成配置。 有關(guān)詳細(xì)資料, 請(qǐng)參閱 D:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\rman\emca_2009-05-06_09-28-19-上午.log 中的日志文件。
- 3.如果遇到:oracle.sysman 報(bào)錯(cuò),導(dǎo)致不成功,則
- a. drop user sysman cascade;
- b. drop role MGMT_USER;
- c. drop user MGMT_VIEW cascade;
- d. drop public synonym MGMT_TARGET_BLACKOUTS;
- e. drop public synonym SETEMVIEWUSERCONTEXT;
- f.emca -config dbcontrol db -repos create
- C:\Documents and Settings\GAOYANG>sqlplus / as sysdba
- SQL*Plus: Release 10.2.0.1.0 - Production on Wed May 6 09:29:31 2009
- Copyright (c) 1982, 2005, Oracle. All rights reserved.
- Connected to:
- Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
- With the Partitioning, OLAP and Data Mining options
- SQL> drop user sysman cascade;
- User dropped.
- SQL> drop role MGMT_USER;
- Role dropped.
- SQL> drop user MGMT_VIEW cascade;
- User dropped.
- SQL> drop public synonym MGMT_TARGET_BLACKOUTS;
- Synonym dropped.
- SQL> drop public synonym SETEMVIEWUSERCONTEXT;
- Synonym dropped.
- SQL> exit
- Disconnected from Oracle Database 10g Enterprise Edition Release
- 10.2.0.1.0 - Pr
- oduction
- With the Partitioning, OLAP and Data Mining options
- C:\Documents and Settings\GAOYANG>emca -config dbcontrol db -repos
- create
- EMCA 開始于 2009-5-6 9:32:24
- EM Configuration Assistant 10.2.0.1.0 正式版
- 版權(quán)所有 (c) 2003, 2005, Oracle。保留所有權(quán)利。
- 輸入以下信息:
- 數(shù)據(jù)庫 SID: rman
- 監(jiān)聽程序端口號(hào): 1158
- SYS 用戶的口令:
- DBSNMP 用戶的口令:
- SYSMAN 用戶的口令:
- SYSMAN 用戶的口令: 通知的電子郵件地址 (可選):
- 通知的發(fā)件 (SMTP) 服務(wù)器 (可選):
- -----------------------------------------------------------------
- 已指定以下設(shè)置
- 數(shù)據(jù)庫 ORACLE_HOME ................ D:\oracle\product\10.2.0\db_1
- 數(shù)據(jù)庫主機(jī)名 ................ 192.100.8.188
- 監(jiān)聽程序端口號(hào) ................ 1158
- 數(shù)據(jù)庫 SID ................ rman
- 通知的電子郵件地址 ...............
- 通知的發(fā)件 (SMTP) 服務(wù)器 ...............
- -----------------------------------------------------------------
- 是否繼續(xù)? [yes(Y)/no(N)]: Y
- 2009-5-6 9:40:34 oracle.sysman.emcp.EMConfig perform
- 信息: 正在將此操作記錄到 D:\oracle\product\10.2.0\db_1
- \cfgtoollogs\emca\rman\emc
- a_2009-05-06_09-40-00-上午.log。
- 2009-5-6 9:40:36 oracle.sysman.emcp.util.DBControlUtil stopOMS
- 信息:正在停止 Database Control (此操作可能需要一段時(shí)間)...
- 2009-5-6 9:40:42 oracle.sysman.emcp.ParamsManager getLocalListener
- 警告:檢索 192.100.8.188 的監(jiān)聽程序時(shí)出錯(cuò)。
- 2009-5-6 9:40:44 oracle.sysman.emcp.util.DBControlUtil startOMS
- 信息:正在啟動(dòng) Database Control (此操作可能需要一段時(shí)間)...
- 2009-5-6 9:41:34 oracle.sysman.emcp.EMDBPostConfig
- performConfiguration
- 信息:已成功啟動(dòng) Database Control
- 2009-5-6 9:41:35 oracle.sysman.emcp.EMDBPostConfig
- performConfiguration
- 警告:無法創(chuàng)建 Database Control 快捷方式
- 2009-5-6 9:41:35 oracle.sysman.emcp.EMDBPostConfig
- performConfiguration
- 信息: >>>>>>>>>>> Database Control URL 為 http://192.100.8.188:5500/em
- <<<<<<<<<
- <<
- 已成功完成Enterprise Manager的配置
- EMCA 結(jié)束于2009-5-6 9:41:35
注意設(shè)置好IP地址!
4.打開服務(wù):emctl start dbconsole
5.遇到:OC4J Configuration issue 報(bào)錯(cuò),檢查發(fā)現(xiàn)指定目錄下沒有提示的文件夾,只有一個(gè)類似的,cp -r 一個(gè)提示的文件夾。重新執(zhí)行emctl start dbconsole,成功。
6.查看當(dāng)前狀態(tài):emctl status dbconsole
7.端口號(hào)可查看文件:$ORACLE_HOME/install/portlist.ini
關(guān)于Oracle數(shù)據(jù)庫EM Console重建的知識(shí)就介紹到這里,如果您想了解更多的Oracle數(shù)據(jù)庫的知識(shí),可以看一下這里的文章:http://database.51cto.com/oracle/,相信一定能夠帶給您收獲的!
【編輯推薦】
責(zé)任編輯:趙鵬
來源:
網(wǎng)易博客


相關(guān)推薦




