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

被折叠的 条评论
为什么被折叠?



