Database Ingestion and Replication > Database Ingestion and Replication sources - preparation and usage > SAP HANA and SAP HANA Cloud sources
  

SAP HANA and SAP HANA Cloud sources

To use SAP HANA and SAP HANA Cloud sources in database ingestion and replication tasks, read about the available CDC methods. Then prepare the source database and review the usage considerations that pertain to the load types and CDC methods you plan to use.

SAP HANA change capture methods

Database Ingestion and Replication provides the log-based and trigger-based change capture methods for SAP HANA sources. Choose the method that's best for your environment.
Note:
You can configure tasks with the log-based CDC method only in the latest configuration wizard.
The following table compares the two methods:
Log-based
Trigger-based
Available for SAP HANA on premises, single tenant sources.
Available for SAP HANA on premises and cloud sources.
Captures change data from SAP HANA transaction logs.
Uses triggers to to get before images and after images of DML changes for each source table.
Stages captured data in tables in an SAP HANA or Oracle cache database, which is separate from the source database, before writing the data to the target.
Writes entries for the DML changes, including sequence values, to PKLOG and shadow _CDC tables in the source database.
Source tables must be COLUMN type tables.
Source tables can be ROW or COLUMN type tables.
Requires use of a CDC staging group, which is available in the latest configuration wizard only.
Doesn't work with CDC staging groups.
Each CDC staging group requires a separate connection and cache database.
Multiple database ingestion and replication jobs can use the same connection to perform trigger-based CDC.
Requires that certain database user permissions be granted to read the transaction logs.
-
The Secure Agent must have access to the online and archived transaction logs on the source system.
-
The source database must run in log mode normal.
-

Log-based change data capture for SAP HANA sources

For change data capture (CDC), Database Ingestion and Replication can use the SAP HANA transaction log. It also requires a database cache, separate from the source database, to form full rows for processing update and delete operations.
Note:
You can configure database ingestion and replication tasks for SAP HANA Log-based CDC only if the CDC staging feature and SAP HANA Log-based CDC are enabled for your organization. Contact Informatica Global Customer Support to ensure that your organization has access to these features.
For a DML change, the transaction log contains only the columns that changed and not the full row and primary key. Instead of the primary key, the log contains an identifier for each change along with the identifier of the row's last change. However, for update and delete operations, Database Ingestion and Replication requires the last full row prior to the current change to identify the corresponding change data in the transaction log. To fulfill this requirement, Database Ingestion and Replication assembles the last full row in a cache database. Then, when an update or delete occurs, it queries the cache to generate the full row.
The following image shows the high-level architecture of SAP HANA Log-based change capture:
  1. 1The Secure Agent receives a CDC job request.
  2. 2The Secure Agent performs an initial load of data from the source to the database cache.
  3. 3After the initial load completes, the Secure Agent starts reading change data from the transaction log.
  4. 4The Secure Agent uses the data from the transaction log and the data in the ROWCACHE table in the cache to generate full rows for the DML changes and then inserts the full rows back into the ROWCACHE table.
  5. 5The Secure Agent writes the full rows to the target.

SAP HANA source preparation

To use SAP HANA and SAP HANA Cloud sources in database ingestion and replication tasks, first prepare the source database and review the usage considerations that pertain to the load types and CDC methods you plan to use.

General tasks

For initial loads

For trigger-based CDC

For log-based CDC

Usage considerations

To use SAP HANA and SAP HANA Cloud sources in database ingestion and replication tasks, first prepare the source database and review the usage considerations that pertain to the load types and CDC methods you plan to use.

General usage considerations

Trigger-based CDC usage considerations

Log-based CDC usage considerations

Review the following guidelines before performing log-based CDC: