詭異的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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 詭異的”慢查詢“
- 一個詭異的 Pulsar InterruptedException 異常Exception
- Error querying database. XXXXXXXXXXXXX, No database selected。ErrorDatabase
- C語言之詭異字串C語言字串
- NO_DATA_FOUND和%NOTFOUND的區別
- [20190116]詭異的問題2.txt
- 介面詭異的404問題記錄
- API 路由中介軟體的詭異API路由
- 一個詭異的"可見性"問題
- Linux終端的8個詭異傢伙Linux
- 使用 Arthas 排查 SpringBoot 詭異耗時的 BugSpring Boot
- ORACLE SELECT INTO NO_DATA_FOUND問題Oracle
- 網站報錯:“Database Server Error”網站DatabaseServerError
- ERROR: No abbreviations files found in ...nonbreaking_prefixesError
- [PM2][ERROR] Process XXX not foundError
- python 詭異問題求助各位大哥Python
- 記一次詭異的故障排查經歷
- 一個執行緒罷工的詭異事件執行緒事件
- 串列埠使用Pipeline時詭異的ReadOnlySequence問題串列埠
- IOS下box-shadow的詭異bug的修復iOS
- load data infile ERROR 1045 (28000)Error
- 記一次詭異的Oracle查詢轉換Oracle
- 一次詭異的MySQL問題處理故事MySql
- ERROR: freetype2 not found using pkg-configError
- 詭異!std::bind in std::bind 編譯失敗編譯
- Error establishing a database connection 的解決方法(發現黑客入侵)ErrorDatabase黑客
- Composer 提示 zlib_decode (): data errorError
- 詭異的JS非同步單執行緒是如何工作的JS非同步執行緒
- 深入探究《控制》中那些詭異而迷人的美學元素
- 8 個出沒在 Linux 終端的詭異傢伙Linux
- vmware平臺下兩次網路不通的詭異事件事件
- Dynamics CRM CRM Reporting Error: Error occurred while fetching the data extension的解決方法ErrorWhile
- ORA-02062: distributed recovery 引起的 ORA-02019: connection description for remote database not foundREMDatabase
- [20181018]Oracle Database 12c: Data Redaction.txtOracleDatabase
- 解決nltk_data LookupError: Resource punkt not found.Error
- ERROR: failed to establish dependency between database db_name and diskgroupErrorAIDatabase
- 記錄一次詭異的拼接sql不生效問題SQL
- 記錄 openssl 證書驗證失敗的詭異問題
- 【Jenkins】data stream error|Error cloning remote repo ‘origin‘ 錯誤解決JenkinsErrorREM