OceanBase Migration Service (OMS) supports data migration. You can use this feature to migrate data from other data sources to OceanBase Database in real time, or migrate data from OceanBase Database to other data sources.
Background Information
Data migration supports online migration. The OMS deployment server must be able to maintain network connectivity with both the source and target instances. You only need to configure the source and target data sources to be migrated, select the objects to migrate, and then start the data migration task.
OMS automatically executes the entire process of a data migration task, successfully replicating database objects, existing data, or incremental data from the source database (data tables) to the target database (data tables), and ensuring real-time incremental synchronization from the source database to the target database.
Supported Migration Types
For the scope of support for incremental DDL operations, see the documentation in the Supported DDL operations and limitations section.
Data migration between the MySQL-compatible mode and the Oracle-compatible mode of OceanBase Database requires OMS V4.4.0 or later. It supports only one-way migration and does not support reverse incremental migration.
data source |
Schema migration |
Full migration |
Incremental DML |
Incremental DDL |
Reverse Incremental |
|---|---|---|---|---|---|
| MySQL -> OceanBase MySQL Mode | Supported | Supported | Supported | Supported | Supported |
| Oracle-> OceanBase MySQL Mode | Supported | Supported | Supported | Not supported | Supported |
| TiDB -> OceanBase MySQL Mode | Supported | Supported | Supported | Not supported | Supported |
| PostgreSQL -> OceanBase MySQL Mode | Supported | Supported | Supported | Supported | Supported |
| PostgreSQL -> OceanBase Oracle Mode | Supported | Supported | Supported | Supported | Supported |
| DRDS -> OceanBase MySQL Mode | Not supported | Supported | Supported | Not supported | Not supported |
| Oracle -> OceanBase Oracle Mode | Supported | Supported | Supported | Supported | Supported |
| DB2 LUW -> OceanBase Oracle Mode | Supported | Supported | Supported | Supported | Supported |
| OceanBase Oracle Mode -> OceanBase Oracle Mode | Supported | Supported | Supported | Supported | Supported |
| OceanBase MySQL Mode -> OceanBase MySQL Mode | Supported | Supported | Supported | Supported | Supported |
| OceanBase MySQL Mode -> OceanBase Oracle Mode | Supported | Supported | Supported | Supported | Not supported |
| OceanBase Oracle Mode -> OceanBase MySQL Mode | Supported | Supported | Supported | Supported | Not supported |
| OceanBase Oracle Mode -> Oracle | Supported | Supported | Supported | Supported | Supported |
| OceanBase Oracle Mode -> MySQL | Not supported | Not supported | Supported | Not supported | Not supported |
| OceanBase MySQL Mode -> MySQL | Supported | Supported | Supported | Supported | Supported |
| OceanBase Oracle Mode -> DB2 LUW | Supported | Supported | Supported | Supported | Supported |
| DB2 LUW -> OceanBase MySQL Mode | Supported | Supported | Supported | Supported | Supported |
| OceanBase MySQL Mode -> DB2 LUW | Supported | Supported | Supported | Supported | Supported |
| Milvus -> OceanBase MySQL Mode | Supported | Supported | Supported | Not supported | Supported |
| OBSharding -> OceanBase MySQL Mode | Supported | Supported | Supported | Not supported | Not supported |
| DM -> OceanBase MySQL Mode | Supported | Supported | Supported | Not supported | Supported |
| Elasticsearch -> OceanBase MySQL Mode | Supported | Supported | Supported | Not supported | Supported |
| SQL Server -> OceanBase MySQL Mode | Supported | Supported | Supported | Supported | Supported |
| SQL Server -> OceanBase Oracle Mode | Supported | Supported | Supported | Supported | Supported |
| Dameng to OceanBase Oracle mode | Supported | Supported | Supported | Not supported | Supported |
Introduction to Migration Types
Migration Type |
Description |
|---|---|
| Schema migration | It is responsible for migrating data object definitions (such as tables, indexes, constraints, comments, and views) from the source database to the target database, automatically filtering out temporary tables. When the source database is not an OceanBase database, it automatically converts and assembles data types and SQL syntax according to the syntax definition standards of the target OceanBase tenant type, and then replicates them to the target database. |
| Full migration | Migrate the existing data from tables in the source database to the corresponding tables in the target database. On the Full Migration page, you can view information about Table Objects, Table Indexes, and Full migration performance. The status of full migration is marked as Completed only after both table objects and table indexes are migrated. On the Table Indexes page, click View Creation Syntax next to a target table object to view its index creation syntax. Combining full migration with incremental synchronization ensures eventual consistency between the target and source databases. If any objects fail during full migration, the specific failure reasons are displayed for you. |
| Incremental Synchronization | After an incremental synchronization task starts, it synchronizes the data that has changed in the source database (newly added, modified, or deleted) to the corresponding tables in the target database. As business writes continue into the source database, OMS initiates the incremental pull module before full data migration begins. This module pulls incremental update data from the source instance, parses and encapsulates it, and stores it in OMS. After full data migration is completed, OMS starts the incremental data replay module to retrieve incremental data from the incremental data pull module. The incremental data is then filtered, mapped, and transformed before being synchronized to the target instance. |
| Forward switchover | Forward switchover (an abstraction and standardization of the traditional system cutover process) does not involve switching business application connections. Instead, it is a task flow that needs to be executed for data migration tasks in OMS to support application switchover. You must complete all processes of forward switchover before switching application connections to the target. Forward switchover is an essential process for data migration. Through forward switchover, OMS ensures that the relevant work for forward data migration is completed, and you can then start the reverse incremental component based on your business requirements. The main tasks involved in forward switchover are as follows:
|
| Reverse Incremental | After the migration is complete, for business switchover scenarios, you can guide users to initiate an incremental synchronization task from the target database to the source database (i.e., in reverse direction) on OMS before completing the switchover from the business database. This will continuously stream back the change data generated in the target database after the switchover to the source business database in real time. |
Supported Task Types
OMS provides you with the functionality to migrate data online and synchronize incremental data in real time. The supported task types are as follows:
Migrate data from a MySQL database to the MySQL-compatible mode of OceanBase Database
Migrate data from the MySQL-compatible mode of OceanBase Database to a MySQL database
Migrate data from an Oracle database to the MySQL-compatible mode of OceanBase Database
Migrate data from the Oracle compatible mode of OceanBase Database to an Oracle database
Migrate data from an Oracle database to the Oracle compatible mode of OceanBase Database
Migrate data from a DB2 LUW database to the Oracle compatible mode of OceanBase Database
Migrate data from the Oracle compatible mode of OceanBase Database to a DB2 LUW database
Migrate data from a DB2 LUW database to the MySQL compatible mode of OceanBase Database
Migrate data from the MySQL compatible mode of OceanBase Database to a DB2 LUW database
Migrate data from a TiDB database to the MySQL-compatible mode of OceanBase Database
Migrate data from a PostgreSQL database to the MySQL-compatible mode of OceanBase Database
Migrate data from a PolarDB-X 1.0 database to the MySQL-compatible mode of OceanBase Database
Migrate data from a Milvus database to the MySQL-compatible mode of OceanBase Database
Migrate data from an OBSharding database to the MySQL-compatible mode of OceanBase Database
Migrate incremental data from the Oracle compatible mode of OceanBase Database to a MySQL database
Migrate data from an SQL Server database to the MySQL-compatible mode of OceanBase Database
Migrate data from an SQL Server database to the Oracle compatible mode of OceanBase Database
Migrate data from a DM database to the MySQL-compatible mode of OceanBase Database
Migrate data from a DM database to the Oracle compatible mode of OceanBase Database
Migrate data from Elasticsearch to the MySQL-compatible mode of OceanBase Database
Note
For version limitations, see Limitations.