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

Configuring Cascade Replication

For a cascade replication that replicates data unidirectionally across a chain of databases, create a configuration for each pair of databases in the chain.
Data Replication does not support cascade replication for configurations that have an Apache Kafka target.
  1. Create a replication configuration for each pair of databases in a chain.
  2. For each configuration, run InitialSync. Begin with the last configuration in the cascade replication and end with the first configuration in the cascade replication.
  3. On the
    Server Manager
    tab >
    Schedules
    view, create a schedule for each configuration.
  4. On the
    Server Manager
    tab >
    Tasks
    view, perform the following steps for each Extractor task in the configurations in the cascade replication, beginning with the second configuration:
    Do not perform these steps for the first configuration in the cascade replication.
    1. Right-click the Extractor task in the
      Name
      column of the Tasks and Tasks Dependencies list and click
      Edit
      , or select the Extractor task in the
      Name
      column and click the
      Edit
      icon button in the Tasks and Task Dependencies toolbar.
      The
      Editing
      dialog box appears.
    2. In the
      Command
      field, enter SKIP_DEFAULT_TX=N to disable loopback avoidance. The following image shows this view:
      Editing dialog box with loopback avoidance disabled in the Command field
      If you do not want to disable loopback avoidance, use the default setting of SKIP_DEFAULT_TX=Y. This setting replicates only the changes that originate on the database immediately before the current database in the cascade replication and skips the changes that originate on preceding databases in the cascade replication. For example, when replicating changes from Database B to Database C, Data Replication skips the transactions that originated on Database A and replicates only the changes that originated on Database B.
    3. Click
      Save
      .
    4. Repeat these steps for the remaining configurations in the cascade replication that contain Extractor tasks.
  5. Run the replication schedule for each configuration.
    From any database in the chain, Data Replication replicates forward all the changes that originally occurred on that database, unless you specified SKIP_DEFAULT_TX=Y in step 4.

0 COMMENTS

We’d like to hear from you!