昨天业务部反应须要删除某个表的字段,思考了下将字段设置为unused状态,若是须要使用很方便恢复。今天早上发现OGG数据复制有故障,主库EXTRACT进程出现ABENDED状态,数据不一样步。从OGG日志查看是字段UNNUSED的问题。ide
日志异常
this
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.spa
解决方法(1):日志
GGSCI (iZ23jtzbnliZ) 11> stop extwh
进程
GGSCI (iZ23jtzbnliZ) 2> edit params extwh --主库的EXTRACT进程get
DBOPTIONS ALLOWUNUSEDCOLUMN --添加这行参数就能够了同步
GGSCI (iZ23jtzbnliZ) 3> start extwh
Sending START request to MANAGER ...
EXTRACT EXTWH starting
GGSCI (iZ23jtzbnliZ) 4>it
解决方法(2):io
SQL> ALTER TABLE FIN_CALE DROP UNUSED COLUMNS; --删除unused字段
table