validation - Best method to compare data between 2 different databases on separate servers -


we migrating data db2 database hadoop. migration running select * table1 on db2, exporting delimited file, taking file , putting hadoop. db2 , hadoop reside on different servers, different network. need run validation steps make sure data extracted db2 has entirely been imported hadoop. so, running select count(1) table1 on both systems not since have cases column values not imported due specific character issue(e.x. newline etc).

what best method programmatically test data identical on both systems?

p.s: both hadoop , db2 running on rhel, if linux specific tools helpful in process can included.

not sure if "best" way, approach be:

  1. as 1 of previous posters has suggested, export data hadoop delimited file , run diff against db2 import files. easiest method.

  2. write simple utility connects both databases simultaneously, fetches data 2 tables compare, , compares result set. having googled bit, seems there utilities out there - example http://www.dbsolo.com/datacomp.html.

hope helps.


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -