Detect collisions - Connect_CDC - connect_cdc_mimix_share - Latest

Connect CDC Advanced User Guide

Product type
Software
Portfolio
Integrate
Product family
Connect
Product
Connect > Connect CDC (MIMIX Share)
Version
Latest
Language
English
Product name
Connect CDC
Title
Connect CDC Advanced User Guide
Copyright
2024
First publish date
2003
Last updated
2024-07-19
Published on
2024-07-19T23:30:25.334335

A Connect CDC component checks for SQL update conflicts as it applies replicated data to receiving tables. It is a conflict, or collision, if a target record has been changed and is not what is expected, preventing the completion of the replicated update. The definition of a collision varies depending on if the mode is protected or unprotected. Choose settings for collision detection on the Replication tab of the Replication Request Properties dialog box.

For maximum safety for applications susceptible to data collisions, you can protect the sending and receiving tables on the servers involved in replication.

Kind of collision detection in effect

Description

protected

Shadow tables maintain information about the previous updates on a source table. When Connect CDC replicates information to the target table, it looks at information in the shadow table to see if it differs. If it differs, a collision occurs. A collision may be:

  • An update or delete operation replicated from the source table that does not find corresponding rows at the target table.

  • An insert operation replicated from the source table that finds the row already exists at the target table.

This is for use in bi-directional configurations.

You choose settings on the Replication tab of the Replication Request Properties dialog box to specify if collisions are resolved automatically in the same distributed transaction or they are made available for manual resolution.

Note: Do not attempt manual resolution in Versions 4.0.2 and earlier.

unprotected

A collision is an error, and no attempt is made to resolve whether the incoming replicated data or the encountered target data is preferred.

A collision may be:

  • An update or delete operation replicated from the source table that does not find corresponding rows at the target table.

  • An insert operation replicated from the source table that finds the row already exists at the target table.

To enable Unprotected collision resolution, you select the types of SQL update errors to be automatically resolved (INSERT, DELETE, UPDATE) on the Replication tab of the Replication Request Properties dialog box.

Note: Updating a line with the same value throws the shadow tables out of sync with the target. The shadow table and the queue tables are updated on the source DBMS, but the Connect CDC then detects that no data has changed and does not send the row to the target.