OGG-00952---oracle goldengate無法purge歷史表和mark表處理一例
今天觀察oracle goldengate的errlog發現一直會有如下的告警資訊:
2013-01-18 16:52:56 WARNING OGG-00952 Oracle GoldenGate Manager for Oracle, mgr.prm: Purging log history from OGG.GGS_DDL_HIST older than 2013-01-13 15:52:56.084114: Could not delete rows from OGG.GGS_DDL_HIST, no database specified.
2013-01-18 16:52:56 WARNING OGG-00952 Oracle GoldenGate Manager for Oracle, mgr.prm: Purging log history from OGG.GGS_DDL_HIST_ALT older than 2013-01-13 15:52:56.084261: Could not delete rows from OGG.GGS_DDL_HIST_ALT, no database specified.
2013-01-18 16:52:56 WARNING OGG-00952 Oracle GoldenGate Manager for Oracle, mgr.prm: Purging log history from OGG.GGS_MARKER older than 2013-01-13 15:52:56.084448: Could not delete rows from OGG.GGS_MARKER, no database specified.
2013-01-18 16:52:56 WARNING OGG-00952 Oracle GoldenGate Manager for Oracle, mgr.prm: Purging log history from OGG.GGS_DDL_HIST_ALT older than 2013-01-13 15:52:56.084261: Could not delete rows from OGG.GGS_DDL_HIST_ALT, no database specified.
2013-01-18 16:52:56 WARNING OGG-00952 Oracle GoldenGate Manager for Oracle, mgr.prm: Purging log history from OGG.GGS_MARKER older than 2013-01-13 15:52:56.084448: Could not delete rows from OGG.GGS_MARKER, no database specified.
大致意思是:goldengate在定時purge ddl產生的mark和history表的時候,找不到資料庫,無法進行操作,最終的後果就是這幾張表的資料會越來越大,如果不做處理的話最終會撐爆磁碟,導致goldengate掛起,後果很嚴重!!!
檢視了相關程式的引數發現,這個操作是由goldengate的manager程式處理的,具體引數如下:
GGSCI (testdb) 3> edit params mgr
PORT 7809
dynamicportlist 7810-7820
PURGEOLDEXTRACTS /home/oracle/ggs/dirdat/k1*, USECHECKPOINTS, MINKEEPFILES 15
AUTORESTART ER *, RETRIES 3, WAITMINUTES 5
PURGEDDLHISTORY MINKEEPDAYS 3, MAXKEEPDAYS 5, FREQUENCYMINUTES 30
PURGEMARKERHISTORY MINKEEPDAYS 3, MAXKEEPDAYS 5, FREQUENCYMINUTES 30
其中黑色斜體部分就是做相關處理的具體引數,查閱相關文件後發現,在做這個操作的時候需要goldengate的使用者程式登陸到資料庫進行操作,這就需要新增一個引數USERID來進行登陸,而PURGEOLDEXTRACTS這個引數在purge trail檔案的時候是不需要進行這一操作的,難怪這個引數生效了,而其他2個引數始終無法順利執行!!
PORT 7809
dynamicportlist 7810-7820
PURGEOLDEXTRACTS /home/oracle/ggs/dirdat/k1*, USECHECKPOINTS, MINKEEPFILES 15
AUTORESTART ER *, RETRIES 3, WAITMINUTES 5
PURGEDDLHISTORY MINKEEPDAYS 3, MAXKEEPDAYS 5, FREQUENCYMINUTES 30
PURGEMARKERHISTORY MINKEEPDAYS 3, MAXKEEPDAYS 5, FREQUENCYMINUTES 30
其中黑色斜體部分就是做相關處理的具體引數,查閱相關文件後發現,在做這個操作的時候需要goldengate的使用者程式登陸到資料庫進行操作,這就需要新增一個引數USERID來進行登陸,而PURGEOLDEXTRACTS這個引數在purge trail檔案的時候是不需要進行這一操作的,難怪這個引數生效了,而其他2個引數始終無法順利執行!!
最後在manager程式中新增如下引數:
USERID ogg,PASSWORD AACAAAAAAAAAAADAQBLWDCIIOIRFMEPB,ENCRYPTKEY default
PS:由於我們對goldengate使用者登入進行了加密操作,這裡的USERID引數和抽取程式extract裡設定的是一樣的!
然後重啟manager程式,觀察errlog發現:
2013-01-18 17:14:17 INFO OGG-00963 Oracle GoldenGate Manager for Oracle, mgr.prm: Command received from GGSCI on host 127.0.0.1 (STOP).
2013-01-18 17:14:17 WARNING OGG-00938 Oracle GoldenGate Manager for Oracle, mgr.prm: Manager is stopping at user request.
2013-01-18 17:14:19 INFO OGG-00987 Oracle GoldenGate Command Interpreter for Oracle: GGSCI command (oracle): start mgr.
2013-01-18 17:14:26 INFO OGG-00983 Oracle GoldenGate Manager for Oracle, mgr.prm: Manager started (port 7809).
2013-01-18 17:15:08 INFO OGG-00953 Oracle GoldenGate Manager for Oracle, mgr.prm: Purging log history from OGG.GGS_DDL_HIST older than 2013-01-13 16:12:52.695485: 122158 rows deleted from OGG.GGS_DDL_HIST.
2013-01-18 17:15:51 INFO OGG-00953 Oracle GoldenGate Manager for Oracle, mgr.prm: Purging log history from OGG.GGS_DDL_HIST_ALT older than 2013-01-13 16:15:08.764283: 114587 rows deleted from OGG.GGS_DDL_HIST_ALT.
2013-01-18 17:15:51 INFO OGG-00953 Oracle GoldenGate Manager for Oracle, mgr.prm: Purging log history from OGG.GGS_MARKER older than 2013-01-13 16:15:51.966245: 125481 rows deleted from OGG.GGS_MARKER.
2013-01-18 17:14:17 WARNING OGG-00938 Oracle GoldenGate Manager for Oracle, mgr.prm: Manager is stopping at user request.
2013-01-18 17:14:19 INFO OGG-00987 Oracle GoldenGate Command Interpreter for Oracle: GGSCI command (oracle): start mgr.
2013-01-18 17:14:26 INFO OGG-00983 Oracle GoldenGate Manager for Oracle, mgr.prm: Manager started (port 7809).
2013-01-18 17:15:08 INFO OGG-00953 Oracle GoldenGate Manager for Oracle, mgr.prm: Purging log history from OGG.GGS_DDL_HIST older than 2013-01-13 16:12:52.695485: 122158 rows deleted from OGG.GGS_DDL_HIST.
2013-01-18 17:15:51 INFO OGG-00953 Oracle GoldenGate Manager for Oracle, mgr.prm: Purging log history from OGG.GGS_DDL_HIST_ALT older than 2013-01-13 16:15:08.764283: 114587 rows deleted from OGG.GGS_DDL_HIST_ALT.
2013-01-18 17:15:51 INFO OGG-00953 Oracle GoldenGate Manager for Oracle, mgr.prm: Purging log history from OGG.GGS_MARKER older than 2013-01-13 16:15:51.966245: 125481 rows deleted from OGG.GGS_MARKER.
記錄一下~~
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25618347/viewspace-752894/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- SYSAUX 表空間歷史統計資料過大purgeUX
- goldengate故障處理一例Go
- goldengate故障處理一例(續)Go
- GoldenGate無法同步壓縮表問題Go
- 表空間無法擴充套件問題處理套件
- MySQL儲存過程-->通過遊標遍歷和異常處理遷移資料到歷史表MySql儲存過程
- INTEL CPU 歷史表 收藏Intel
- oracle 表碎片太多的處理辦法Oracle
- goldengate複製過程字符集處理一例Go
- XML報表遇中文時,無法直接用EXCEL開啟的處理XMLExcel
- 表死鎖查詢及處理辦法
- 巧用外部表備份歷史資料
- 海量資料處理_表分割槽(分割槽自動維護與歷史分割槽歸檔)
- SQL歷理 ICbA的使用者表和公式表的構思SQL公式
- Oracle Drop表(purge)恢復(ODU)Oracle
- oracle sysaux表空間滿了處理辦法OracleUX
- 歷史庫存監控表的設計
- 兩個歷史表的資料合併
- OpenCV4影像處理--影像查詢表和顏色表OpenCV
- 分庫分表之歷史表如何選擇最佳分片路由規則路由
- 查詢表或索引增長的歷史資訊索引
- 【原創】sqlserver2005 資料庫表損壞處理一例:SQLServer資料庫
- MySQL的表碎片處理MySql
- PHP表單處理指南PHP
- 資料庫異常關閉後無法啟動問題處理一例資料庫
- oracle goldengate 目標端表空間滿導致程式abended處理過程OracleGo
- MySQL分表後原分割槽表處理方案MySql
- 如何高效率刪除大表歷史資料
- GoldenGate COLMAP字串處理Go字串
- php表單處理-143PHP
- 分割槽表truncate慢處理
- React 如何來處理表單React
- undo表空間故障處理
- SELECT大表的處理
- openGauss 處理錯誤表
- 無法刪除pod的處理
- 處理表重複記錄(查詢和刪除)
- Goldengate單表新增同步Go