Migrating from MySQL to OceanBase works well for ANSI SQL workloads. Plan extra time for auto-increment semantics, charset collations, and stored procedure compatibility.
Phase 1: Discovery
- Inventory schemas, row counts, and peak QPS/TPS.
- Run
OMA(OceanBase Migration Assessment) against source dumps. - Flag incompatible DDL:
FULLTEXT, certainJSONfunctions, and engine-specific hints.
Phase 2: Schema conversion
Convert DDL with OMA or manual review. Replace ENGINE=InnoDB clauses. Validate index coverage on converted tables before data load.
Phase 3: Data sync
Use OMS (OceanBase Migration Service) for incremental CDC. Maintain a replication lag dashboard; target < 5s before cutover window.
Phase 4: Cutover
- Freeze writes on source (or enable read-only).
- Wait for OMS lag = 0.
- Run row-count and checksum validation queries.
- Point applications to OBProxy endpoint.
- Keep rollback DNS for 24 to 48 hours.