Step by steps AWS Change Data Capture from on premise SQL Server to AWS RDS SQL Server?

0

Hello, can someone provide me Step by steps AWS "Change Data Capture" from on premise SQL Server to AWS RDS SQL Server please?

(From start to finish with any detailed configurations included that I need to do so I can eventually test run it and have an exact copy of both DBs...kind of like a refresh of entire DB)

Thanks in advance.

asked a month ago77 views
1 Answer
0

To perform Change Data Capture (CDC) from an on-premises SQL Server to AWS RDS SQL Server, you can use a combination of native SQL Server tools and AWS Database Migration Service (DMS). Here's a step-by-step guide:

  1. Prepare the source (on-premises) SQL Server:

    • Enable CDC on the source database
    • Ensure the SQL Server Agent is running
    • Create a CDC capture job
  2. Prepare the target AWS RDS SQL Server:

    • Create an RDS instance for SQL Server
    • Configure security groups and network access
    • Set up RDP access to the RDS instance
  3. Perform initial data migration:

    • Take a full backup of the on-premises database
    • Upload the backup file to Amazon S3
    • Download the backup file to the RDS SQL Server instance
    • Restore the database on RDS using native SQL Server restore
  4. Set up AWS DMS for ongoing replication:

    • Create a DMS replication instance
    • Configure source and target endpoints
    • Create a migration task with CDC enabled
  5. Start the DMS task:

    • Begin the full load and CDC process
    • Monitor the migration progress
  6. Validate the data:

    • Use DMS data validation features
    • Perform application-level testing
  7. Cutover:

    • Stop writes to the source database
    • Allow DMS to catch up with any remaining changes
    • Switch your application to use the RDS SQL Server instance

This process combines the initial full load using native SQL Server backup and restore for optimal performance, followed by ongoing replication using AWS DMS. This hybrid approach provides the benefits of native tools for the initial migration and the flexibility of DMS for continuous replication.

Remember to configure the necessary permissions, network connectivity, and security settings throughout the process. Also, ensure that you have sufficient storage and compute resources on both the source and target systems to handle the migration workload.
Sources
Migrating an on-premises database to Amazon RDS Custom for SQL Server - Amazon Relational Database Service
Migrating SQL Server Databases to Amazon RDS for SQL Server - Database Migration Guide
Migrating SQL Server - AWS Prescriptive Guidance

profile picture
answered a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions