打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
OGG OGG
今天由于没有正常的先关闭源端的PUMP进程而直接关闭了备库的replicat和MGR进程。
导致PUMP进程启动不了报错如下:
OGG-01496  Oracle GoldenGate Capture for Oracle, py169.prm:  Failed to open target trail file ./dirdat/tb000183, at RBA 4434691.

我对PUMP提示使用下一个trail文件
alter extract py169, ETROLLOVER


然后重新启动报错如下:


2014-07-07 14:20:05  INFO    OGG-01478  Oracle GoldenGate Capture for Oracle, py169.prm:  Output file ./dirdat/tb is using format RELEASE 11.2.
2014-07-07 14:20:05  INFO    OGG-01026  Oracle GoldenGate Capture for Oracle, py169.prm:  Rolling over remote file ./dirdat/tb000184.
2014-07-07 14:20:26  ERROR   OGG-01028  Oracle GoldenGate Capture for Oracle, py169.prm:  Incompatible record (101) in ./dirdat/sb000182, rba 48681981 (getting header)
同时我记录了replicat进程的最后SCN
Current Checkpoint Detail:


Read Checkpoint #1


  GGS Log Trail


  Startup Checkpoint (starting position in the data source):
    Sequence #: 182
    RBA: 48681981
    Timestamp: 2014-07-07 10:33:08.815143
    Extract Trail: ./dirdat/tb


  Current Checkpoint (position of last record read in the data source):
    Sequence #: 182
    RBA: 48681981
    Timestamp: Not Available
    Extract Trail: ./dirdat/tb


CSN state information:
  CRC: 7B-3D-9C-FA
  Latest CSN: 1019744288
  Latest TXN: 15.4.220038
  Latest CSN of finished TXNs: 1019744288
  Completed TXNs: 15.4.220038
  
  
可以发现应该是sb000182出现的问题,然后进行metalink




METALINK文档如下:
ADD EXTRACT py169, EXTTRAILSOURCE ./dirdat/sb
add  rmttrail ./dirdat/tb,extract py169
ALTER EXTRACT py169, EXTSEQNO 182, EXTRBA 48681981


ALTER EXTRACT py169, EXTSEQNO 182, EXTRBA 48681710 


If a trail is not corrupt, a pump or replicat can be restarted by noting the point of failure (trail number and RBA) indicated in the report and discard file. Please do not attempt this if you are not familiar with reading these reports.


This should be done on transaction boundaries or with RESTARTCOLLISIONS enabled. If you do not understand this, do not do this yourself; please have support assist you.


 


>logdump
logdump> log to mycase.txt
logdump> open (/ggtrail/GGODSCF/dirdat/cf000325)  <<<--- the trail in the report
logdump> ghdr on
logdump> pos (RBA 19018)                                      <<<--- the RBA in the report 
logdump> n
  this will give you a bad header message


logdump> sfh prev
  this gives you the header of the previous record start,write down the RBA value   <<<--- If it's the transaction boundary or only DML in transaction


logdump> count
  if this finishes Ok and gives you a count of tables and records, the trail is OK and you can use the RBA we saved for the alter later
  the trail is known to be undamaged
  if this does not finish with the count, you have a bad trail and must use another recovery method, contact support.
logdump> exit


You now have a history of what you did in file mycase.txt and a written record of the RBA to use to ALTER the extract data pump or replicat


ggsci> alter, extseqno < the existing sequence number>, extrba
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
Oracle GoldenGate 系列:使用 Logdump 工具查看 Extract Trail 文件
Oracle Golden Gate 有关Data Pump 重置 trail 序列号 测...
OracleOggan安装并测试同步数据步骤!
Goldengate的拆分与合并
goldengate_安装配置指南
Oracle Golden Gate 系列八
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服