An enterprise organization is migrating a legacy on-premises IBM Db2 LUW database to Amazon RDS for PostgreSQL. A solutions architect has used the AWS Schema Conversion Tool (SCT) to convert the database schema and apply it to the target RDS instance. The architect then creates an AWS Database Migration Service (DMS) replication task with replication type set to 'Full load and ongoing replication'. The full load phase completes successfully, but subsequent source database updates are not reflected in the target database. Which action must the architect perform on the source database to ensure that ongoing changes are successfully captured and replicated?
- AInstall the AWS SCT extractor agent on the source database server and enable direct transaction log forwarding to the DMS replication instance.
- Alter the tables on the source Db2 database to enable the DATA CAPTURE CHANGES attribute and ensure write-ahead log archiving is enabled.Answer
- CConfigure the target Amazon RDS for PostgreSQL database to enable logical replication parameters and set rds.logical_replication to 1.
- DModify the DMS task settings to increase the transaction log cache size and restart the task with validation enabled.
Answer
Alter the tables on the source Db2 database to enable the DATA CAPTURE CHANGES attribute and ensure write-ahead log archiving is enabled.
For an IBM Db2 LUW database to act as an AWS DMS source for ongoing replication, the tables being replicated must be modified with the DATA CAPTURE CHANGES attribute. This attribute instructs the engine to write additional change details to the transaction logs. Furthermore, log archiving must be turned on to ensure logs are not immediately deleted, allowing AWS DMS sufficient time to read them.
Step-by-Step Solution
Key Concept
AWS DMS Change Data Capture (CDC) requires specific engine-dependent logging configurations on the source database (such as supplemental logging, binary logging, or data capture changes) to enable transactional change extraction.