近期开始做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的设计要求,我们只要工作中注意就好了。
可是把这个表排除掉继续测试。
原文地址:http://blog.51cto.com/roidba/2333178
时间: 2024-10-10 08:29:05