OracleGoldenGate學(xué)習(xí)之--GoldenGate的監(jiān)控1、使用GGSCI命令監(jiān)控(1)進(jìn)入GoldenGate安裝目錄,運(yùn)行GGSCI,然后使用infoall查看整體的運(yùn)行狀況GGSCI(aix212)1inf
(1)進(jìn)入GoldenGate安裝目錄,運(yùn)行GGSCI,,然后使用info all查看整體的運(yùn)行狀況
GGSCI (aix212) 1> info all Program Status Group Lag at Chkpt Time Since Chkpt MANAGER RUNNING EXTRACT RUNNING EORA_1 00:00:00 00:00:03 EXTRACT RUNNING PORA_1 00:00:00 00:00:00 GGSCI (aix211) 1> info all Program Status Group Lag at Chkpt Time Since Chkpt MANAGER RUNNING REPLICAT RUNNING RORA_1 00:00:00 00:00:09Group表示進(jìn)程的名稱(MGR進(jìn)程不顯示名字);
Lag表示進(jìn)程的延時(shí);Status表示進(jìn)程的狀態(tài),有4種狀態(tài)。
STARTING 表示正在啟動(dòng)過程中。
RUNNING 表示進(jìn)程正常運(yùn)行。
STOPPED 表示進(jìn)程被正常關(guān)閉。
ABENDED 表示進(jìn)程非正常關(guān)閉,需要進(jìn)一步調(diào)查原因。
正常情況下,所有進(jìn)程的狀態(tài)應(yīng)該為RUNNING,且Lag應(yīng)該在一個(gè)合理的范圍內(nèi)。
(2)使用view params <進(jìn)程名> 可以查看進(jìn)程的參數(shù)設(shè)置,該命令支持通配符*
源端: GGSCI (aix212) 4> view param mgr dynamicportlist 7800-8000 autorestart extract *,waitminutes 2,resetminutes 5 GGSCI (aix212) 7> view param eini_1 EXTRACT EINI_1 SETENV (NLS_LANG=AMERICAN_AMERICA.ZHS16GBK) USERID ogg,PASSWORD ogg RMTHOST 192.168.8.211,MGRPORT 7809 RMTTASK REPLICAT, GROUP RINI_1 TABLE scott.EMP_OGG; GGSCI (aix212) 5> view param eora_1 EXTRACT EORA_1 SETENV (NLS_LANG=AMERICAN_AMERICA.ZHS16GBK) USERID ogg,PASSWORD ogg EXTTRAIL ./dirdat/aa TABLE scott.emp_ogg; GGSCI (aix212) 6> view param pora_1 EXTRACT PORA_1 SETENV (NLS_LANG=AMERICAN_AMERICA.ZHS16GBK) PASSTHRU RMTHOST 192.168.8.211,MGRPORT 7809 RMTTRAIL ./dirdat/pa TABLE scott.emp_ogg; 目標(biāo)端: GGSCI (aix211) 4> view param mgr port 7809 dynamicportlist 7800-8000 autorestart extract *,waitminutes 2,resetminutes 5 GGSCI (aix211) 3> view param rini_1 REPLICAT RINI_1 SETENV (NLS_LANG=AMERICAN_AMERICA.ZHS16GBK) ASSUMETARGETDEFS USERID ogg,PASSWORD ogg DISCARDFILE ./dirrpt/RINIaa.dsc,PURGE MAP scott.emp_ogg, TARGET scott.emp_ogg; GGSCI (aix211) 2> view param rora_1 REPLICAT RORA_1 SETENV (NLS_LANG=AMERICAN_AMERICA.ZHS16GBK) USERID ogg,PASSWORD ogg HANDLECOLLISIONS ASSUMETARGETDEFS DISCARDFILE ./dirrpt/RORA_aa.DSC,PURGE MAP scott.oem_ogg, TARGET scott.emp_ogg;(3)使用info <進(jìn)程名稱> 命令可以查看進(jìn)程信息,可以查看到的信息包括進(jìn)程狀態(tài)、checkpoint信息、延時(shí)等
GGSCI (aix212) 8> info eora_1 EXTRACT EORA_1 Last Started 2014-09-25 16:09 Status RUNNING Checkpoint Lag 00:00:00 (updated 00:00:04 ago) Log Read Checkpoint Oracle Redo Logs 2014-09-25 17:00:16 Seqno 5, RBA 21645824 SCN 0.658565 (658565) GGSCI (aix212) 9> info pora_1 EXTRACT PORA_1 Last Started 2014-09-25 16:09 Status RUNNING Checkpoint Lag 00:00:00 (updated 00:00:05 ago) Log Read Checkpoint File ./dirdat/pa000000 First Record RBA 0 GGSCI (aix211) 5> info rora_1 REPLICAT RORA_1 Last Started 2014-09-25 16:25 Status RUNNING Checkpoint Lag 00:00:00 (updated 00:00:04 ago) Log Read Checkpoint File ./dirdat/pa000000 First Record RBA 0聲明:本網(wǎng)頁內(nèi)容旨在傳播知識(shí),若有侵權(quán)等問題請及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com