- 最后登录
- 2013-3-4
- 在线时间
- 9 小时
- 威望
- 12
- 金钱
- 122
- 注册时间
- 2012-5-24
- 阅读权限
- 10
- 帖子
- 13
- 精华
- 0
- 积分
- 12
- UID
- 453
|
1#
发表于 2013-1-14 15:56:56
|
查看: 9712 |
回复: 8
本帖最后由 linfeng_oracle 于 2013-1-14 16:21 编辑
Oracle版本:10205rac
Goldengate版本:11.1
部分表没有pk或唯一索引。
因为客户需求,需要停节点一实例,停止步骤:先停ogg再停节点一,过了一小时,启动节点一,启动ogg,发现复制端数据不一致。
源端:
GGSCI (p570a) 4> view param mgr
port 7809
DYNAMICPORTLIST 7840-7850
purgeoldextracts ./dirdat/*, usecheckpoints, minkeepdays 3
--userid goldengate, password goldengate
GGSCI (p570a) 3> view param EXTGZ
Extract extgz
USERID goldengate, PASSWORD AACAAAAAAAAAAALAPEOEEEHGSJSDOIQFABLGIGPDZDVJBJJB, ENCRYPTKEY default
tranlogoptions asmuser sys@asm1, asmpassword asm10g
warnlongtrans 12h, checkinterval 10m
BR BROFF
TRANLOGOPTIONS CONVERTUCS2CLOBS
THREADOPTIONS MAXCOMMITPROPAGATIONDELAY 3000 IOLATENCY 3000
exttrail ./dirdat/gz
table GZGJJ3.*;
table GZGJJ.*;
table APP.*;
table DEV01.*;
table DEV02.*;
table goldengate.*;
GGSCI (p570a) 5> view param DPEGZ
extract dpegz
passthru
REPORT AT 01:59
reportrollover at 02:00
discardfile ./dirrpt/dpedm.dsc,append, megabytes 100
rmthost 172.16.155.4, mgrport 7809, compress
rmttrail ./dirdat/gz
dynamicresolution
table GZGJJ3.*;
table GZGJJ.*;
table APP.*;
table DEV01.*;
table DEV02.*;
table goldengate.*;
目标端:
GGSCI (rx8640a) 4> view param REPGZ
replicat repgz
setenv (ORACLE_SID = "gzgjj1")
USERID goldengate, PASSWORD AACAAAAAAAAAAALAPEOEEEHGSJSDOIQFABLGIGPDZDVJBJJB, ENCRYPTKEY default
REPORT AT 01:59
reportrollover at 02:00
sqlexec "Alter session set constraints=deferred"
assumetargetdefs
allownoopupdates
reperror default,abend
discardfile ./dirrpt/repgz.dsc, append, megabytes 100M
SHOWSYNTAX
batchsql
grouptransops 2000
dynamicresolution
allownoopupdates
map GZGJJ.GD_WF_SQSPYJ, target GZGJJ.GD_WF_SQSPYJ, keycols (SQBH);
obey ./dirsql/map_target.txt
BR BROFF有关系吗? |
|