Table of Contents

Search

  1. Preface
  2. Data Replication Overview
  3. Installing Data Replication
  4. Preparing Source and Target Systems
  5. Replication Basic Concepts
  6. InitialSync Processing
  7. Extractor and Applier Processing
  8. DDL Replication
  9. Recovery and Checkpoint Processing
  10. Configuring the Server Manager
  11. Creating Replication Configurations in the Data Replication Console
  12. Managing Replication Configurations
  13. Running Data Replications
  14. Configuring Selected Replication Types
  15. Monitoring Data Replication
  16. Maintaining the Replication Environment
  17. Troubleshooting
  18. Data Replication Files and Subdirectories
  19. Data Replication Runtime Parameters
  20. InitialSync, Extractor, and Applier Command Line Parameters
  21. Server Manager Command Line Parameters
  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 Netezza
    and MySQL
    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 External targets, Data Replication returns a record that has the TRUNCATE operation type.
  • For 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!