第一次同步
1、源端
add trandata crm.user --传输这个表
info trandata crm.user --查看信息
配置mgr进程
端口:7809
purgoldextracts ./dirdat ,usercheckpionts
然后启动mgr
然后info mgr
2、目标端
配管理进程mgr
端口 :7089
purgoldextracts ./dirdat ,usercheckpionts
启动mgr
info mgr
3、源端
add extract ext_1 ,sroucetable
edit param ext_1 --指明你这个进程做什么
setEnv()
userid ogg,password ogg
rmthost xxx,mgrport 7089
rmttask replicate , group rep_1
table crm.user
4、目标端
add extract rep_1 ,specialrun
edit param rep_1
setEnv()
assumetargetdefs
userid ogg,password ogg
discardfile ./dirrpt/ ,pupge
map crm.user ,crm.user
5、start extract ext_1 执行同步
--view report extract
数据同步
原端:
1、配置extract进程
2、配置extrail进程
3、配置pump进程
目标端
1、配置./gloables checkpoints
2、配置 replicate进程
原理见图
资料