Table of Contents

Search

  1. Preface
  2. Part 1: PowerExchange CDC Introduction
  3. Part 2: PowerExchange CDC Components
  4. Part 3: PowerExchange CDC Data Sources
  5. Part 4: Change Data Extraction
  6. Part 5: Monitoring and Tuning
  7. Appendix A: DTL__CAPXTIMESTAMP Time Stamps

CDC Guide for Linux, UNIX, and Windows

CDC Guide for Linux, UNIX, and Windows

Manually Creating Triggers

Manually Creating Triggers

PowerExchange queries each registered table to determine if the insert, update, and delete triggers exist. If a trigger does not exist for a table, PowerExchange creates it.
Alternatively, you can create the triggers in the tables registered for change data capture manually. You can use the PowerExchange Navigator to create DDL that inlcudes the triggers. If you choose to create the triggers manually, make sure you grant permissions to the user ID connected to the source database as described in Granting Additional Permissions.
If a table is removed from the list of registered tables, PowerExchange removes the trigger that it automatically created from that table. You can list the triggers to verify that PowerExchange removed the triggers from the removed source table. You can list the triggers by using the following command:
SELECT * FROM TRIGGERS WHERE SCHEMA_NAME = '<
schema_name
>
If you enable or disable the Full Audit option for a registered table, you must drop and recreate the triggers for that table. You can manually create the triggers or allow the PowerExchange Logger to create them automatically. Optionally, you can also drop and recreate the CDC table.

0 COMMENTS

We’d like to hear from you!