An enterprise is migrating a self-managed, on-premises IBM DB2 LUW () database to an Amazon Aurora PostgreSQL-Compatible Edition cluster. The source database contains high-volume transactional tables, some of which include Character Large Object (CLOB) columns storing data up to in size. The migration strategy requires schema conversion using the AWS Schema Conversion Tool (SCT) and data replication with minimal downtime using AWS Database Migration Service (DMS) with continuous replication (CDC).
During a migration test run, the solutions architect observes the following issues:
1. The AWS DMS replication task successfully completes the Full Load phase but fails to replicate any subsequent transactions during the CDC phase, causing the replication task to stall.
2. Analysis of the target Aurora PostgreSQL database shows that several text fields originating from the CLOB columns are truncated.
3. The overall replication throughput is significantly lower than the target baseline.
Which combination of actions will resolve these issues while maintaining optimal replication performance?
- AConfigure the source IBM DB2 database to use circular logging, and append the db2UseCircularLog=true connection attribute to the AWS DMS source endpoint. Create a single AWS DMS replication task for all tables, and configure it to use Full LOB mode with InlineLobMaxSize set to to prevent CLOB truncation.
- BEnable supplemental logging on the source IBM DB2 database using the ALTER DATABASE ADD SUPPLEMENTAL LOG DATA command. Create a single AWS DMS replication task for all tables, configure it to use Limited LOB mode with LobMaxSize set to , and enable task validation to automatically rebuild and re-replicate any truncated LOBs.
- Verify that archive logging is enabled on the source IBM DB2 database by setting LOGARCHMETH1 to a valid destination, and run ALTER TABLE <table_name> DATA CAPTURE CHANGES for each table selected for replication. Create two separate AWS DMS replication tasks: one task for tables without LOB columns with LOB support disabled to maximize throughput, and a second task for tables containing CLOB columns configured with Limited LOB mode and LobMaxSize set to .Answer
- DVerify that archive logging is enabled on the source IBM DB2 database by setting LOGARCHMETH1 to a valid destination, and run ALTER TABLE <table_name> DATA CAPTURE CHANGES for all replicated tables. Create a single AWS DMS replication task for all tables, and configure it to use Full LOB mode to avoid truncation, as splitting tables into separate Full Load and CDC tasks is not supported for IBM DB2 sources.