OGG拆分程式
1.檢視延時程式佇列資訊
GGSCI (gdsthxcxdb01) 3> info Rep2
REPLICAT Rep2 Last Started 2015-01-22 00:50 Status RUNNING
Checkpoint Lag 01:13:01 (updated 00:00:01 ago)
Log Read Checkpoint File ./dirdat/za001758
2015-01-23 10:58:06.053631 RBA 328742766
2.KILL 延時程式,引數檔案新增排除表
GGSCI (gdsthxcxdb01) 4> kill Rep2
Sending KILL request to MANAGER ...
Killed process (44761796) for REPLICAT Rep2
GGSCI (gdsthxcxdb01) 5> edit param Rep2
MAPEXCLUDE HR.HR_CWBB_XQYKJZZ;
MAPEXCLUDE HR.HR_CWBB_XQYKJZZ_LRB;
MAPEXCLUDE HR.HR_CWBB_XQYKJZZ_XJLLB;
3.正常啟動延時程式
4.新增延時大表新程式,先開啟handlecollisions 引數,待新程式延時追平後重啟程式刪除此引數
GGSCI (gdsthxcxdb01) 10> dblogin Userid ggs,PASSWORD ggs
GGSCI (gdsthxcxdb01) 11> add replicat Rep3,exttrail ./dirdat/za, checkpointtable ggs.checkpoint
GGSCI (gdsthxcxdb01) 12> edit param Rep3
replicat Rep3
SETENV (ORACLE_SID="orcl")
SETENV (NLS_LANG=AMERICAN_AMERICA.AL32UTF8)
Userid ggs,PASSWORD ggs
REPORT AT 01:59
REPORTROLLOVER AT 02:00
CACHEMGR, CACHESIZE 256MB
REPERROR DEFAULT,ABEND
DISCARDFILE ./dirrpt/Rep3.dsc,APPEND,MEGABYTES 100
DISCARDROLLOVER AT 06:00
GETTRUNCATES
NUMFILES 3000
EOFDELAYCSECS 30
ASSUMETARGETDEFS
ALLOWNOOPUPDATES
DYNAMICRESOLUTION
GETUPDATEBEFORES
NOCOMPRESSDELETES
handlecollisions
MAP HR.HR_CWBB_XQYKJZZ, TARGETHR.HR_CWBB_XQYKJZZ;
MAP HR.HR_CWBB_XQYKJZZ_LRB, TARGET HR.HR_CWBB_XQYKJZZ_LRB;
MAP HR.HR_CWBB_XQYKJZZ_XJLLB, TARGETHR.HR_CWBB_XQYKJZZ_XJLLB;
5.修改大表新程式佇列檔案號至原延時程式後,正常啟動程式
alter Rep3, EXTSEQNO 1758,extrba 328742766
GGSCI (gdsthxcxdb01) 19> start Rep3
GGSCI (gdsthxcxdb01) 3> info Rep2
REPLICAT Rep2 Last Started 2015-01-22 00:50 Status RUNNING
Checkpoint Lag 01:13:01 (updated 00:00:01 ago)
Log Read Checkpoint File ./dirdat/za001758
2015-01-23 10:58:06.053631 RBA 328742766
2.KILL 延時程式,引數檔案新增排除表
GGSCI (gdsthxcxdb01) 4> kill Rep2
Sending KILL request to MANAGER ...
Killed process (44761796) for REPLICAT Rep2
GGSCI (gdsthxcxdb01) 5> edit param Rep2
MAPEXCLUDE HR.HR_CWBB_XQYKJZZ;
MAPEXCLUDE HR.HR_CWBB_XQYKJZZ_LRB;
MAPEXCLUDE HR.HR_CWBB_XQYKJZZ_XJLLB;
3.正常啟動延時程式
4.新增延時大表新程式,先開啟handlecollisions 引數,待新程式延時追平後重啟程式刪除此引數
GGSCI (gdsthxcxdb01) 10> dblogin Userid ggs,PASSWORD ggs
GGSCI (gdsthxcxdb01) 11> add replicat Rep3,exttrail ./dirdat/za, checkpointtable ggs.checkpoint
GGSCI (gdsthxcxdb01) 12> edit param Rep3
replicat Rep3
SETENV (ORACLE_SID="orcl")
SETENV (NLS_LANG=AMERICAN_AMERICA.AL32UTF8)
Userid ggs,PASSWORD ggs
REPORT AT 01:59
REPORTROLLOVER AT 02:00
CACHEMGR, CACHESIZE 256MB
REPERROR DEFAULT,ABEND
DISCARDFILE ./dirrpt/Rep3.dsc,APPEND,MEGABYTES 100
DISCARDROLLOVER AT 06:00
GETTRUNCATES
NUMFILES 3000
EOFDELAYCSECS 30
ASSUMETARGETDEFS
ALLOWNOOPUPDATES
DYNAMICRESOLUTION
GETUPDATEBEFORES
NOCOMPRESSDELETES
handlecollisions
MAP HR.HR_CWBB_XQYKJZZ, TARGETHR.HR_CWBB_XQYKJZZ;
MAP HR.HR_CWBB_XQYKJZZ_LRB, TARGET HR.HR_CWBB_XQYKJZZ_LRB;
MAP HR.HR_CWBB_XQYKJZZ_XJLLB, TARGETHR.HR_CWBB_XQYKJZZ_XJLLB;
5.修改大表新程式佇列檔案號至原延時程式後,正常啟動程式
alter Rep3, EXTSEQNO 1758,extrba 328742766
GGSCI (gdsthxcxdb01) 19> start Rep3
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29863023/viewspace-1472463/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- OGG 複製程式拆分
- 前端程式碼拆分前端
- webpack之程式碼拆分Web
- OGG 程式清除、重建
- ogg的manager程式
- OGG的抽取程式合併
- ogg概敘、架構、程式架構
- ogg程式重新初始化
- ogg replicat 程式 abend 處理
- Python 自用程式碼(拆分txt檔案)Python
- ogg 併發複製程式自阻塞
- sqlserver 拆分SQLServer
- 資料庫優化-水平拆分 垂直拆分資料庫優化
- oracle 11.2.0.4 ogg 12.3.0.1.0備庫rep程式啟動報錯OGG-00446Oracle
- OGG複製程式掛起abended處理
- OGG複製程式出現 OGG-00868, 904-ORA-00904 "VISIBILITY"
- 拆分密碼密碼
- IP塊拆分
- 單詞拆分
- python拆分中英文混合字串 - 按中文拆分Python字串
- OGG抽取程式報錯ORA-06512
- 停止OGG e程式時遭遇長事務分析
- Oracle OGG 到 Kafka OGG-01431 OGG-01003 OGG-01151 OGG-01296 OGG-01668OracleKafka
- 在原ogg基礎上重新搭建ogg
- 【OGG】OGG的下載和安裝篇
- react程式碼拆分之react loadable原始碼淺析React原始碼
- MyCat分片:水平拆分例項解析和程式碼實現!
- OGG 使用原有抽取程式,新增投遞程式出現的問題
- flask 專案拆分Flask
- FI憑證拆分
- JAVA——拆分位數Java
- OGG問題處理(OGG-01031,OGG-01416)
- ogg 同步kafka OGG-15051 Java or JNI exception:KafkaJavaException
- OGG基礎
- Vue中拆分檢視層程式碼的5點建議Vue
- ogg OGG-01834 IPV6問題
- 【OGG】RAC環境下配置OGG單向同步 (四)
- GoldenGate投遞程式OGG-01416+OGG-01061錯誤處理一例Go