Enabling Triggers

By default, when a replicate causes an insert, update, or delete on a target table, triggers associated with the table are not executed. However, you can specify that triggers are executed when the replicate data is applied by enabling triggers in the replicate definition.

About this task

To enable triggers, include the --firetrigger option in your replicate definition.

When you design your triggers, you can use the 'cdrsession' option of the DBINFO() function to determine if the transaction is a replicated transaction.

For information, refer to Triggers and Special Options.