Disabling Triggers and Cascade Constraints on the Target
If Oracle GoldenGate is configured to capture DML operations from source tables that occur due to trigger operations or cascade constraints, then disable the triggers and cascade delete and cascade update constraints on the target tables.
emp_src
and
salary_src
and the target tables are emp_targ
and salary_targ
-
A delete is issued for
emp_src
. -
It cascades a delete to
salary_src
. -
Oracle GoldenGate sends both deletes to the target.
-
The parent delete arrives first and is applied to
emp_targ
. -
The parent delete cascades a delete to
salary_targ
. -
The cascaded delete from
salary_src
is applied tosalary_targ
. -
The row cannot be located because it was already deleted in step 5.
In the Replicat MAP
statements, map the source tables to appropriate
targets, and map the child tables that the source tables reference with triggers or
foreign-key cascade constraints. Triggered and cascaded child operations must be
mapped to appropriate targets to preserve data integrity. Include the same parent
and child source tables in the Extract TABLE
parameters.