ORACLE GC 載入mysql外掛併發布問題總結

qqmengxue發表於2011-09-16

環境介紹:

oracle GC11G 64BIT

ORACLE LINUX 5.6 64BIT

MYSQL mysql Ver 14.14 Distrib 5.5.9, for Linux (x86_64) using readline 5.1

ERROR:CS 10.2

5
mysql
8
qqsmysql
8
Response
8
Response
19
2011-09-16 16:30:26
166
em_error=#28000Access denied for user 'root'@'qqdb.domain' (using password: NO) at /u01/app/10.2.1/db_1/agent11g/sysman/admin/scripts/emx/mysql/mysql_oem.pm line 45

[@more@]

今天需要將mysql新增到GC的監控平臺,在載入完mysql的plug併發布後發現在GC裡mysql的狀態是down的,透過檢視後臺日誌:

OMS:/u02/middleware/gc_inst/em/EMGC_OMS1/sysman/log/ emoms.log{ emoms.trc}

AGENT:$AGENT_HOME/sysman/emd/state/*.dlt

$AGENT_HOME/sysman/emd/targets.xml

發現在0021.dlt裡面有錯誤提示:

CS 10.2

5
mysql
8
qqsmysql
8
Response
8
Response
19
2011-09-16 16:30:26
166
em_error=#28000Access denied for user 'root'@'qqdb.domain' (using password: NO) at /u01/app/10.2.1/db_1/agent11g/sysman/admin/scripts/emx/mysql/mysql_oem.pm line 45



0


2

6
Status
4
Down
0
39
Failed to connect to MySQL: %mysqlerr%.
8
CONTAINS
1

0

透過檢查target.xml檔案:







懷疑是這裡的密碼有問題,於是改為:







重新啟動後發現問題解決,在GC裡已經可以對mysql進行監視!

附:

mysql的指令碼存放目錄:

$AGENT_HOME/sysman/admin/scripts/emx/mysql

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

相關文章