(1).複製進程 Abended,經過
view report語句查看可發現相似以下的報錯:
2017-10-23 15:01:43 ERROR
OGG-01296
Error mapping from CMS_ADM.T3010 to CMS_ADM.T3010.
(2).查看丟棄文件(Discard File)的內容相似以下:
Oracle GoldenGate Delivery for Oracle process started, group RAOC discard file opened: 2017-10-23 15:28:08.467831
Key column PK_ID (0) is missing from delete on table CMS_ADM.T3010
Missing 1 key columns in delete for table CMS_ADM.T3010.
Current time: 2017-10-23 15:28:18
Discarded record from action ABEND on error 0
Aborting transaction on ./dirdat/ao beginning at seqno 17674 rba 29602113
error at seqno 17674 rba 29602113
Problem replicating CMS_ADM.T3010 to CMS_ADM.T3010
Mapping problem with delete record (target format)...
*
P_CODE = 01206135
000000: 30 31 32 30 36 31 33 35 01206135
AIRCRAFT_TYPE = 737GY
000000: 37 33 37 47 59 737GY
TECH_NO = Z030
000000: 5a 30 33 30 Z030
START_DATE = 2017-10-19 00:00:00
000000: 32 30 31 37 2d 31 30 2d 31 39 20 30 30 3a 30 30 2017-10-19 00:00
000010: 3a 30 30 :00
(3).源端查看同步表的 TRANDATA,
發現記錄字段
爲 P_CODE、AIRCRAFT_TYPE、TECH_NO、START_DATE。同時,表不久前更換主鍵爲 PK_ID。
故障緣由:
同步表更換主鍵列後,複製進程採用新主鍵(PK_ID)做爲惟一標示,而源端投遞過來的 trail 文件仍使用原來的主鍵(P_CODE、AIRCRAFT_TYPE、TECH_NO、START_DATE)做爲惟一標示。所以當執行刪除語句時,因爲須要
靠惟一標示定位數據,所以複製進程報錯。