紧急!!OGG DDl+DML单向复制异常
环境Oracle 11.2.0.4
OGG 11g
配置完成后,可以实现数据dml同步,ddl同步。
问题
在源端添加字段后,目标也自动通过ddl同步添加响应字段。然后,在源端插入或者更新新增字段数据,目标端新增的字段始终为空?
注(APISOFT表初始化时,包含API和A两个字段,B字段是在ogg启动后,手动在源端更改通过ddl同步)
源端表
目标端
在源端发现不太正常的地方
源端配置:
EXTRACT extya
userid ogg, password ogg
SETENV (NLS_LANG="AMERICAN_AMERICA.ZHS16GBK")
GETTRUNCATES
REPORTCOUNT EVERY 1 MINUTES,RATE
numfiles 5000
DDL INCLUDE ALL
DISCARDFILE ./dirrpt/extya.dsc,APPEND,MEGABYTES 1000)
WARNLONGTRANS 2h,CHECKINTERVAL 3m
EXTTRAIL ./dirdat/ya
TranlogOptions DBLOGREADER
DYNAMICRESOLUTION
table SH_PS.*;
EXTRACT dpeya
RMTHOST 10.8.1.192, MGRPORT 7839,compress
PASSTHRU
numfiles 50000
RMTTRAIL ./dirdat/ya
DYNAMICRESOLUTION
table SH_PS.*;
目标端配置
REPLICAT repya
USERID ogg,password ogg
SETENV (NLS_LANG="AMERICAN_AMERICA.ZHS16GBK")
numfiles 50000
MAXTRANSOPS 500000
GROUPTRANSOPS 10000
CHECKPOINTSECS 40
DDL INCLUDE MAPPED
DISCARDFILE ./dirrpt/repya.dsc,APPEND,MEGABYTES 1000
ASSUMETARGETDEFS
HANDLECOLLISIONS
GETUPDATEBEFORES
MAP SH_PS.*,target SH_PS.*; TRY ADD
DDL Include ALL
--DDL INCLUDE ALL, EXCLUDE OBJNAME "<schema name>.<object name> "
DDLOptions AddTranData, Report
DDLOptions NoCrossRename, Report FYI
http://www.askmaclean.com/archives/goldengate-best-parameters-test-from-maclean.html
页:
[1]