Follow dba-ninja.com

Subscribe to RSS feed  Follow @jackvamvas - Twitter

*Use the Comments section for questions

dba-ninja.com Links

Dba_db2_button

Sqlserver_dba_button

How to enable data validation for AWS DMS database migration task

17 June,2022 by Rambler

A question that comes up is how to validate data migrated between two databases using  the AWS Data Migration Service (DMS)  . 

 

AWS DMS supports a validation process as part of the Database migration task set up . It is possible to view the data validation through the console , AWS CLI or the AWS DMS API. 

 

If you're using the AWS console - there is an "Enable validation"  configurable as  Create\Modify Database migration Task . 

Dms_data_validation

 

 

You may find that you've enabled Validation - rerun the Database Migration Task and see this entry in the CloudWatch logs

 

2022-06-17T15:20:14 [VALIDATOR_EXT ]I: No primary/unique key found, skipping the validation for Table : myTable (table_partitioner.c:275)

 

The data validator won't work without a Primary Key on the source table. The DMS  database migration task will migrate the Primary Key - if it exists - to the target table during the migration process. The data validator utilises the Primary Key 

Go back and add a Primary Key to the source tables - rerun the load and this time the data validator will run as expected.  Once the task is completed - you can monitor the CloudWatch Logs .

You can also go into the Table Statistics section choose the table(s) and you should now see some extra information related to Validation

Dms_table_statistics

 

 


Author: Rambler (http://www.dba-ninja.com)


Share:

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment on How to enable data validation for AWS DMS database migration task


dba-ninja.com