oracle goldengate 實現目標記錄不存在的情況複製程式正常執行
REPERROR
包含如下action,
ABEND: roll back the transaction and stop processing.
DISCARD: log the error to the discard file and continue processing.
EXCEPTION: send the error for exceptions processing (see “Handling errors as exceptions”.
IGNORE: ignore the error and continue processing.
RETRYOP [MAXRETRIES
TRANSABORT [, MAXRETRIES
RESET: remove all previous REPERROR rules and restore the default of ABEND.
TRANSDISCARD: discard the entire replicated source transaction if any operation within that transaction, including the commit, causes a Replicat error that is listed in the
error specification. This option is useful when integrity constraint checking is disabled on the target.
TRANSEXCEPTION: perform. exceptions mapping for every record in the replicated source transaction, according to its exceptions-mapping statement, if any operation within
that transaction (including the commit) causes a Replicat error that is listed in the error specification.
oracle ogg 正常情況下 如果目標記錄不存在的情況複製程式會abended的
以下設定會忽略這種錯誤,並且寫到discard檔案,複製正常進行
GGSCI (yibin) 161> view param rora01
REPLICAT RORA01
SETENV ( NLS_LANG =AMERICAN_AMERICA.AL32UTF8)
USERID , PASSWORD target
REPERROR (1403, DISCARD)
--HANDLECOLLISIONS
ASSUMETARGETDEFS
DISCARDFILE ./dirrpt/RORA01.DSC, PURGE
MAP source.test, TARGET target.test;
discard中記錄,一個是update操作,一個是delete操作
Oracle GoldenGate Delivery for Oracle process started, group RORA01 discard file opened: 2014-11-04 23:09:04
Current time: 2014-11-04 23:10:37
Operation failed at seqno 9 rba 1625
Discarding record on action DISCARD on error 1403
Problem replicating SOURCE.TEST to TARGET.TEST
Record not found
Error (1403) occurred with compressed update record (target format)...
*
ID =
NAME = zhang
*
Current time: 2014-11-04 23:19:49
Operation failed at seqno 9 rba 1758
Discarding record on action DISCARD on error 1403
Problem replicating SOURCE.TEST to TARGET.TEST
Record not found
Error (1403) occurred with delete record (target format)...
*
ID = 12
*
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7199859/viewspace-1320730/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- nodejs呼叫cmd命令實現複製目錄NodeJS
- python怎麼實現發現所需目錄不存在時新建目錄Python
- Oracle 10g安裝程式無法執行的情況Oracle 10g
- 多種情況解析深複製
- php訪問目標網站時出現亂碼的情況PHP網站
- oracle goldengate 雙向複製配置OracleGo
- 使用goldengate的資料泵進行Oracle-Oracle的單向複製GoOracle
- 遞迴處理複製變數目錄按原路徑複製到新目錄的指令碼遞迴變數指令碼
- oracle goldengate 雙活複製避免迴圈複製引數OracleGo
- GoldenGate的複製原理Go
- 複製目錄下的全部檔案到另一個目錄
- LINUX 如何實現多執行緒進行cp複製Linux執行緒
- php複製目錄及檔案PHP
- python複製資料夾到一個目錄,或者按目錄層級建立複製Python
- MySQL並行複製-原始碼理解記錄MySql並行原始碼
- goldengate 刪除複製程式步驟Go
- oracle goldengate ddl 操作導致複製程式abended處理案例OracleGo
- EOFDELAYCSECS GOLDENGATE提升複製實時性Go
- 以實際情況切入,檢視MySQL複製問題的解決方案MySql
- Oracle存在修改,不存在插入記錄Oracle
- 搭建oracle 11.2.0.4環境下的goldengate複製OracleGo
- 多個Filter的執行具體情況Filter
- 記錄ORACLE語句的執行時間Oracle
- GoldenGate schema級複製 實施過程Go
- 少兒程式設計啟蒙課程7:設定目標 重複執行程式設計
- 關於目錄或文章不存在的報錯程式碼
- goldengate配置DDL複製Go
- 資料複製_GoldenGateGo
- AIX5.3上用rm命令的df命令不能正常現實磁碟空間的真實情況AI
- Linux 只複製目錄,不復制目錄下的資料檔案Linux
- GoldenGate單向複製配置(支援DDL複製)Go
- 通過goldengate從ORACLE向mysql的單向複製GoOracleMySql
- 第17 章、複製目標資料庫資料庫
- goldengate單向複製的配置Go
- java進階(34)--File類、目錄複製Java
- 實現Xshell斷開連線情況下Linux命令繼續執行Linux
- 在Oracle中實現資料庫的複製Oracle資料庫
- Java 執行緒池中的執行緒複用是如何實現的?Java執行緒