詭異的OGG-01004 Database error 1403 no data found
配置某個客戶OGG環境時,同事報告某個表資料沒有同步過去
錯誤是:
2016-11-18 14:53:46 WARNING OGG-01004 Oracle GoldenGate Delivery for Oracle, rep_zt.prm: Aborted grouped transaction on '*', Database error 1403 (OCI Error ORA-01403: no data found, SQL <UPDATE /*+ RESTRICT_ALL_REF_CONS */ ""."*" SET "PROCESS_STATUS" = :a1,"ERROR_MSG" = :a2,"TRANSACTION_HEADER_ID" = :a3 WHERE "BATCH_CODE" = :b0>).
2016-11-18 14:53:46 WARNING OGG-01003 Oracle GoldenGate Delivery for Oracle, rep_zt.prm: Repositioning to rba 86746 in seqno 51.
2016-11-18 14:53:46 WARNING OGG-01154 Oracle GoldenGate Delivery for Oracle, rep_zt.prm: SQL error 1403 mapping * to * OCI Error ORA-01403: no data found, SQL <UPDATE /*+ RESTRICT_ALL_REF_CONS */ * " SET "PROCESS_STATUS" = :a1,"ERROR_MSG" = :a2,"TRANSACTION_HEADER_ID" = :a3 WHERE "BATCH_CODE" = :b0>.
2016-11-18 14:53:46 ERROR OGG-01296 Oracle GoldenGate Delivery for Oracle, rep_zt.prm: Error mapping from * to *.
2016-11-18 14:53:46 ERROR OGG-01668 Oracle GoldenGate Delivery for Oracle, rep_zt.prm: PROCESS ABENDING.
檢查配置檔案沒有發現異常。
檢查資料,源端與目標端資料都一致。
嘗試在源端看了一下這個表的trandata, 目標端的主鍵是COL1
GGSCI (ysbpmvsrd02) 31> info trandata h2.t_ap_inv_header_iface
Logging of supplemental redo log data is enabled for table H2.T_AP_INV_HEADER_IFACE.
Columns supplementally logged for table H2.T_AP_INV_HEADER_IFACE: TRANSACTION_HEADER_ID.
目標端:
GGSCI (yserpvdrd01) 14> info trandata h2.t_ap_inv_header_iface
Logging of supplemental redo log data is enabled for table H2.T_AP_INV_HEADER_IFACE.
Columns supplementally logged for table H2.T_AP_INV_HEADER_IFACE: BATCH_CODE.
恍然大悟
問了問開發人員,主鍵有調整。
錯誤是:
2016-11-18 14:53:46 WARNING OGG-01004 Oracle GoldenGate Delivery for Oracle, rep_zt.prm: Aborted grouped transaction on '*', Database error 1403 (OCI Error ORA-01403: no data found, SQL <UPDATE /*+ RESTRICT_ALL_REF_CONS */ ""."*" SET "PROCESS_STATUS" = :a1,"ERROR_MSG" = :a2,"TRANSACTION_HEADER_ID" = :a3 WHERE "BATCH_CODE" = :b0>).
2016-11-18 14:53:46 WARNING OGG-01003 Oracle GoldenGate Delivery for Oracle, rep_zt.prm: Repositioning to rba 86746 in seqno 51.
2016-11-18 14:53:46 WARNING OGG-01154 Oracle GoldenGate Delivery for Oracle, rep_zt.prm: SQL error 1403 mapping * to * OCI Error ORA-01403: no data found, SQL <UPDATE /*+ RESTRICT_ALL_REF_CONS */ * " SET "PROCESS_STATUS" = :a1,"ERROR_MSG" = :a2,"TRANSACTION_HEADER_ID" = :a3 WHERE "BATCH_CODE" = :b0>.
2016-11-18 14:53:46 ERROR OGG-01296 Oracle GoldenGate Delivery for Oracle, rep_zt.prm: Error mapping from * to *.
2016-11-18 14:53:46 ERROR OGG-01668 Oracle GoldenGate Delivery for Oracle, rep_zt.prm: PROCESS ABENDING.
檢查配置檔案沒有發現異常。
檢查資料,源端與目標端資料都一致。
嘗試在源端看了一下這個表的trandata, 目標端的主鍵是COL1
GGSCI (ysbpmvsrd02) 31> info trandata h2.t_ap_inv_header_iface
Logging of supplemental redo log data is enabled for table H2.T_AP_INV_HEADER_IFACE.
Columns supplementally logged for table H2.T_AP_INV_HEADER_IFACE: TRANSACTION_HEADER_ID.
目標端:
GGSCI (yserpvdrd01) 14> info trandata h2.t_ap_inv_header_iface
Logging of supplemental redo log data is enabled for table H2.T_AP_INV_HEADER_IFACE.
Columns supplementally logged for table H2.T_AP_INV_HEADER_IFACE: BATCH_CODE.
恍然大悟
問了問開發人員,主鍵有調整。
修復:在源端執行
delete trandata h2.t_ap_inv_header_iface
add trandata h2.t_ap_inv_header_iface
重啟程式之後資料複製OK
delete trandata h2.t_ap_inv_header_iface
add trandata h2.t_ap_inv_header_iface
重啟程式之後資料複製OK
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8520577/viewspace-2128702/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 詭異的”慢查詢“
- JavaScript 詭異的0.01JavaScript
- 一個詭異的 Pulsar InterruptedException 異常Exception
- Read of flashback database logfile 502, block 251 found corrupted data.DatabaseBloC
- GP詭異的查詢轉換
- 詭異的無線網路卡Down
- C語言之詭異字串C語言字串
- API 路由中介軟體的詭異API路由
- 介面詭異的404問題記錄
- 詭異的HP-UX Load averagesUX
- 很詭異的博弈問題分析方法
- Error 15: File not found for RedhatErrorRedhat
- 詭異!React stopPropagation失靈React
- 【PL/SQL開發】-----詭異啊SQL
- NO_DATA_FOUND和%NOTFOUND的區別
- 一個執行緒罷工的詭異事件執行緒事件
- 執行緒同步的詭異:求指點執行緒
- 詭異的事情,RAC,public ip通,vip不通
- Linux終端的8個詭異傢伙Linux
- 記一次詭異的故障排查經歷
- 由optimizer_switch所引起的詭異問題
- 一個看似詭異的Oracle連線問題Oracle
- python 詭異問題求助各位大哥Python
- Error ./bin/my_print_defaults: not foundError
- 記一次詭異的Oracle查詢轉換Oracle
- 使用 Arthas 排查 SpringBoot 詭異耗時的 BugSpring Boot
- 一次詭異的MySQL問題處理故事MySql
- 敵或友:波蘭詭異的加密貨幣之戰加密
- IOS下box-shadow的詭異bug的修復iOS
- ORACLE SELECT INTO NO_DATA_FOUND問題Oracle
- ERROR in Entry module not found Error Can't resolve 'babel' in ' UseErrorBabel
- 詭異!std::bind in std::bind 編譯失敗編譯
- 一例“詭異”報表SQL需求分析SQL
- flashback database 結合 data guardDatabase
- DATA GUARD 中alter database 命令Database
- ERROR: No abbreviations files found in ...nonbreaking_prefixesError
- RMAN-05541: no archived logs found in target databaseHiveDatabase
- 深入探究《控制》中那些詭異而迷人的美學元素