在处理goldengate数据同步时出现源端与目标端不同步,有可能是表结构,数据以及索引不一样。将源端的表全部导入到目标端后仍发现问题(ERROR OGG-01296 Error mapping from T.FUT_VP_RANK to T.FUT_VP_RANK.)。最后结果将表过滤再启动复制进程,也可过滤备份的表名再重启进程。
问题进程:
GGSCI (ogg2) 18> info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER RUNNING
REPLICAT ABENDED REPWT2 04:43:27 237:28:34
GGSCI (ogg2) 19> view report repwt2
。。。。。。。。。。。。。。。省略。。。。。。。。。。。。。。。。。。。。。。
2015-04-07 19:47:38 ERROR OGG-01296 Error mapping from T.FUT_VP_RANK to T.FUT_VP_RANK.
。。。。。。。。。。。。。。。省略。。。。。。。。。。。。。。。。。。。。。。
解决方法:
GGSCI (ogg2) 20> edit params repwt2
TABLEEXCLUDE T.FUT_VP_RANK --添加这行,将FUT_VP_RANK表过滤掉(或者TABLEEXCLUDE T.SYS_EXPORT_TABLE_01)
GGSCI (ogg2) 21> start repwh3
Sending START request to MANAGER ...
REPLICAT REPWH2 starting
GGSCI (ogg2) 22> info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER RUNNING
REPLICAT RUNNING REPWH2 04:43:27 237:30:56
GGSCI (ogg2) 23> info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER RUNNING
REPLICAT RUNNING REPWH2 04:43:27 237:30:58
GGSCI (ogg2) 24>