My Oracle Support Banner

Replicat Doesn't Handle CDR Collision And Abends (Doc ID 1503789.1)

Last updated on JULY 20, 2017

Applies to:

Oracle GoldenGate - Version 11.2.1.0.3 and later
Information in this document applies to any platform.

Symptoms

Replcat abends with below error, however it should not. Instead, it has to proceed for exception and continue.

2012-09-24 20:37:06 WARNING OGG-01431 Aborted grouped transaction on 'TEST2.DF_ORDER_EXP', Mapping error.

2012-09-24 20:37:06 WARNING OGG-01003 Repositioning to rba 4616 in seqno 37.

2012-09-24 20:37:06 WARNING OGG-01151 Error mapping from TEST1.DF_ORDER to TEST2.DF_ORDER.

In parameter file you have mapping such as

REPERROR (DEFAULT, EXCEPTION)
REPERROR (DEFAULT2, ABEND)
REPERROR (-1,ABEND)
MAP TEST1.DF_ORDER , TARGET TEST2.DF_ORDER , COLMAP(USEDEFAULTS) , COMPARECOLS(ON UPDATE ALL),
RESOLVECONFLICT (UPDATEROWEXISTS, (DEFAULT, USEMAX(LAST_UPDATE_DATE))),
RESOLVECONFLICT (DELETEROWEXISTS, (DEFAULT, OVERWRITE)),
RESOLVECONFLICT (UPDATEROWMISSING, (DEFAULT, DISCARD)),
 RESOLVECONFLICT (DELETEROWMISSING, (DEFAULT, DISCARD)),
RESOLVECONFLICT (INSERTROWEXISTS,  (DEFAULT, USEMIN(LAST_UPDATE_DATE)));

MAP TEST1.DF_ORDER, TARGET TEST2.DF_ORDER_EXP,
INSERTALLRECORDS,
EXCEPTIONSONLY,
SQLEXEC(ID DF_ORDER_check , QUERY "select * from TEST1.DF_ORDER where location_id = :p1 and activity_type = :p2 and order_id = :p3", PARAMS (p1=location_id,p2=activity_type,p3=order_id)),
COLMAP (
CAL_ORDER_DATE = @GETVAL(DF_ORDER_check.ORDER_DATE),
CAL_CANCEL_USER_ID = @GETVAL(DF_ORDER_check.CANCEL_USER_ID),
CAL_CANCEL_DATE = @GETVAL(DF_ORDER_check.CANCEL_DATE),
CAL_CANCEL_REASON_CODE = @GETVAL(DF_ORDER_check.CANCEL_REASON_CODE),
CAL_CANCEL_TRANS_ID = @GETVAL(DF_ORDER_check.CANCEL_TRANS_ID),
CAL_PO_NUMBER = @GETVAL(DF_ORDER_check.PO_NUMBER),
CAL_SHIP_VIA = @GETVAL(DF_ORDER_check.SHIP_VIA),
CAL_MARKET_ID = @GETVAL(DF_ORDER_check.MARKET_ID),
CAL_TAX_TYPE = @GETVAL(DF_ORDER_check.TAX_TYPE),
CAL_TRANS_ID = @GETVAL(DF_ORDER_check.TRANS_ID),
EXEC_TIMESTAMP = @GETENV ("GGHEADER", "COMMITTIMESTAMP"),
LOGPOSITION = @GETENV ("GGHEADER", "LOGPOSITION"),
LOGRBA = @GETENV ("GGHEADER", "LOGRBA"),
OPERATION_TYPE = @GETENV ("LASTERR", "OPTYPE"),
ERROR_NO = @GETENV ("LASTERR", "DBERRNUM"),
RECORD_IMAGE = @GETENV ("GGHEADER", "BEFOREAFTERINDICATOR"));

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.