goldengate 参数之GETTRUNCATES | IGNORETRUNCATES --转载

本文详细介绍了Oracle GoldenGate中GETTRUNCATES和IGNORETRUNCATES参数的使用方法,包括如何控制源端和目标端的TRUNCATE操作捕获及复制,并解释了这些参数在不同数据库和特定Oracle环境下的限制。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

GETTRUNCATES | IGNORETRUNCATES
Valid For
Extract and Replicat
Description
Use the GETTRUNCATESand IGNORETRUNCATES parameters to control whether or not 
Oracle GoldenGate processes table truncate operations. By default, truncate operations 
are not captured from the source or replicated to the target.
GETTRUNCATES and IGNORETRUNCATES are table-specific. One parameter remains in 
effect for all subsequent TABLE or MAP statements, until the other parameter is 
encountered.
In a coordinated Replicat configuration, truncates are always processed by the thread 
that is responsible for barrier transactions.
默认的在仅仅开启DML复制的情况下TRUNCATE是不被捕获的,如果需要捕获请时候参数,EXTRACT端和REPLICAT端
都需要开启

3 Supported Databases
■ GETTRUNCATESand IGNORETRUNCATESare not supported for Teradata.
■ GETTRUNCATESand IGNORETRUNCATESare supported by Extract for Oracle and 
Sybase.
■ GETTRUNCATESand IGNORETRUNCATESare supported by Replicat for Oracle, SQL 
Server, Sybase, DB2 LUW, DB2 z/OS, MySQL, SQL/MX, and other ODBC targets 
that support the TRUNCATEcommand.
本组参数仅仅支持ORACLE和SYBASE

3 Oracle Limitations
■ Oracle GoldenGate supports the Oracle TRUNCATE TABLE command, but not 
TRUNCATE PARTITION. You can replicate TRUNCATE PARTITIONas part of the full 
Oracle GoldenGate DDL replication support.
■ The database does not log truncates against an empty table, so those operations 
are not captured by Oracle GoldenGate. The DDL support of Oracle GoldenGate 
can be used for this purpose.
■ The database does not log truncates for empty partitions, so Oracle GoldenGate 
cannot reliably process TRUNCATE TABLE when the table contains any empty 
partitions. Do not use GETTRUNCATES on any partitioned table. Oracle GoldenGate 
DDL support can be used to capture truncates on tables that might include empty 
partitions.

本组参数仅仅支持在未开启DDL复制的情况下需要TRUNCATE TABLE的情况,但是不支持TRUNCATE paration,
如果需要TRUNCATE PARATITION请开启DDL复制
如果TUNCATE一个空表,在只支持DML的情况下是不捕获的,如果需要捕获请开启DDL复制

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值