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

SAP HANA CDC Overview

SAP HANA CDC Overview

PowerExchange CDC for SAP HANA captures inserts, updates, and deletes from SAP HANA tables on Linux or Windows. The capture process uses triggers on the source tables to capture change data.
PowerExchange uses the following tables that are created in the source database:
  • PKLOG log table. Contains metadata about captured DML changes, such as the change type and timestamp, transaction ID, schema name, and table name.
  • PROCESSED log table. Contains the PowerExchange maximum processed sequence number for the most recent change data capture cycle.
  • Shadow <
    schema
    >.<
    tablename
    >_CDC tables. When Full Audit mode is enabled, contains before images of updates and after images of inserts, updates, and deletes captured from the source tables, with metadata such as the transaction ID and timestamp. A shadow CDC table exists for each source table from which changes are captured.
The triggers write the metadata about the DML changes to the PKLOG transaction log table and also write the DML before images and after images to the CDC tables if you select the
Full Audit
option when registering source tables.
In the PowerExchange Navigator, you can optionally generate the pklog.sql script file, which contains SQL statements for creating the PKLOG and PROCESSED log tables. Click the
DDL
button when adding a registration group, or select the
DDL
menu option for a registration group open in Resource Explorer. You can also generate a script that contains the SQL for creating the triggers and also for creating the shadow CDC tables when Full Audit mode is enabled. Click the
Triggers
button when you add a capture registration, or select the
Triggers
menu option for a capture registration open in Resource Explorer. If you do not use these generated scripts to create the required tables and triggers, PowerExchange creates them when the extraction process runs.

0 COMMENTS

We’d like to hear from you!