上午goldengate的R44XIB1 abbended了。
GGSCI (YJPORTFRT001) 1>
Program Status Group Lag Time Since Chkpt
MANAGER RUNNING
REPLICAT ABENDED R44XIB1 00:00:06 01:11:34
GGSCI (YJPORTFRT001) 2>
ERROR: REPLICAT R44XIB1 not currently running.
后来去检查源端和目标端两个表的结构,发现目标端的表少了主键约束。
在目标端添加该主键之后,启动进程,就OK了。
ALTER TABLE XIB3_EMG.EDI_BERTH_CODE ADD (
CONSTRAINT UK_EDI_BERTH_CODEUSING INDEX XIB3_EMG.UK_EDI_BERTH_CODE);
GGSCI (YJPORTFRT001) 1>
Program Status Group Lag Time Since Chkpt
MANAGER RUNNING
REPLICAT RUNNING R44XIB1 00:00:06 00:00:02
goldengate对于主键约束、外键约束、唯一性约束很敏感,有一点不同就会报错、abend。这一点要值得注意!