1. 程式人生 > >OGG ORA-1403 NO DATA FOUND

OGG ORA-1403 NO DATA FOUND

conn users per 同步 tegra doesn 工作 ans action

近期開始做OGG的項目,測試過程中遇到一個問題。使用CTAS創建一張表,表中有數據,然後使用delete from xxx;刪除表之後,replicat進程異常。查看ogg日誌,查看官網找到原因。

    官方文檔號
    How to Capture the DML(s) Executed by a DDL Trigger (OGG) (文檔 ID 1509900.1)

    解決方案
    SOLUTION
By design, Extract (Classic/ Integrated) doesn‘t capture the dmls from a DDL transaction (eg, inserts as a result of CTAS) or the dmls from a DDL trigger regardless of whether DDL replication is enabled or not. This is working correctly as per the design and not a bug

測試過程:
connect cytdas/cytdas
create table oggtest as select * from dba_users;
查看ogg進程正常,數據同步正常
delete from oggtest;
目的端發現replicat進程abend,查看日誌發現ORA-01403錯誤哦。
這裏不是BUG,不是BUG,是OGG的設計要求,我們只要工作中註意就好了。
可是把這個表排除掉繼續測試。

OGG ORA-1403 NO DATA FOUND