OGG-01004 ORA-01403

问题:
2020-05-14 15:40:22  INFO    OGG-06510  Using the following key columns for target table SHOP88.TB_AL099: LOC_NO, SITE_NO, GOOD_ID.


2020-05-14 15:40:22  WARNING OGG-01004  Aborted grouped transaction on 'SHOP88.TB_AL099', Database error 1403 (OCI Error ORA-01403: no data found, SQL ."TB_AL099" x SET x."LOC_QTY" = :a10,x."OUTGO_CMD_QTY" = :a11,x."MDF_ID" = :a12,x."MDF_DATE" = :a13 WHERE x."LOC_NO" = :b0 AND x."SITE_NO" = :b1 AND x."GOOD_ID" = :b2>
).

2020-05-14 15:40:22  WARNING OGG-01003  Repositioning to rba 41788914 in seqno 0.

2020-05-14 15:40:22  WARNING OGG-01154  SQL error 1403 mapping SHOP88.TB_AL099 to SHOP88.TB_AL099 OCI Error ORA-01403: no data found, SQL  SET x."LOC_QTY" = :a10,x."OUTGO_CMD_QTY" = :a11,x."MDF_ID" = :a12,x."MDF_DATE" = :a13 WHERE x."LOC_NO" = :b0 AND x."SITE_NO" = :b1 AND x."GOOD_ID" = :b2>.


原因:
add trandata user.tab

如果不执行add trandata,insert同步没有问题(ORACLE数据库),但是在同步update或delete操作时,就会因为丢失主键报同步错误。不开启表级的最小附加日志,update的redo信息不记录没有进行更新的字段信息,如主键不更新的话主键不记录在redo中,所以会导致同步失败。

你可能感兴趣的:(ogg)