Lesson 1 of 3 Migration Services

Migrating Databases with AWS DMS and Schema Conversion

This lesson explains how AWS DMS moves databases to AWS with minimal downtime, and how schema conversion handles engine changes.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe how DMS replicates data.
  • Distinguish homogeneous from heterogeneous migrations.
  • Describe a typical cutover with full load and CDC.

AWS DMS

AWS Database Migration Service (DMS) replicates data from a source database, on premises, on EC2, in RDS or in another cloud, to a target such as RDS, Aurora, DynamoDB, S3, Redshift, OpenSearch or Kinesis, while the source keeps running. It runs on replication instances, optionally Multi-AZ, or as DMS Serverless, which sizes capacity automatically.

A task performs one of three kinds of migration. A full load copies the existing data once, which suits a one-off copy when the source can be stopped. A full load with change data capture (CDC) copies the existing data and then keeps applying changes made to the source, so the application can be switched to the target with only minutes of downtime. CDC only replicates ongoing changes, for continuous replication between databases. The following table summarises the types.

Migration typeUse for
Full loadOne-off copy
Full load with CDCCutover with minimal downtime
CDC onlyOngoing replication
Sort into groups

Which DMS migration type?

Exam skills 4.3.5 · 4.1.7

Choose the DMS migration type for each requirement.

Log in to try this activity Interactive activities are free with an account.

Homogeneous or heterogeneous

Whether the source and target use the same database engine decides how much work a migration needs. A homogeneous migration, such as MySQL to RDS for MySQL, needs no schema conversion: the schema, procedures and data types are the same, and DMS homogeneous migrations use the engine's native tools.

A heterogeneous migration, such as Oracle to Aurora PostgreSQL or SQL Server to MySQL, needs the schema converted first: tables, views, stored procedures and functions must be rewritten for the new engine. DMS Schema Conversion or the AWS Schema Conversion Tool (SCT) converts what it can automatically and flags what needs manual work, and DMS then moves the data. The following table summarises the two types.

MigrationExampleTools
HomogeneousMySQL to RDS for MySQLNo schema conversion; DMS homogeneous migrations use native tools
HeterogeneousOracle to Aurora PostgreSQL, SQL Server to MySQLDMS Schema Conversion or SCT convert schemas, views, procedures and functions, flagging manual work

Very large databases over slow links: SCT extraction agents load Snowball Edge, then DMS applies ongoing changes. Snowball Edge is offered only to existing customers since November 2025, so new projects load the bulk over a faster network link or AWS Data Transfer Terminal instead.

A typical cutover

A database migration with AWS DMS keeps the source running until a short, planned cutover. DMS first runs the full load, copying existing data, and then keeps change data capture (CDC) running until the target has caught up with ongoing changes; DMS data validation confirms that source and target match.

At cutover, writes to the source are stopped briefly while CDC applies the last changes, and the application is then pointed at the target. Throughout, the replication instance needs network connectivity to both databases, through a VPN or Direct Connect for on-premises sources, and enough memory and storage to cache changes while the full load runs.

The following diagram shows the migration on a timeline.

A database migration with AWS DMS on a timeline. The full load copies existing data while the application keeps writing to the source; change data capture then applies ongoing changes until the target catches up, and data validation confirms they match. At cutover, writes stop briefly, CDC applies the last changes and the application switches to the target.
The databases are illustrative. Downtime is limited to stopping writes and applying the last few changes.
Put in order

A DMS cutover

Exam skills 4.3.5

Put the stages of a low-downtime DMS migration in order.

Log in to try this activity Interactive activities are free with an account.
Worked example

Oracle to Aurora PostgreSQL with little downtime

A heterogeneous migration with minimal downtime proceeds through several steps. The following table identifies the tool used at each step.

StepTool
Convert the schema, views and stored proceduresAWS Schema Conversion Tool or DMS Schema Conversion
Copy existing data while Oracle stays liveAWS DMS full load
Keep copying changes until cutoverDMS change data capture (CDC)
Check the data matchesDMS data validation
Switch the applicationA short maintenance window once CDC has caught up

Downtime is limited to the final switch. Moving to Aurora PostgreSQL also removes Oracle licence costs, which is often the main business reason for this kind of heterogeneous migration.

Check yourself

What does change data capture (CDC) add to a DMS migration?

Show answer

Ongoing replication of changes after the full load, so the source stays in use until a short cutover.

Exam Tips

Remember for the exam

  • To migrate a database with minimal downtime, use DMS full load with CDC.
  • When the source and target engines differ, use schema conversion (SCT or DMS Schema Conversion) with DMS.
  • For continuous replication from on premises to AWS for analytics, use DMS CDC to S3 or Redshift.
  • To verify that data matches after migration, use DMS data validation.
  • For a cutover with minimal downtime, keep CDC running until the target catches up, then switch.