昨天业务部反应需要删除某个表的字段,思考了下将字段设置为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字段
本文出自 “一起走过的日子” 博客,请务必保留此出处http://tongcheng.blog.51cto.com/6214144/1950712
原文地址:http://tongcheng.blog.51cto.com/6214144/1950712