AWS, Cloud Computing

6 Mins Read

Database Migration Service

AWS Database Migration service allows AWS customers to easily migrate Production databases to AWS with minimal downtime. It is currently available for preview in US East (N. Virginia) region.Setting up Database Migration toll is easy and quick it takes about 10-15 minutes to setup.During migration of databases, sources database remains operationally active. DMS supports homogeneous migrations and also heterogeneous migrations of databases like Oracle to Amazon Aurora and MySQL to PostgreSQL. AWS database migration service can migrate data using commercial and open-sources databases.

Why AWS Database Migration Service instead of  own self-managed replication solution.

 AWS Database Migration Service is easy and faster to setup and use. Replication tasks can be set-up   in minutes instead of hours or days, Instead of the self-managed replication solutions that have to be installed and configured. AWS Database Migration Service monitors replication tasks, network or host failures, and automatically provisions a host replacement in case of failures that can’t be repaired.

DMS Schema conversion tool for Dissimilar Engines:

Usually Heterogeneous migrations are very complex and time consuming to overcome the problems caused during Heterogeneous migrations. AWS has come up with database migration Schema Conversion Tool which makes heterogeneous migrations more simpler and easier by automatically converting entire database schema and majority of custom code of the source database to a format compatible with target database.it converts sources database schema and code.The changes to the source database that occur during the migration process are automatically replicated to the target    Below Architecture Diagram gives an idea of how Schema conversion Tool works for Dissimilar engines

 DMS Migration with Dissimilar engines Using Schema conversion Tool.

dms123

 

 

Database Migration between Dissimilar engines with different Availability Zones.

In Database Migration Service we are creating Replication Instance which is connected with Source and Target Endpoints then creating Replication Task once Replication instance is created automatically Migration will be started once it is done the task will be in Stopped state.Here is a detailed tutorial on how to achieve the Database Migration.

Step 1: Creating DMS Replication Instance

1

 

 

Step 2: Creating DMS Endpoints                                                                                 

4

 

 

8

9

20

10

Step 3: Creating DMS Replication Task                                                                                               

screenshot-console aws amazon com 2016-01-10 22-55-35

 

Database migration features:

1) Automated and continuous data replication.

2) Self-healing and Resilient.

1) Automated and continuous data replication: once the database migration process begins the data capture capability of  DMS continuously captures  all data changes from sources database to target it minimizes downtime by enabling you to keep the source database operational during the migration AWS Database Migration Service can perform continuous replication of data from one database to another and between homogeneous or heterogeneous databases.

2) Self-healing and Resilient: AWS Database Migration Service makes it easy to recover from network and host failures. It continually monitors source and target databases, network connectivity, and the infrastructure running the replication process and issues alerts when a failure occurs.

Benefits:

Sources and targets supported by AWS Database Migration Service
AWS Database Migration Service supports both homogeneous and heterogeneous Source and targets.Supported databases  include:

Pricing:                                                                      

In  AWS Database Migration Services. We only pay for the compute resources used during the migration process (Database migration instance that moves your data from your source database to your target database).

WRITTEN BY CloudThat

SHARE

Comments

  1. Dhanasekar

    Aug 15, 2018

    Reply

    Hi Ramya,

    Am also getting the below error, while connecting source database which is on on-premise.

    errType=ERROR_RESPONSE, status=1022307, errMessage=ORA-12170: TNS:Connect timeout occurred OCI error., errDetails=

    so please help me to fix the issue,

    Regards,
    Dhanasekar

    • Ahsan

      Feb 18, 2019

      Reply

      I am also stuck on the same error.
      Doesn’t looklike, you can use this service with on premise database.
      Lookslike, you need to create a oracle database in rds and then do export/import data from on premise to rds and then use this service, if this true then, it makes DMS useless.
      Can someone point to the correct solution?

    • Sharif Syed

      Sep 1, 2021

      Reply

      I am also facing same Issue, Any solution for this please let me know

  2. varun

    Jan 22, 2018

    Reply

    superb explination of migration database , thanks Ramya

  3. Riana Mitt

    Jan 2, 2018

    Reply

    Very well explained post. Thanks a lot for sharing. eCommerce Data Migration services are very typical one’s and takes a lots of time.

  4. Laxman

    Dec 5, 2017

    Reply

    Hi Ramya,

    While connecting to onprimise Oracle DB in source point i am getting the following error
    errType=ERROR_RESPONSE, status=1022307, errMessage=ORA-12170: TNS:Connect timeout occurred OCI error., errDetails=

    which is not geeting reslved. can u let me know the steps to resolve this issue.

    Thanks,
    Laxman Pawar

    • Dhanasekar

      Aug 19, 2018

      Reply

      Am also getting the same error, did anybody got any fix for that?

      Regards.
      Dhanasekar

      • Sharif Syed

        Sep 1, 2021

        Reply

        I am also facing same Issue, Any solution for this please let me know

        Thanks,
        Sharif Syed

    • Sharif Syed

      Sep 1, 2021

      Reply

      I am also facing same Issue, Any solution for this please let me know

      Thanks,
      Sharif Syed

  5. SUNIL

    Oct 24, 2017

    Reply

    Great notes.. could you please mention about pre-req steps required ..like how Amazon connects to On-premise Database ..what all steps involved before DMS kickedoff..Thanks

  6. Click to Comment

Get The Most Out Of Us

Our support doesn't end here. We have monthly newsletters, study guides, practice questions, and more to assist you in upgrading your cloud career. Subscribe to get them all!