简体   繁体   English

验证大量数据的副本

[英]Validating copy of large amount data

I have written an algorithm which basically copies large amount of data from Oracle database to mysql database. 我编写了一种算法,该算法基本上将大量数据从Oracle数据库复制到mysql数据库。 Copying is done by column date. 复制是按列日期完成的。 It takes about one day to copy items which I need. 复制我需要的物品大约需要一天的时间。 It copies about 5 000 000 items. 它复制了约500万个项目。

The question is, is there a possibility to check if the data copied to mysql database is valid and is exactly the same. 问题是,是否有可能检查复制到mysql数据库的数据是否有效并且完全相同。 Checking only the count of items does not solve this problem, because there was noticed some items with null value instead of some values presented in oracle databases. 仅检查项目计数不能解决此问题,因为已经注意到某些项目具有空值,而不是oracle数据库中提供的某些值。

Either you use a third program, where you can access both dbs and compare them, or you set up a gateway between oracle amd mysql for comparing all or selected tables and rows. 您可以使用第三个程序来访问两个数据库并进行比较,或者在oracle amd mysql和mysql之间建立一个网关,以比较所有或选定的表和行。
MySQL- Oracle Enterprise Gateway Integration Guide MySQL- Oracle企业网关集成指南

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM