Data validation is a feature provided by OceanBase Migration Service (OMS) to compare the data differences between the source and target databases. This feature allows you to compare the data differences between the source and target databases without interrupting services, helping you promptly identify data inconsistencies.
Validation types
OMS supports three validation types: full validation, row count validation, and incremental validation, which can meet most data validation requirements.
Full validation: Full validation involves comparing the full data of the source and target databases to verify the data. The validation results are accurate but the process is time-consuming. Full validation is suitable for one-time validation on static data.
Row count validation: Row count validation involves comparing the number of rows in the source and target databases to verify the data. The validation process is fast, but it cannot verify the actual data text. Row count validation is suitable for scenarios with a large amount of data where data consistency is not highly sensitive.
Incremental validation: Incremental validation involves comparing the incremental change data of the source and target databases to verify the data. The validation results are accurate, but the resource consumption is high. Incremental validation is suitable for supplementary validation of subsequent change data after full validation during the migration switchover.
Validation task support
| Validation task | Full validation | Row count validation | Incremental validation |
|---|---|---|---|
| OB_MySQL -> OB_MySQL | Supported | Supported | Supported |
| OB_MySQL -> MySQL | Supported | Supported | Supported |
| OB_Oracle -> OB_Oracle | Supported | Supported | Supported |
| OB_Oracle -> Oracle | Supported | Supported | Supported |
| MySQL -> OB_MySQL | Supported | Supported | Supported |
| Oracle -> OB_Oracle | Supported | Supported | Supported |
| OBMySQL -> DB2 LUW | Supported | Supported | Not supported |
| OBOracle -> DB2 LUW | Supported | Supported | Not supported |
| Oracle -> OBMySQL | Supported | Supported | Not supported |
| TiDB -> OBMySQL | Supported | Supported | Not supported |
| PostgreSQL -> OBMySQL | Supported | Supported | Not supported |
| PostgreSQL -> OBOracle | Supported | Supported | Not supported |
| DB2 LUW -> OBMySQL | Supported | Supported | Not supported |
| DB2 LUW -> OBOracle | Supported | Supported | Not supported |
| OB_Oracle -> MySQL | Not supported | Supported | Not supported |