Data verification is a feature provided by OceanBase Migration Service (OMS) to compare data differences between the source and target databases. It supports data difference comparison between the source and target databases without service interruption, helping you promptly identify data inconsistency issues.
Verification types
OMS currently provides three verification types: full verification, row count verification, and incremental verification, which can meet the data verification needs of most scenarios.
Full verification: Achieves data verification by obtaining the full data from the source and target databases for text comparison. The verification result is accurate but time-consuming. Full verification is suitable for one-time verification of users' static data.
Row count verification: Achieves data verification by comparing the table row counts of the source and target databases. The verification speed is fast, but it cannot verify the actual data text. Row count verification is suitable for scenarios with extremely large data volumes and low sensitivity to data consistency.
Incremental verification: Achieves data verification by obtaining the incremental change data from the source and target databases and performing text comparison on the change data. The verification result is accurate but consumes more resources. Incremental verification is suitable for use during migration cutover as a supplementary verification for newly added change data after full verification is completed.
Support for verification tasks
Validation Task |
Full Verification |
Row count verification |
Incremental Verification |
|---|---|---|---|
| OceanBase MySQL Mode -> OceanBase MySQL Mode | Supported | Supported | Supported |
| OceanBase MySQL Mode -> MySQL | Supported | Supported | Supported |
| OceanBase Oracle Mode -> OceanBase Oracle Mode | Supported | Supported | Supported |
| OceanBase Oracle Mode -> Oracle | Supported | Supported | Supported |
| OceanBase MySQL Mode -> OceanBase Oracle Mode | Supported | Supported | Supported |
| OceanBase Oracle Mode -> OceanBase MySQL Mode | Supported | Supported | Supported |
| MySQL -> OceanBase MySQL Mode | Supported | Supported | Supported |
| Oracle -> OceanBase Oracle Mode | Supported | Supported | Supported |
| OceanBase MySQL Mode -> DB2 LUW | Supported | Supported | Not supported |
| OceanBase Oracle Mode -> DB2 LUW | Supported | Supported | Not supported |
| Oracle -> OceanBase MySQL Mode | Supported | Supported | Not supported |
| TiDB -> OceanBase MySQL Mode | Supported | Supported | Not supported |
| PostgreSQL -> OceanBase MySQL Mode | Supported | Supported | Not supported |
| PostgreSQL -> OceanBase Oracle Mode | Supported | Supported | Not supported |
| DB2 LUW -> OceanBase MySQL Mode | Supported | Supported | Not supported |
| DB2 LUW -> OceanBase Oracle Mode | Supported | Supported | Not supported |
| OceanBase Oracle Mode -> MySQL | Not supported | Supported | Not supported |
| Milvus -> OceanBase MySQL Mode | Supported | Supported | Not supported |
| SQL Server -> OceanBase MySQL Mode | Supported | Supported | Not supported |
| SQL Server -> OceanBase Oracle Mode | Supported | Supported | Not supported |
| Elasticsearch -> OceanBase MySQL Mode | Supported | Supported | Not supported |
| DM -> OceanBase MySQL Mode | Supported | Supported | Not supported |
| Dameng to OceanBase Oracle mode | Supported | Supported | Not supported |
Note
Data verification between the MySQL-compatible mode and Oracle-compatible mode of OceanBase Database requires OMS V4.4.0 or later.