Oracle Goldengate QuickTip

Assuming you have a set of extract and replicate process that you would like to reset after they have been running for a while, assuming the prefix for the trail file to be ex

extract process:
eproc
replicate process:
rproc
trail file prefix:
ex

stop or kill
stop eproc 
stop rproc

alter eproc, begin now
alter eproc, etrollover

normally we can simply do the following for rproc

alter rproc, begin now

but for some occasion, we may have discrepancy in terms of seqno of the trail file between the extract and replicat process, in this case, figure out the file extract started with, say is 300, then we do

alter replicat rproc extseqno 300
alter replicat rproc extrba 0

start rproc

verify the process is running fine by seeing if the processes are extract/replicating anything

stats <process>

Comments

Popular posts from this blog

MongoDB tip: 4 ways to modify replica set configuration

MongoDB Quick Note: BI Connector Issue

MongoDB Tips: Kill long running processes