天天看點

OEM資料總管,web頁面無法啟動的故障處理方法

問題:

[oracle@localhost OC4J_DBConsole]$ emctl start dbconsole

TZ set to PRC

OC4J Configuration issue. /u01/app/oracle/product/10.2.0/db_1/oc4j/j2ee/OC4J_DBConsole_localhost.localdomain_orcl not found.

其實産生的這樣的情況,可能是em資料庫配置不正确或者是dbcotrol沒有配置好。

解決: 

①重建em資料

[oracle@localhost OC4J_DBConsole]$ emca -repos recreate

...

Enter the following information:

Database SID: orcl

Listener port number: 1521

Password for SYSMAN user: oracle

Do you wish to continue? [yes(Y)/no(N)]: y

INFO: Repository successfully created

②配置dbcontrol

[oracle@localhost OC4J_DBConsole]$ emca -config dbcontrol db

EMCA 開始于 2009-6-8 21:50:28

EM Configuration Assistant 10.2.0.1.0 正式版

版權所有 (c) 2003, 2005, Oracle。保留所有權利。

輸入以下資訊:

監聽程式端口号: 1521

SYS 使用者的密碼: (密碼是看不到的)

DBSNMP 使用者的密碼: (密碼是看不到的)

SYSMAN 使用者的密碼: (密碼是看不到的)

通知的電子郵件位址 (可選):

通知的發件 (SMTP) 伺服器 (可選):

-----------------------------------------------------------------

已指定以下設定

資料庫 ORACLE_HOME ................ /u01/app/oracle/product/10.2.0/db_1

資料庫主機名 ................ localhost.localdomain

監聽程式端口号 ................ 1521

資料庫 SID ................ orcl

通知的電子郵件位址 ............... 

通知的發件 (SMTP) 伺服器 ...............

是否繼續? [yes(Y)/no(N)]: y

2009-6-8 21:50:58 oracle.sysman.emcp.EMConfig perform

資訊: 正在将此操作記錄到 /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/emca/orcl/emca_2009-06-08_09-50-27-下午.log。

2009-6-8 21:50:59 oracle.sysman.emcp.DatabaseChecks performReposChecks

警告: 'shared_pool_size' 必須大于等于 80 MB。 

2009-6-8 21:51:13 oracle.sysman.emcp.util.DBControlUtil startOMS

資訊: 正在啟動 Database Control (此操作可能需要一段時間)...

2009-6-8 21:52:57 oracle.sysman.emcp.EMDBPostConfig performConfiguration

資訊: 已成功啟動 Database Control

已成功完成 Enterprise Manager 的配置

EMCA 結束于 2009-6-8 21:52:57

Oracle10G的EM采用了web方式,并且分成了2個産品,database control和grid control。Grid control需要下載下傳單獨的CD光牒安裝。在用DBCA建庫的時候,可以選擇是否啟用dbcontrol,啟用的話需要在資料庫中建立一個sysman的 schema,用于儲存EM的一些資料,這個就是EM的資料庫(repository)。使用指令行工具emca可以建立,修改,重建或者删除 dbcontrol的配置。

emca -repos create: 建立新的 Database Control 資料檔案庫

emca -repos drop: 删除目前的 Database Control 資料檔案庫

emca -repos recreate: 删除目前的 Database Control 資料檔案庫并重新建立一個

emca -config dbcontrol db:配置資料庫的 Database Control

emca -deconfig dbcontrol db:取消資料庫的 Database Control

注:(1)如果伺服器上存在多個資料庫,必須在啟動Database control之前設定ORACLE_SID環境變量

(2)最好使用靜态IP位址來配置伺服器

重新開機控制台服務後也沒有效果:

$ emctl status dbconsole

$ emctl stop dbconsole 

$ emctl start dbconsole 

可能時原先監聽未成功啟動過,或者由于我修改過監聽端口(1521改成1528)造成的。

重建em資料庫:

$ emctl stop dbconsole

$ emca -repos recreate

Database SID: orcl10

Listener port number: 1528

Password for SYS user: oracle10

Password for SYSMAN user: oracle10

Enterprise Manager configuration completed successfully

FINISHED EMCA at Apr 19, 2007 6:20:22 PM 

配置dbcontrol:

$ emca -config dbcontrol db

Database Control is already

configured for the database orcl10

You have chosen to configure

Database Control for managing

the database orcl10

This will remove the existing configuration

and the default settings and perform. a fresh

configuration

Password for DBSNMP user: oracle10 

Email address for notifications (optional):

Outgoing Mail (SMTP) server for

notifications (optional):

Enterprise Manager configuration

completed successfully

FINISHED EMCA at Apr 19, 2007 6:27:44 PM

Oracle10G的EM采用了web方式,并且分成了2個産品,database control和grid control。Grid control需要下載下傳單獨的CD光牒安裝。在用DBCA建庫的時候,可以選擇是否啟用dbcontrol,啟用的話需要在資料庫中建立一個sysman的schema,用于儲存EM的一些資料,這個就是EM的資料庫(repository)。使用指令行工具emca可以建立,修改,重建或者删除dbcontrol的配置。

emca -repos create 建立一個EM資料庫

emca -repos recreate 重建一個EM資料庫

emca -repos drop 删除一個EM資料庫

emca -config dbcontrol db

配置資料庫的 Database Control

emca -deconfig dbcontrol db

删除資料庫的 Database Control配置

emca -reconfig ports

重新配置db control和agent的端口

emctl start console

啟動EM console服務,使用前需要先

emctl stop console 停止EM console服務,

注:通過檢視$ORACLE_HOME/install/portlist.ini

檔案可以知道目前dbcontrol正在使用的端口,

預設dbcontrol http端口1158,agent端口3938。

如果要重新配置端口,可以使用如下指令:

emca -reconfig ports -dbcontrol_http_port 1159

emca -reconfig ports -agent_port 3939

使用指令行工具emctl可以啟動/停止console服務,察看服務狀态等。

    本文轉自vcdog 51CTO部落格,原文連結:http://blog.51cto.com/255361/837668,如需轉載請自行聯系原作者