1. 程式人生 > >GoldenGate對unused字段故障總結

GoldenGate對unused字段故障總結

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字段


本文出自 “一起走過的日子” 博客,請務必保留此出處http://tongcheng.blog.51cto.com/6214144/1950712

GoldenGate對unused字段故障總結