共计 1258 个字符,预计需要花费 4 分钟才能阅读完成。
在配置 OGG 的清理老的 trail 文件的时候,设置了两行配置:
PURGEOLDEXTRACTS /ogg/dirdat/horcl/hz*,USECHECKPOINTS,MINKEEPDAYS 2
PURGEOLDEXTRACTS /ogg/dirdat/aorcl/ar*,USECHECKPOINTS,MINKEEPDAYS 2
但是发现第二行不起作用
检查参数文件,发现 extract 参数文件中配置的参数文件的 exttrail 配置如下:
EXTTRAIL ./dirdat/aorcl/ar
同时发现 e_aorcl 这个 extract 对应了两个 exttrail
GGSCI (ncrac1) 8> info exttrail *
Extract Trail: /ogg/dirdat/aorcl/ar
Seqno Length: 6
Flip Seqno Length: yes
Extract: E_AORCL
Seqno: 0
RBA: 0
File Size: 500M
Extract Trail: ./dirdat/aorcl/ar
Seqno Length: 9
Flip Seqno Length: no
Extract: E_AORCL
Seqno: 20
RBA: 136368447
File Size: 500M
停掉 extract 删除了对于的 exttrail
GGSCI (ncrac1) 13> delete exttrail /ogg/dirdat/aorcl/ar extract e_aorcl
Deleting extract trail /ogg/dirdat/aorcl/ar for extract E_AORCL
同时,在 mgr 中加入了一行, 文件路径与 extract 参数中对应:
PURGEOLDEXTRACTS ./dirdat/aorcl/ar*,USECHECKPOINTS,MINKEEPDAYS 2
之后 refresh mgr 之后,工作正常
2019-04-08T16:57:26.686+0800 INFO OGG-00957 Oracle GoldenGate Manager for Oracle, mgr.prm: Purged old extract file ‘/ogg/dirdat/aorcl/ar000000013’, applying UseCheckPoints purge rule: Oldest Chkpt Seqno 21 > 13.
2019-04-08T16:57:26.719+0800 INFO OGG-00957 Oracle GoldenGate Manager for Oracle, mgr.prm: Purged old extract file ‘/ogg/dirdat/aorcl/ar000000014’, applying UseCheckPoints purge rule: Oldest Chkpt Seqno 21 > 14.
: