一個Golden Gate實時資料分發的例子
本文記錄在我工作中的一個Golden Gate實時資料分發的例子,資料從一個RKS資料庫分發到兩個兩個ESG資料庫。
Extract Pump Replicat
E130RKS2 P101ESG2 R130RKS2
E230RKS2 P203ESG1 R130RKS2
Source端(O30RKS2):
GGSCI (gdcps1958) 4> info all
Program Status Group Lag Time Since Chkpt
MANAGER RUNNING
EXTRACT RUNNING E130RKS2 00:00:00 00:00:04
EXTRACT RUNNING E230RKS2 00:00:00 00:00:07
EXTRACT RUNNING P101ESG2 00:00:00 00:00:08
EXTRACT RUNNING P203ESG1 00:00:00 00:00:02
Manager (mgr.prm):
--port that manager runs on
port 7809
--Forces manager to restart extract, datapump and replicat if they shut down
AUTORESTART ER *, RETRIES 12, WAITMINUTES 5, RESETMINUTES 60
--Manages trail files to conserve space
PURGEOLDEXTRACTS ./dirdat/O30RKS2/*, USECHECKPOINTS, MINKEEPFILES 10, FREQUENCYMINUTES 15
--Specifies to log the lag time as a warning in the event log
LAGCRITICALMINUTES 5
--Specifies how often to report lag info to the event log
LAGREPORTMINUTES 60
LAGINFOMINUTES 0
Extract1 (E130RKS2.prm):
EXTRACT E130RKS2
COMMENT ************ CHANGE USER NAME AND PASSWORD IN NEXT LINE
userid gguser, PASSWORD AACAAAAAAAAAAAHAJIBENEGDMADEQGTH, ENCRYPTKEY DEFAULT
SETENV TNS_ADMIN='/usr/local/oracle/network'
SETENV TWO_TASK='O30RKS2'
EXTTRAIL ./dirdat/O30RKS2/e1
--prevent loop back
TRANLOGOPTIONS EXCLUDEUSER gguser
--THREADOPTIONS MAXCOMMITPROPAGATIONDELAY 2700 IOLATENCY 2700
INCLUDE ./dirprm/extract_include_msim_buat_core.prm
Pumb1 (P101ESG2.prm):
EXTRACT P101ESG2
PASSTHRU
REPORTCOUNT EVERY 200 RECORDS, rate
RMTHOST desg08 MGRPORT 7909 --遠端replicat的manager地址
RMTTRAIL ./dirdat/O30RKS2/e1
TABLE MSIM_BUAT_CORE.*;
Extract2 (E230RKS2.prm):
EXTRACT E230RKS2
COMMENT ************ CHANGE USER NAME AND PASSWORD IN NEXT LINE
userid gguser, PASSWORD AACAAAAAAAAAAAHAJIBENEGDMADEQGTH, ENCRYPTKEY DEFAULT
SETENV TNS_ADMIN='/usr/local/oracle/network'
SETENV TWO_TASK='O30RKS2'
EXTTRAIL ./dirdat/O30RKS2/e2
--prevent loop back
TRANLOGOPTIONS EXCLUDEUSER gguser
--THREADOPTIONS MAXCOMMITPROPAGATIONDELAY 2700 IOLATENCY 2700
INCLUDE ./dirprm/extract_include_deam_buat_core.prm
Pumb2 (P203ESG1.prm):
EXTRACT P203ESG1
PASSTHRU
REPORTCOUNT EVERY 200 RECORDS, rate
RMTHOST desg06 MGRPORT 7809
RMTTRAIL ./dirdat/O30RKS2/e2
TABLE DEAM_BUAT_CORE.*;
Target端1(O01ESG2):
GGSCI (gdcbl3215) 1> info all
Program Status Group Lag Time Since Chkpt
MANAGER RUNNING
REPLICAT RUNNING R130RKS2 00:00:00 00:00:09
Manager (mgr.prm):
--port that manager runs on
port 7909
--Forces manager to restart extract, datapump and replicat if they shut down
AUTORESTART ER *, RETRIES 12, WAITMINUTES 5 , RESETMINUTES 60
--Manages trail files to conserve space
PURGEOLDEXTRACTS ./dirdat/O30RKS2/*. USECHECKPOINTS, MINKEEPFILES 10,FREQUENCYMINUTES 15
--Specifies to log the lag time as a warning in the event log
LAGCRITICALMINUTES 5
--Specifies how often to report lag into the event log
LAGREPORTMINUTES 60
LAGINFOMINUTES 0
Replicat1 (R130RKS2.prm):
replicat R130RKS2
SETENV TNS_ADMIN='/usr/local/oracle/network'
SETENV ORACLE_SID='O01ESG2B'
userid gguser, PASSWORD AACAAAAAAAAAAAGAWHIJOHDJJFSGVCIH, ENCRYPTKEY DEFAULT
include ./dirprm/auth_include.prm
SOURCEDEFS ./dirprm/rks_definitions.prm
DISCARDFILE ./dirout/RKSTST.dsc, purge
--HANDLECOLLISIONS
INCLUDE ./dirprm/replicat_include_rks.prm
Target端2(O01ESG2):
GGSCI (gdcul3247) 1> info all
Program Status Group Lag Time Since Chkpt
MANAGER RUNNING
REPLICAT RUNNING R130RKS2 00:00:00 00:00:07
Manager (mgr.prm):
--port that manager runs on
port 7809
--Forces manager to restart extract, datapump and replicat if they shut down
--AUTORESTART ER *, RETRIES 12, WAITMINUTES 5, RESETMINUTES 60
--Manages trail files to conserve space
PURGEOLDEXTRACTS ./dirdat/O03ESG1/*, USECHECKPOINTS, MINKEEPFILES 10, FREQUENCYMINUTES 15
PURGEOLDEXTRACTS ./dirdat/O30RKS2/*, USECHECKPOINTS, MINKEEPFILES 10, FREQUENCYMINUTES 15
--Specifies to log the lag time as a warning in the event log
LAGCRITICALMINUTES 5
--Specifies how often to report lag info to the event log
LAGREPORTMINUTES 60
LAGINFOMINUTES 0
Replicat2 (R130RKS2.prm):
replicat R130RKS2
SETENV ORACLE_SID='O03ESG1A'
userid gguser, PASSWORD AACAAAAAAAAAAAGAWHIJOHDJJFSGVCIH, ENCRYPTKEY DEFAULT
SOURCEDEFS ./dirprm/rks_definitions_deam_buat_core.prm
DISCARDFILE ./dirout/RKSTST.dsc, purge
--HANDLECOLLISIONS
INCLUDE ./dirprm/replicat_include_deam_buat_core.prm
Extract Pump Replicat
E130RKS2 P101ESG2 R130RKS2
E230RKS2 P203ESG1 R130RKS2
Source端(O30RKS2):
GGSCI (gdcps1958) 4> info all
Program Status Group Lag Time Since Chkpt
MANAGER RUNNING
EXTRACT RUNNING E130RKS2 00:00:00 00:00:04
EXTRACT RUNNING E230RKS2 00:00:00 00:00:07
EXTRACT RUNNING P101ESG2 00:00:00 00:00:08
EXTRACT RUNNING P203ESG1 00:00:00 00:00:02
Manager (mgr.prm):
--port that manager runs on
port 7809
--Forces manager to restart extract, datapump and replicat if they shut down
AUTORESTART ER *, RETRIES 12, WAITMINUTES 5, RESETMINUTES 60
--Manages trail files to conserve space
PURGEOLDEXTRACTS ./dirdat/O30RKS2/*, USECHECKPOINTS, MINKEEPFILES 10, FREQUENCYMINUTES 15
--Specifies to log the lag time as a warning in the event log
LAGCRITICALMINUTES 5
--Specifies how often to report lag info to the event log
LAGREPORTMINUTES 60
LAGINFOMINUTES 0
Extract1 (E130RKS2.prm):
EXTRACT E130RKS2
COMMENT ************ CHANGE USER NAME AND PASSWORD IN NEXT LINE
userid gguser, PASSWORD AACAAAAAAAAAAAHAJIBENEGDMADEQGTH, ENCRYPTKEY DEFAULT
SETENV TNS_ADMIN='/usr/local/oracle/network'
SETENV TWO_TASK='O30RKS2'
EXTTRAIL ./dirdat/O30RKS2/e1
--prevent loop back
TRANLOGOPTIONS EXCLUDEUSER gguser
--THREADOPTIONS MAXCOMMITPROPAGATIONDELAY 2700 IOLATENCY 2700
INCLUDE ./dirprm/extract_include_msim_buat_core.prm
Pumb1 (P101ESG2.prm):
EXTRACT P101ESG2
PASSTHRU
REPORTCOUNT EVERY 200 RECORDS, rate
RMTHOST desg08 MGRPORT 7909 --遠端replicat的manager地址
RMTTRAIL ./dirdat/O30RKS2/e1
TABLE MSIM_BUAT_CORE.*;
Extract2 (E230RKS2.prm):
EXTRACT E230RKS2
COMMENT ************ CHANGE USER NAME AND PASSWORD IN NEXT LINE
userid gguser, PASSWORD AACAAAAAAAAAAAHAJIBENEGDMADEQGTH, ENCRYPTKEY DEFAULT
SETENV TNS_ADMIN='/usr/local/oracle/network'
SETENV TWO_TASK='O30RKS2'
EXTTRAIL ./dirdat/O30RKS2/e2
--prevent loop back
TRANLOGOPTIONS EXCLUDEUSER gguser
--THREADOPTIONS MAXCOMMITPROPAGATIONDELAY 2700 IOLATENCY 2700
INCLUDE ./dirprm/extract_include_deam_buat_core.prm
Pumb2 (P203ESG1.prm):
EXTRACT P203ESG1
PASSTHRU
REPORTCOUNT EVERY 200 RECORDS, rate
RMTHOST desg06 MGRPORT 7809
RMTTRAIL ./dirdat/O30RKS2/e2
TABLE DEAM_BUAT_CORE.*;
Target端1(O01ESG2):
GGSCI (gdcbl3215) 1> info all
Program Status Group Lag Time Since Chkpt
MANAGER RUNNING
REPLICAT RUNNING R130RKS2 00:00:00 00:00:09
Manager (mgr.prm):
--port that manager runs on
port 7909
--Forces manager to restart extract, datapump and replicat if they shut down
AUTORESTART ER *, RETRIES 12, WAITMINUTES 5 , RESETMINUTES 60
--Manages trail files to conserve space
PURGEOLDEXTRACTS ./dirdat/O30RKS2/*. USECHECKPOINTS, MINKEEPFILES 10,FREQUENCYMINUTES 15
--Specifies to log the lag time as a warning in the event log
LAGCRITICALMINUTES 5
--Specifies how often to report lag into the event log
LAGREPORTMINUTES 60
LAGINFOMINUTES 0
Replicat1 (R130RKS2.prm):
replicat R130RKS2
SETENV TNS_ADMIN='/usr/local/oracle/network'
SETENV ORACLE_SID='O01ESG2B'
userid gguser, PASSWORD AACAAAAAAAAAAAGAWHIJOHDJJFSGVCIH, ENCRYPTKEY DEFAULT
include ./dirprm/auth_include.prm
SOURCEDEFS ./dirprm/rks_definitions.prm
DISCARDFILE ./dirout/RKSTST.dsc, purge
--HANDLECOLLISIONS
INCLUDE ./dirprm/replicat_include_rks.prm
Target端2(O01ESG2):
GGSCI (gdcul3247) 1> info all
Program Status Group Lag Time Since Chkpt
MANAGER RUNNING
REPLICAT RUNNING R130RKS2 00:00:00 00:00:07
Manager (mgr.prm):
--port that manager runs on
port 7809
--Forces manager to restart extract, datapump and replicat if they shut down
--AUTORESTART ER *, RETRIES 12, WAITMINUTES 5, RESETMINUTES 60
--Manages trail files to conserve space
PURGEOLDEXTRACTS ./dirdat/O03ESG1/*, USECHECKPOINTS, MINKEEPFILES 10, FREQUENCYMINUTES 15
PURGEOLDEXTRACTS ./dirdat/O30RKS2/*, USECHECKPOINTS, MINKEEPFILES 10, FREQUENCYMINUTES 15
--Specifies to log the lag time as a warning in the event log
LAGCRITICALMINUTES 5
--Specifies how often to report lag info to the event log
LAGREPORTMINUTES 60
LAGINFOMINUTES 0
Replicat2 (R130RKS2.prm):
replicat R130RKS2
SETENV ORACLE_SID='O03ESG1A'
userid gguser, PASSWORD AACAAAAAAAAAAAGAWHIJOHDJJFSGVCIH, ENCRYPTKEY DEFAULT
SOURCEDEFS ./dirprm/rks_definitions_deam_buat_core.prm
DISCARDFILE ./dirout/RKSTST.dsc, purge
--HANDLECOLLISIONS
INCLUDE ./dirprm/replicat_include_deam_buat_core.prm
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26277071/viewspace-708210/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 一個奇怪的Golden Gate的問題Go
- 初探Oracle Golden Gate(一)OracleGo
- Golden Gate 初探Go
- Golden Gate的一次教訓Go
- Golden Gate的definition檔案Go
- ORACLE golden gate 機制OracleGo
- zt_oracle golden gateOracleGo
- golden gate 引數 PURGEOLDEXTRACTSGo
- 初次參與Golden -Gate POC,希望有機會做Golden -Gate for ERPGo
- Oracle Golden Gate 系列小結OracleGo
- Oracle golden gate程式說明OracleGo
- 配置Golden Gate 密碼加密Go密碼加密
- oracle golden gate 安裝配置OracleGo
- Oracle Golden Gate 安裝指南OracleGo
- Oracle Golden Gate 系列 小結OracleGo
- golden gate 引數說明Go
- IBM實時資料複製和同步解決方案 and IBM CDC ORACLE GOLDEN GATE 比較IBMOracleGo
- golden gate同步的表結構修改檢查Go
- Oracle Golden Gate體系架構詳解OracleGo架構
- SQL Server一個表新增資料,引發另一個表更新資料 的一個簡單觸發器例子SQLServer觸發器
- 兩個例子(來自Storm實戰 構建大資料實時計算)ORM大資料
- 一個利用遊標返回資料集的例子
- 一個類資料型別的STL例子 (轉)資料型別
- Oracle Golden Gate 系列十二 -- GG 資料初始化裝載二 基於SCN 的初始化 說明 與 示例OracleGo
- 資料庫慢方法論二 ——一個例子資料庫
- BW 資料匯入的一個漸進發展過程(我們的例子)
- 《Oracle Golden Gate 概念和原理》-新手入門->深入解析-圖文-可下載OracleGo
- Oracle Golden Gate 有關Data Pump 重置 trail 序列號 測試 說明OracleGoAI
- 資料融合重磅功能丨一對多實時分發、批次讀取模式模式
- imp匯入300G資料的一個例子
- Oracle進行模擬測試資料的一個例子Oracle
- ORACLE表資料觸發器,僅保留一天的實時資料Oracle觸發器
- 用go開發了一個實時檢視mysql資料字典的小工具GoMySql
- 使用 ViroReact 開發增強實現應用的一個具體例子React
- Angular 原理圖 Schematics 學習 - 動手開發一個實際的例子Angular
- 一個jquery的小例子jQuery
- Laravel-admin 實現一個分組求和的資料展現Laravel
- 一段讀取資料表的例子