GoldenGate在处理长交易时会将其缓存至内存和硬盘,若进程停止则会丢失,重启时可通过检查点重新读取。为查看和处理长交易,GoldenGate提供了多种命令,如Ggsci> send extract,showtrans [thread n] [count n]。其中,'send extract'为进程名如exta/dpea/repa,'thread n'可选,表示仅查看一个节点上的未提交交易(适用于RAC),'count n'也是可选项,表示显示记录数。例如,要查看extsz进程节点1上最长的10个交易,可用命令:Ggsci> send extract exta [, showtrans thread 1 count 10]。若需强制提交或回滚特定事务,可使用命令:Ggsci> send extract , skiptrans [thread] // 跳过交易,Ggsci> send extract , forcetrans [thread] // 强制提交。需注意,这些命令仅影响GoldenGate进程,不会改变数据库中的实际交易状态,建议直接使用数据库功能提交或回滚交易。