A solutions architect is migrating an on-premises Oracle database to an Amazon Aurora PostgreSQL-Compatible Edition DB cluster using AWS Database Migration Service (AWS DMS) and the AWS Schema Conversion Tool (AWS SCT). The solutions architect successfully converts the schema, creates the target tables, and configures an AWS DMS task with full load and Change Data Capture (CDC) enabled. The full load phase completes successfully, but the replication task immediately fails and stalls upon transitioning to the CDC phase. Which two actions should the solutions architect take to resolve this issue and resume replication? (Select two.)
- Enable minimal supplemental logging at the database level and add supplemental logging for primary keys on all tables selected for replication on the source Oracle database.Answer
- Configure the source Oracle database in ARCHIVELOG mode and ensure that archived redo logs are retained on the source server for a sufficient duration, such as at least 24 hours.Answer
- CEnable logical replication on the target Aurora PostgreSQL DB cluster by setting the rds.logical_replication parameter to 1 in the DB parameter group.
- DInstall and configure the AWS Schema Conversion Tool (AWS SCT) agent on an EC2 instance in the same VPC as the replication instance to capture transactions from the Oracle database log writer (LGWR).
- ECreate a new AWS DMS task with the replication type set to replicate data changes only, and configure the task to start from the current Oracle System Change Number (SCN) without enabling supplemental logging on the source.
Answer
Enable minimal supplemental logging at the database level and add supplemental logging for primary keys on all tables selected for replication on the source Oracle database, and configure the source Oracle database in ARCHIVELOG mode and ensure archived redo logs are retained on the source server for a sufficient duration.
The correct configurations involve setting the source Oracle database to ARCHIVELOG mode, retaining the archived redo logs for at least 24 hours, and enabling minimal supplemental logging at the database level along with primary key supplemental logging on the replicated tables. These steps ensure that the Oracle database writes the changed data values to its transaction logs and keeps them available for AWS DMS to read during the CDC phase.
Step-by-Step Solution
Key Concept
Replication log requirements for AWS DMS CDC from an Oracle source