exceptions
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
exceptions [2016/05/31 11:30] – z0hpvk | exceptions [2025/03/08 22:24] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== Exception Handling Setup ===== | ===== Exception Handling Setup ===== | ||
+ | An Exception table will hold the details of all Conflicts that have occured within GoldenGate.\\ | ||
+ | This is neccessary because Conflict Detection and Resolution (CDR) will be in place. \\ | ||
+ | ==== Create Exception Table ==== | ||
+ | As the GGATE user create the EXCEPTIONS table ...\\ | ||
< | < | ||
EXCP_DATE | EXCP_DATE | ||
Line 19: | Line 23: | ||
CNT_CDR_RESOLUTIONS | CNT_CDR_RESOLUTIONS | ||
CNT_CDR_FAILED | CNT_CDR_FAILED | ||
+ | |||
+ | ==== Macro ==== | ||
+ | Now create a macro that will convert GoldenGate environment variables into values for inserting.\\ | ||
+ | Save this macro as a file called exceptions.inc in $GGHOME/ | ||
+ | < | ||
+ | BEGIN | ||
+ | excp_date = @DATENOW(), | ||
+ | rep_name = @GETENV (' | ||
+ | table_name = @GETENV (' | ||
+ | errno = @GETENV (' | ||
+ | errmsg = @GETENV (' | ||
+ | optype = @GETENV (' | ||
+ | committimestamp = @GETENV (' | ||
+ | reccsn = @GETENV (' | ||
+ | recseqno = @GETENV (' | ||
+ | logrba = @GETENV (' | ||
+ | logposition = @GETENV (' | ||
+ | grouptype = @GETENV (' | ||
+ | filename = @GETENV (' | ||
+ | srcrowid = @GETENV (' | ||
+ | replag = @GETENV (' | ||
+ | cnt_cdr_conflicts = @GETENV (' | ||
+ | cnt_cdr_resolutions = @GETENV (' | ||
+ | cnt_cdr_failed = @GETENV (' | ||
+ | END;</ | ||
+ | |||
+ | ==== Replicat Parameter File ==== | ||
+ | Within all 4 replicat parameter files add an " | ||
+ | Also after every table involved in CDR, place the " | ||
+ | < | ||
+ | .... | ||
+ | MAP MAILONLINE.USER_TRANSFER_ITEM, | ||
+ | EXCEPTIONSONLY, |
exceptions.1464694222.txt.gz · Last modified: 2025/03/08 22:23 (external edit)