This topic describes the schema migration operations supported in a data migration task in OceanBase Migration Service (OMS) Community Edition.
Background
A schema migration task migrates data objects such as tables, indexes, constraints, comments, and views from the source database to the destination database, and automatically filters out temporary tables. If the source database is not an OceanBase database, the data transmission service performs format conversion and encapsulation based on the syntax definition and standard of the type of the destination tenant of OceanBase Database and then replicates the data to the destination database.
After the precheck succeeds, the data migration task proceeds to the
If the schema migration task is in the
| Status | Supported Operation |
|---|---|
| Initializing | - |
| DDL statements obtained/Creating/Ready | View Creation Syntax |
| Completed/Completed (with conversion)/Skipped | Remove, and View Creation Syntax |
| Failed | Retry, Skip, Remove, View Details, and Modify Creation Syntax |
| Failed to obtain the DDL statement | Retry, Skip, View, and Modify Creation Syntax |
| Not Supported This state occurs when the destination database does not support the creation syntax used in the source database. |
Skip, Remove, View, and Modify Creation Syntax |
Prerequisites
You have created and started a data migration task. For more information, see the topic about creating a data migration task between the corresponding data sources in Data migration.
Limitations
The operations in this topic are applicable to schema migration tasks in the
Running orFailed state. If a schema migration task is in theCompleted state, you can only view the syntax used to create the target objects.A schema migration task can migrate tables, indexes, views, comments, and CHECK constraints, but not temporary tables, events, types, functions, or procedures.
Retry a single failed object or all failed objects
You can retry a single object or all objects in the
Retry a single failed object: On the
Schema Migration page, find the failed object and clickRetry in theActions column.Retry all failed objects
On the
Schema Migration page, clickRetry All Failed Objects in the upper-right corner.In the dialog box that appears, click
OK .
Skip a target object
You can skip a target object in the
Notice
- You must prepare a corresponding migration object in the destination database before you skip the target object. Otherwise, an error will occur in the Full Migration step.
- Once skipped, the target object will not be migrated in the current data migration task. Proceed with caution.
To skip a target object, perform the following operations:
On the
Schema Migration page, find the target object and clickSkip in theActions column.In the dialog box that appears, click
OK .
Remove a target object
You can remove a target object in the
Notice
Once removed, the target object will not be migrated in the current data migration task. Proceed with caution.
On the
Schema Migration page, find the target object and clickRemove in theActions column.In the dialog box that appears, click
OK .
Modify the creation syntax
You can modify the table creation syntax of a target object in the
On the
Schema Migration page, find the target object and chooseMore >Modify in theActions column.In the
Modify Table Creation Syntax dialog box, check the failed DDL statement and the error message, and modify the definition of the conversion result of the DDL statement.Click
Save .
View creation syntax
You can view the table creation syntax of all target objects except those in the
On the
View details of a failed object
You can view the error details of a target object in the
On the
Schema Migration page, find the target object and chooseMore >View Details in theActions column.In the
View Details dialog box, view the cause of the failure.