An enterprise is planning to migrate its legacy on-premises Oracle database to an Amazon Aurora PostgreSQL-Compatible DB cluster. The database contains complex PL/SQL packages with custom functions that do not have direct equivalents in PostgreSQL. The migration must minimize downtime for the dependent applications. Which of the following represents the correct sequence of steps to successfully perform this migration while ensuring application compatibility and data consistency?
- Convert the database schema and PL/SQL code using the AWS Schema Conversion Tool (SCT), apply the AWS SCT extension pack to the target Aurora PostgreSQL DB cluster, enable supplemental logging on the source Oracle database, and run an AWS DMS replication task configured for full load and Change Data Capture (CDC).Answer
- BConvert the database schema and PL/SQL code using the AWS Schema Conversion Tool (SCT), apply the AWS SCT extension pack to the target Aurora PostgreSQL DB cluster, and run an AWS DMS replication task configured for full load and Change Data Capture (CDC), relying on default Oracle logging configurations to capture ongoing transactional changes.
- CClassify the migration as a database replatforming path, bypass the AWS Schema Conversion Tool (SCT) by running the native pg_restore utility on the target Aurora PostgreSQL DB cluster, and configure an AWS DMS replication task with Change Data Capture (CDC) to capture ongoing transactions.
- DConvert the database schema and PL/SQL code using the AWS Schema Conversion Tool (SCT), apply the AWS SCT extension pack to the target Aurora PostgreSQL DB cluster, configure AWS DMS to write full load data to the primary DB instance and CDC updates to the Aurora Replicas to optimize performance, and enable supplemental logging on the source database.
Answer
The correct answer states that the schema and code must be converted using AWS SCT, the SCT extension pack applied to the target Aurora DB cluster, supplemental logging enabled on the source Oracle database, and an AWS DMS replication task run with full load and Change Data Capture (CDC).
Converting the schema and code via the AWS Schema Conversion Tool (SCT) and applying the extension pack ensures that proprietary PL/SQL functions are emulated correctly in PostgreSQL. Enabling supplemental logging on the source Oracle database is a mandatory requirement for AWS DMS to read redo and archive logs during Change Data Capture (CDC). Running a DMS task with full load and CDC ensures that the target database is fully populated and kept in sync, minimizing cutover downtime.
Step-by-Step Solution
Key Concept
Heterogeneous database migration sequence using AWS SCT and AWS DMS with Change Data Capture (CDC)