这是需要人工干涉产生一个新的extract trail文件,data pump和replicat进程都从该新文件中读取数据。
etrollover可以再重新启动抽取进程时自动生成一个新的trail文件。
同时会提示并且必须指定datapump和replicat进程的seqno序号。
alter replicat repname, extseqno XX, extrba 0 #同datapump,需要在目标端的dirdat下看新生成的trail文件序号。extrba也可以通过logdump工具来查看
Example
GGSCI (mine) 2> info *IP
EXTRACT DMSQLIP Last Started 2014-07-23 17:41 Status STOPPED
Checkpoint Lag 00:00:00 (updated 00:08:47 ago)
Log Read Checkpoint File ./dirdat/i1000114
2014-09-09 20:51:33.000000 RBA 32437
当前文件序列号是114 rba32437
GGSCI (mine) 3> lter extract EMSQLIP,etrollover
2014-09-10 11:02:45 INFO OGG-01520 Rollover performed. For each affected output trail of Version 10 or higher format, after starting the source extract, issue ALTER EXTSEQNO for that trail's reader (either pump EXTRACT or REPLICAT) to move the reader's scan to the new trail file; it will not happen automatically.
EXTRACT altered.
提示要对data pump和replicat的extseqno进行修改
#data pump进程修改
GGSCI (mine) 5> alter extract DMSQLIP,extseqno 115,extrba 0
EXTRACT altered.
#repicat进程修改
GGSCI 2> alter replicat RPALMBI7,extseqno 6,extrba 994
REPLICAT altered.