一、报错内容
ERROR OGG-00516 Fatal error executing DDL replication: error [Error code [12991],
ORA-12991: column is referenced in a multi-column constraint], due to explicit ABEND error handling and filter
[include all (default)]
二、问题分析
SYS@t1gbk>SELECT DDLTYPE,METADATA_TEXT,OPTIME from ogg1.GGS_DDL_HIST where objectowner='TEST2' AND OBJECTNAME='TEST1' ORDER BY 3; ALTER ,G1='alter table test1 drop column cc ', 2021-04-24 01:11:52
2个字段,删除一个字段正常没毛病! 但是目标端复制进程删除报错??? 谁还引用这个字段???
SQL> select * from DBA_CONSTRAINTS where table_name='TEST1';
no rows selected
约束排除! 最后剩下,本次测试环境是双向同步,这个表在目标端,作为反向OGG源端存在抽取进程!
> DELETE TRANDATA TEST2.TEST1 在重启进程就可以了!
!!!注意双向同步是,源端进行删除字段操作,可能无法执行!