GoldenGate对unused字段故障总结


   昨天业务部反应需要删除某个表的字段,思考了下将字段设置为unused状态,如果需要使用很方便恢复。今天早上发现OGG数据复制有故障,主库EXTRACT进程出现ABENDED状态,数据不同步。从OGG日志查看是字段UNNUSED的问题。


日志异常

2015-07-25 09:08:50  WARNING OGG-00455  Oracle GoldenGate Capture for Oracle, pumpwh3.prm:  Problem in resolving [TONG.FIN_CALE]: Failed to validate table TONG.FIN_CALE. Likely due to existence of unused columns. It will cause data integrity issue if you are not using sourcedefs in downstream Replicat or the target table doesn't have the same unused columns due to ASSUMETARGETDEFS or DDL replication. Please use 'DBOPTIONS ALLOWUNUSEDCOLUMN' parameter to override this., try to fix this issue in order to avoid possible fatal error.


解决方法(1):

GGSCI (iZ23jtzbnliZ) 11> stop extwh

GGSCI (iZ23jtzbnliZ) 2> edit params extwh         --主库的EXTRACT进程

     DBOPTIONS ALLOWUNUSEDCOLUMN           --添加这行参数就可以了

GGSCI (iZ23jtzbnliZ) 3> start extwh
Sending START request to MANAGER ...
EXTRACT EXTWH starting
GGSCI (iZ23jtzbnliZ) 4>


解决方法(2):

SQL> ALTER TABLE FIN_CALE DROP UNUSED COLUMNS;     --删除unused字段









本文转自 z597011036 51CTO博客,原文链接:http://blog.51cto.com/tongcheng/1950712,如需转载请自行联系原作者
上一篇:Selenium2.0功能测试之如何使用Action类来模拟交互


下一篇:使用HanLP增强Elasticsearch分词功能