Table of Contents

Search

  1. Preface
  2. Data Replication Overview
  3. Understanding Data Replication
  4. Sources - Preparation and Replication Considerations
  5. Targets - Preparation and Replication Considerations
  6. Starting the Server Manager
  7. Getting Started with the Data Replication Console
  8. Defining and Managing Server Manager Main Servers and Subservers
  9. Creating and Managing User Accounts
  10. Creating and Managing Connections
  11. Creating Replication Configurations
  12. Materializing Targets with InitialSync
  13. Scheduling and Running Replication Tasks
  14. Implementing Advanced Replication Topologies
  15. Monitoring Data Replication
  16. Managing Replication Configurations
  17. Handling Replication Environment Changes and Failures
  18. Troubleshooting
  19. Data Replication Files and Subdirectories
  20. Data Replication Runtime Parameters
  21. Command Line Parameters for Data Replication Components
  22. Updating Configurations in the Replication Configuration CLI
  23. DDL Statements for Manually Creating Recovery Tables
  24. Sample Scripts for Enabling or Disabling SQL Server Change Data Capture
  25. Glossary

Replication of TRUNCATE TABLE Operations

Replication of TRUNCATE TABLE Operations

If you enable replication of TRUNCATE TABLE operations, Data Replication can process TRUNCATE TABLE operations for most source types. How Data Replication processes source TRUNCATE TABLE operations on the target depends on the apply mode and the target database type.
The apply mode affects TRUNCATE TABLE apply processing in the following manner:
  • In SQL Apply and Audit Apply modes, Data Replication truncates the mapped target table or audit log table.
    Do not enable replication of TRUNCATE TABLE operations in Audit Apply mode if you want to preserve the change data in the audit log tables.
  • In Merge Apply mode, Data Replication truncates the mapped target table but does not truncate the corresponding audit log table.
Additionally, some target types have special apply considerations:
  • For MemSQL
    , MySQL,
    and Netezza targets, Data Replication replicates TRUNCATE TABLE operations as DELETE FROM operations.
  • For Teradata targets, Data Replication replicates TRUNCATE TABLE operations as DELETE ALL operations.
  • For
    Apache Kafka,
    Cloudera, Flat File, and Hortonworks targets, Data Replication does not support TRUNCATE TABLE operations. Do not enable replication of TRUNCATE TABLE operations for these targets.

0 COMMENTS

We’d like to hear from you!