昨天业务部反应需要删除某个表的字段,思考了下将字段设置为unused状态,如果需要使用很方便恢复。今天早上发现OGG数据复制有故障,主库EXTRACT进程出现ABENDED状态,数据不同步。从OGG日志查看是字段UNNUSED的问题。
成都创新互联自2013年起,先为青山湖等服务建站,青山湖等地企业,进行企业商务咨询服务。为青山湖企业网站制作PC+手机+微官网三网同步一站式服务解决您的所有建站问题。
日志异常
2015-07-25 09:08:50 WARNING OGG-00455 Oracle GoldenGate Capture for Oracle, pumpwh4.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字段