ERROR OGG-01163 Bad column length (30) specified for column name in table TEST.demo_src, maximum all

我们经常在生产系统做数据之间的长度不一致的复制,源端的数据长度大于目标端数据长度,所以当OGG复制的时候会报OGG-01163的错误

解决方案如下:

REPLICAT RCUP
USERID test, PASSWORD test
--ASSUMETARGETDEFS
sourcedefs ./dirdef/test_demo_src.def
DISCARDFILE ./dirrpt/RCUP.DSC, PURGE
MAP test.TBL_SWT_TRANS_LOG0, TARGET test.TBL_SWT_TRANS_LOG0;
MAP test.demo_src, TARGET test.demo_src , colmap (usedefaults), REPERROR (-01163, IGNORE),
FILTER ( @STRLEN(name) < 30, ON INSERT, ON DELETE, ON UPDATE,  RAISEERROR 21002) , REPERROR (21002, DISCARD), REPERROR (-01163, DISCARD);

你可能感兴趣的:(ORACLE,GoldenGate)