Migrating Databases with AWS DMS and Schema Conversion
This lesson explains how database migrations combine schema conversion, when engines differ, with data movement, ideally with minimal downtime.
Learning outcomes
After completing this lesson, you will be able to:
- Choose a DMS task type.
- Explain schema conversion for heterogeneous migrations.
- Describe how very large databases migrate with native bulk loads and CDC.
AWS DMS
AWS DMS runs three types of migration task. A full load copies the existing data once. A full load plus CDC copies the existing data and then keeps applying changes captured from the source's transaction log, so the target stays current until cutover. This is how databases migrate with minimal downtime. A CDC only task replicates ongoing changes from a chosen point, for example after a native bulk load. The following table summarises the migration types.
| Migration type | What it does |
|---|---|
| Full load | Copies existing data |
| Full load plus CDC | Copies, then keeps applying changes until cutover |
| CDC only | Replicates ongoing changes |
DMS runs on replication instances that the team sizes, or as DMS Serverless, which scales capacity automatically. A task connects a source and a target endpoint, whose credentials are held in Secrets Manager, and uses table mappings and transformations to select and reshape data. Data validation compares rows between source and target to prove the copy is complete. Targets include RDS, Aurora, DynamoDB, S3, Redshift, OpenSearch, DocumentDB and Kinesis, so DMS also feeds analytics and streaming systems.
The following diagram shows a full load plus CDC task on a timeline.

Database migration choices
Converting schemas
Whether schemas need converting depends on whether the engine changes. A heterogeneous migration moves to a different engine, such as Oracle to Aurora PostgreSQL, so schemas, views, stored procedures and functions must be rewritten. DMS Schema Conversion, or the desktop AWS Schema Conversion Tool (SCT), converts what it can automatically. Its assessment report estimates how much manual work remains, and generative AI helps convert complex code. A homogeneous migration keeps the same engine, so no conversion is needed. It uses the engine's native dump and restore or replication, or DMS homogeneous migrations for MySQL, PostgreSQL and MongoDB. The following table summarises the approaches.
| Migration | Approach |
|---|---|
| Heterogeneous (e.g. Oracle to Aurora PostgreSQL) | DMS Schema Conversion or SCT convert schemas, views, procedures and functions; the assessment report estimates manual effort; generative AI helps with the rest |
| Homogeneous | Native dump/restore or replication, or DMS homogeneous migrations (MySQL, PostgreSQL, MongoDB) |
Very large databases and cutover
Very large databases are often loaded first by the fastest bulk method and then kept current with DMS change data capture. Native methods are usually fastest: a MySQL database can be loaded into Aurora MySQL from a Percona XtraBackup stored in S3, or created from an RDS MySQL read replica, and native backups of other engines can be copied to S3 over Direct Connect with DataSync and restored. Historically, SCT data extraction agents could load Snowball Edge devices for databases behind very slow links, but Snowball Edge is closed to new customers, so new projects size the network path instead.
The final cutover is sequenced carefully. Writes to the source are stopped; CDC is allowed to catch up while its latency is monitored; the data is validated; and applications are switched to the target. The source is kept, ideally receiving changes through a reverse replication task, so that a rollback is possible without losing data written after cutover.
An Oracle to Aurora PostgreSQL migration task
After DMS Schema Conversion has created the target schema, a DMS task performs a full load followed by change data capture. The table mapping selects the application schema, excludes audit tables, and renames the schema to lower case as PostgreSQL convention expects:
{
"rules": [
{ "rule-type": "selection", "rule-id": "1", "rule-name": "include-sales",
"object-locator": { "schema-name": "SALES", "table-name": "%" }, "rule-action": "include" },
{ "rule-type": "selection", "rule-id": "2", "rule-name": "exclude-audit",
"object-locator": { "schema-name": "SALES", "table-name": "AUDIT_%" }, "rule-action": "exclude" },
{ "rule-type": "transformation", "rule-id": "3", "rule-name": "lowercase-schema",
"rule-target": "schema", "object-locator": { "schema-name": "SALES" },
"rule-action": "convert-lowercase" }
]
}During CDC, the CDCLatencySource and CDCLatencyTarget metrics show how far behind the target is; cutover waits until both are near zero after writes stop. Data validation in the task settings compares source and target rows and reports mismatches before anyone switches the application over.
When is schema conversion needed in a database migration?
Show answer
For heterogeneous migrations, such as Oracle to PostgreSQL, where schemas and code must be converted with DMS Schema Conversion or SCT. Homogeneous migrations need no conversion.
Exam Tips
Remember for the exam
- For a migration with minimal downtime, use DMS full load plus CDC.
- To estimate the effort of converting to a different engine, read the SCT or DMS Schema Conversion assessment report.
- To validate migrated data, use DMS data validation.
- For a huge database, bulk load with native backups through S3 and catch up with DMS CDC.
- To run DMS without sizing instances, use DMS Serverless.