How to Purge Apply Spilled Transactions in Streams Environment. [ID 472440.1]

本文档介绍了如何在Stream环境中清除溢出的事务。首先,下载PLB文件`streams_purge_apply_spill_txn.plb`,然后使用sqlplus将其加载到目标数据库的SYS模式中,创建名为`purge_spill_txn`的存储过程。该过程接受三个参数:应用名称、忽略的事务ID和仅删除标志。在执行前,需通过DBA_APPLY_SPILL_TXN视图查找到要移除的事务ID。
摘要由CSDN通过智能技术生成

最近在搞stream做全库复制,出现了一些问题,查阅了mos的文档 记录于此

  Modified 11-APR-2012     Type HOWTO     Status PUBLISHED  

In this Document
  Goal
  Solution
  References


Applies to:

Oracle Server - Enterprise Edition - Version: 10.2.0.1 to 11.2.0.3 - Release: 10.2 to 11.2
Information in this document applies to any platform.

Goal

How to Purge Apply Spilled Transactions.

Solution

Apply Spill

Apply Spillover, introduced in 10.2, allows Streams to handle large transactions and long running transactions. A large transaction is a transaction with more than 10000 Logical Change Records (LCRs). The size of a large transaction can be set by the user via the apply parameter TXN_LCR_SPILL_THRESHOLD.  LCRs will start to spill to the apply spill table when the number of LCRs in the transaction reaches the value of TXN_LCR_SPILL_THRESHOLD.  The apply spill table is located in SYSAUX and uses a partitioned table to store the LCRs.   Each transaction is a separate partition of the table (the key is apply_name and transaction id). When a transaction has been applied and it is time to remove the LCRs for that transaction, a drop partition is performed for the transactionid. This is a very quick operation and
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值