在OGG中使用skiptrans不能跳过长事务(LRT)

本文档介绍了在Oracle GoldenGate中遇到使用skiptrans无法跳过长运行事务(LRT)的问题,提供了相关错误信息及解决方案。通过示例说明skiptrans命令应使用XID而非SCN来正确跳过特定事务。

在OGG中使用skiptrans不能跳过长事务(LRT)

参考:Unable To Skip Long Running Transaction In Oracle Goldengate Using SKIPTRANS (Doc ID 1639676.1)

适用
Oracle GoldenGate - Version 11.1.1.1.2 to 12.1.2.0.0 [Release 11.1.1.1 to 12.1]
Information in this document applies to any platform.
Check for relevancy 01/12/2017

目标:
怎么在OGG中使用skiptrans跳过一个长事务?

GGSCI  > send extract <extract_name>, showtrans
Sending SHOWTRANS request to EXTRACT <extract_name> ...
Oldest redo log file necessary to restart Extract is:

Redo Log Sequence Number 4762, RBA 77272080
-----------------------------------------------------------
XID: 3.9.209025
Items: 0
Extract: <extract_name>
Redo Thread: 1
Start Time: 2014-03-22:00:11:06
SCN: 14.1966161432 (62095703576)
Redo Seq: 4762
Redo RBA: 77272080
Status: Running

GGSCI  > send extract <extract_name> skiptrans 62095703576
Sending skiptrans request to EXTRACT <extract_name> ...
ERROR: Transaction [62095703576] not found.
2014-03-24 14:50:54 WARNING OGG-01742 Command sent to EXTRACT <extract_name> returned with an ERROR response.

解决方案:
skiptrans 参数是不正确的. 针对extract进程,应该使用 XID 而不是SCN.

如下的例子解释了SKIPTRANS参数的用法

GGSCI > send extract <extract_name>, skiptrans 3.9.209025

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值