您好,登录后才能下订单哦!
昨天业务部反应需要删除某个表的字段,思考了下将字段设置为unused状态,如果需要使用很方便恢复。今天早上发现OGG数据复制有故障,主库EXTRACT进程出现ABENDED状态,数据不同步。从OGG日志查看是字段UNNUSED的问题。
日志异常
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字段
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。