Skip to main content

Introduction to database comparison

The NineData database comparison function supports the consistency comparison between two data sources. In case of inconsistency, it also generates SQL job to correct the inconsistency. User can execute the SQL job on the target side to achieve data and schema consistency.

Features

  • Schema Comparison : Schema comparison is the comparison of metadata (MetaData), which is used to compare whether the definitions of objects in the two databases are consistent. For example, compare whether the columns, indexes, and constraints (primary keys, foreign keys, and constraints) in the two tables are the same.

  • Data Comparison : Data comparison is the comparison of user data (UserData), which is used to compare whether the data in the two databases are consistent. The feature is usually for purpose of data consistency, in case such as, backup and recovery, data migration, and data synchronization.

Supported Datasources

Source DatabaseTarget DatabaseData Comp.Schema Comp.Incre Comp.
MySQLMySQL✔️✔️✔️
Oracle✔️--
PostgreSQL✔️--
TiDB✔️--
KingBase✔️-✔️
open_gauss✔️--
GaussDB✔️--
DWS✔️--
ClickHouse✔️--
ADB PostgreSQL---
Greenplum✔️--
Redshift---
Doris✔️--
SelectDB✔️--
StarRocks✔️--
SingleStore✔️--
Elasticsearch---
Kafka---
Hive✔️--
Database Group✔️--
datahub✔️--
OracleOracle✔️✔️-
MySQL✔️--
PostgreSQL✔️--
TiDB✔️--
KingBase✔️-✔️
GaussDB✔️--
DWS✔️--
ClickHouse✔️--
ADB PostgreSQL✔️--
OB-Oracle✔️✔️-
Greenplum✔️--
Doris✔️--
SelectDB✔️--
StarRocks✔️--
SingleStore✔️--
Kafka---
Hive✔️--
datahub✔️--
PostgreSQLPostgreSQL✔️✔️-
MySQL✔️--
Oracle✔️--
TiDB✔️--
GaussDB✔️--
DWS✔️--
ClickHouse✔️--
ADB PostgreSQL✔️--
Greenplum✔️--
Doris✔️--
SelectDB✔️--
StarRocks✔️--
SingleStore✔️--
Sybase✔️--
Kafka---
Hive✔️--
SQL ServerSQL Server✔️✔️-
MySQL✔️--
PostgreSQL✔️--
Doris✔️--
StarRocks✔️--
TDSQL MySQLTDSQL MySQL✔️--
TiDBTiDB✔️--
MySQL✔️--
Oracle✔️--
PostgreSQL✔️--
ClickHouse✔️--
ADB PostgreSQL✔️--
Greenplum✔️--
Hive✔️--
DamengDameng✔️--
KingBaseKingBase✔️✔️-
MySQL✔️--
Oracle✔️--
PostgreSQL✔️✔️-
open_gaussopen_gauss✔️--
MySQL✔️--
Oracle✔️--
PostgreSQL✔️--
GaussDB✔️--
Doris✔️--
SelectDB✔️--
StarRocks✔️--
GaussDBGaussDB✔️--
MySQL✔️--
Oracle✔️--
PostgreSQL✔️--
open_gauss✔️--
DWS✔️--
Doris✔️--
SelectDB✔️--
StarRocks✔️--
DWSDWS✔️--
MySQL✔️--
Oracle✔️--
PostgreSQL✔️--
GaussDB✔️--
Doris✔️--
SelectDB✔️--
StarRocks✔️--
ClickHouseClickHouse✔️--
MySQL✔️--
Oracle✔️--
PostgreSQL✔️--
Greenplum✔️--
Doris✔️--
SelectDB✔️--
StarRocks✔️--
ADB PostgreSQLADB PostgreSQL✔️--
MySQL✔️--
Oracle✔️--
PostgreSQL✔️--
TiDB✔️--
OB-MySQLOB-MySQL✔️--
MySQL✔️--
StarRocks✔️--
OB-OracleOB-Oracle✔️--
StarRocks✔️--
GreenplumGreenplum✔️--
MySQL✔️--
Oracle✔️--
PostgreSQL✔️--
TiDB✔️--
ClickHouse✔️--
Doris✔️--
SelectDB✔️--
StarRocks✔️--
SingleStore✔️--
Hive✔️--
SelectDBSelectDB✔️--
MySQL✔️--
Oracle✔️--
PostgreSQL✔️--
ClickHouse✔️--
Greenplum✔️--
Doris✔️--
StarRocks✔️--
SingleStore✔️--
StarRocksStarRocks✔️--
MySQL✔️--
Oracle✔️--
PostgreSQL✔️--
ClickHouse✔️--
Greenplum✔️--
Doris✔️--
SelectDB✔️--
SingleStore✔️--
SingleStoreSingleStore✔️--
MySQL✔️--
Oracle✔️--
PostgreSQL✔️--
ClickHouse✔️--
Greenplum✔️--
Doris✔️--
SelectDB✔️--
StarRocks✔️--
DB2DB2✔️--
RedisRedis✔️--
MongoDBMongoDB✔️✔️-
SybaseSybase✔️--
PostgreSQL✔️--
KafkaKafka---
MySQL---
ClickHouse---
HiveHive---
MySQL✔️--
Oracle✔️--
PostgreSQL✔️--
TiDB✔️--
Greenplum✔️--
Database GroupDatabase Group✔️--
MySQL✔️--

Use case

Use caseDescription
Database schema consistency across departments and regionsWhen enterprise users manage multi-projects or multiple databases of the same type, due to the dispersion or independence of organizations or teams, changes in database structures and objects are not synchronized to all data centers or sub-projects in time, and application errors are reported only after they are discovered. NineData Schema Comparison service regularly compares the metadata between the source and target instances to ensure the consistency of the data structure of all databases, and provides repair suggestions to avoid business interruption.
Cross-region, cross-cloud data verificationIn order to achieve low-latency reading and writing at the nearest location, and the ability of databases to be active and reused, enterprises usually build data replication and synchronization between different regions or cloud platforms. However, due to the limitations of the system architecture and other factors, data inconsistency may occur, so periodic data verification is essential. In the case of a huge amount of data, full comparison is expensive and inefficient. NineData Data and schema comparison service is based on group mixed inspection and fast hashing , which provides efficient data consistency check. At the same time, for inconsistencies, NineData provides SQL change scripts, which can be executed on the target side to correct the inconsistency.
Integrity of data during ELT/ETL processBoth classic ETL and ELT in the cloud-native era require data from multiple data sources to be imported into a data warehouse to support OLAP and BI analysis. However, the source and destination are usually heterogeneous, and data consistency may be affected during data aggregation and schema transformation. NineData Data and schema comparison service supports data comparison between homogeneous and heterogeneous databases, which greatly reduces the risk of data inconsistency in the process.