OceanBase
English日本語简体中文
Docs Home
Products
Integrations
Release Notes

Databases

OceanBase DatabaseOceanBase AI DatabaseOceanBase Cloud OceanSeekOceanBase Best Practices

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog ServiceOceanBase DataPilotOceanBase OAgent

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Databases

OceanBase DatabaseOceanBase AI DatabaseOceanBase Cloud OceanSeekOceanBase Best Practices

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog ServiceOceanBase DataPilotOceanBase OAgent
OceanBase DatabaseOceanBase Cloud ToolsConnectors and MiddlewareLifecycle Support Policy

OceanBase Migration Service

V4.4.0Enterprise Edition
  • OMS Documentation
  • OMS Introduction
    • Overview of OMS
    • Terms
    • OMS HA
    • Principles of Store
    • Principles of Full-Import and Incr-Sync
    • Data verification principles
    • Architecture
      • Overview
      • Hierarchical functional system
      • Basic components
    • OMS Oracle full migration design and impact
    • Limitations
  • Quick Start
    • Data migration process
    • Data synchronization process
  • Deploy OMS
    • Deployment types
    • System and network requirements
    • Memory and disk requirements
    • Environment preparations
    • Deploy OMS on a single node
    • Deploy OMS on multiple nodes in a single region
    • Deploy OMS on multiple nodes in multiple regions
    • Scale out
    • Scale down deployment
    • Check the deployment
    • Deploy a time-series database (Optional)
  • OMS console
    • Log in to the OMS console
    • Overview
    • User center
      • Configure user information
      • Change your login password
      • Log out
  • Data migration
    • Data Migration Overview
    • Migrate data from a MySQL database to the MySQL-compatible mode of OceanBase Database
    • Migrate data from an OceanBase database in MySQL-compatible mode to a MySQL database
    • Migrate data from an Oracle database to the MySQL compatible mode of OceanBase Database
    • Migrate data from an OceanBase database in Oracle compatible mode to an Oracle database
    • Migrate data from an Oracle database to OceanBase Database in Oracle compatible mode
    • Migrate data from a DB2 LUW database to an Oracle-compatible tenant of OceanBase Database
    • Migrate data from an Oracle-compatible tenant of OceanBase Database to a DB2 LUW database
    • Migrate data from a DB2 LUW database to a MySQL-compatible tenant of OceanBase Database
    • Migrate data from a MySQL-compatible tenant of OceanBase Database to a DB2 LUW database
    • Migrate data between OceanBase databases of the same tenant type
    • Configure a bidirectional synchronization task
    • Migrate data from a TiDB database to a MySQL-compatible tenant of OceanBase Database
    • Migrate data from a PostgreSQL database to the Oracle 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 a MySQL-compatible tenant of OceanBase Database
    • Migrate data from a Milvus database to a MySQL-compatible tenant of OceanBase Database
    • Migrate data from an OBSharding database to a MySQL-compatible tenant of OceanBase Database
    • Migrate incremental data from an Oracle-compatible tenant of OceanBase Database to a MySQL database
    • Migrate data from a Doris database to the MySQL-compatible mode of OceanBase Database
    • Migrate data from a DM database to an OceanBase database in MySQL-compatible mode
    • Migrate data from DM Database to OceanBase Database in Oracle compatible mode
    • Migrate data from Elasticsearch to OceanBase Database in MySQL-compatible mode
    • Migrate data from a SQL Server database to OceanBase Database in MySQL-compatible mode
    • Migrate data from an SQL Server database to OceanBase Database in Oracle compatible mode
    • Manage data migration tasks
      • View details of a data migration task
      • Rename a data migration task
      • View and modify migration objects
      • Use tags to Manage data migration tasks
      • Perform batch operations on data migration tasks
      • Download and import settings of migration objects
      • View and modify migration parameters
      • Download a conflict log file
      • Start and pause a data migration task
      • End and delete a data migration task
    • Supported DDL operations and limits for synchronization
      • Synchronize DDL operations from a MySQL database to a MySQL-compatible tenant of OceanBase Database
        • Overview of DDL synchronization from MySQL to OceanBase Database's MySQL compatible mode
        • CREATE TABLE
          • Create a table
          • Create a column
          • Create indexes or constraints
          • Create partitions
        • Data type conversion
        • ALTER TABLE
          • Modify tables
          • Operations on columns
          • Operations on constraints and indexes
          • Partition operations
        • TRUNCATE TABLE
        • RENAME TABLE
        • DROP TABLE
        • CREATE INDEX
        • DROP INDEX
        • DDL incompatibilities between a MySQL database and a MySQL-compatible tenant of OceanBase Database
          • Overview
          • Incompatibilities of the CREATE TABLE statement
            • Incompatibilities of CREATE TABLE
            • Column types that are supported to create indexes or constraints
          • Incompatibilities of the ALTER TABLE statement
            • Incompatibilities of ALTER TABLE
            • Change the type of a constrained column
            • Change the type of an unconstrained column
            • Change the length of a constrained column
            • Change the length of an unconstrained column
            • Delete a constrained column
          • Incompatibilities of DROP INDEX operations
      • Synchronize DDL operations from the MySQL compatible mode of OceanBase Database to a MySQL database
      • DDL operations for synchronizing data from an Oracle database to an Oracle-compatible tenant of OceanBase Database
        • Overview of DDL synchronization from Oracle to OceanBase Database Oracle compatible mode
        • CREATE TABLE
          • Overview for CREATE TABLE
          • Create a relational table
            • Create a relational table
            • Define columns of a relational table
          • Virtual columns
          • Regular columns
          • Create partitions
            • Overview for creating partitions
            • Partitioning
            • Subpartitioning
            • Composite partitioning
            • Custom partitioning
            • Subpartition templates
          • Constraints
            • Overview
            • Inline constraints
            • Out-of-line constraints
        • CREATE INDEX
          • Overview
          • Regular table indexes
        • ALTER TABLE
          • Overview
          • Modify, drop, and add table attributes
          • Column attribute management
            • Modify, drop, and add column attributes
            • Rename a column
            • Add columns and column attributes
            • Modify column attributes
            • Drop columns
          • Modify, drop, and add constraints
          • Partition management
            • Modify, drop, and add partitions
            • Drop a partition
            • Drop a subpartition
            • Add partitions and subpartitions
            • Modify partitions
            • Drop partition data
        • DROP TABLE
        • RENAME OBJECT
        • TRUNCATE TABLE
        • DROP INDEX
        • DDL incompatibilities between an Oracle database and an Oracle-compatible tenant of OceanBase Database
          • Overview
          • Incompatibilities of CREATE TABLE
          • Incompatibilities in table modification operations
            • Incompatibilities of ALTER TABLE
            • Change the type of a constrained column
            • Change the type of an unconstrained column
            • Change the length of a constrained column
            • Change the length of an unconstrained column
      • Synchronize DDL operations from the Oracle compatible mode of OceanBase Database to an Oracle database
      • Synchronize DDL operations from a DB2 LUW database to an Oracle-compatible tenant of OceanBase Database
      • Synchronize DDL operations from the Oracle compatible mode of OceanBase Database to a DB2 LUW database
      • Synchronize DDL operations from a DB2 LUW database to a MySQL-compatible tenant of OceanBase Database
      • Synchronize DDL operations from the MySQL compatible mode of OceanBase Database to a DB2 LUW database
      • Synchronize DDL operations between MySQL-compatible tenants of OceanBase Database
      • Synchronize DDL operations between Oracle-compatible tenants of OceanBase Database
      • Synchronize DDL operations from a PostgreSQL database to the MySQL compatible mode of OceanBase Database
      • Synchronize DDL operations from a PostgreSQL database to the Oracle compatible mode of OceanBase Database
      • Synchronize DDL operations from an OBSharding database to the Oracle compatible mode of OceanBase Database
      • Synchronize DDL operations from an SQL Server database to an OceanBase database
  • Data synchronization
    • Data synchronization overview
    • Synchronize data from OceanBase Database to a Kafka instance
    • Synchronize data from OceanBase Database to a RocketMQ instance
    • Synchronize data from OceanBase Database to a DataHub instance
    • Synchronize data from OceanBase Database to Swift
    • Synchronize data from an ODP logical table to a physical table in a MySQL-compatible tenant of OceanBase Database
    • Synchronize data from an ODP logical table to a DataHub instance
    • Synchronize data from an IDB logical table to a MySQL-compatible tenant of OceanBase Database
    • Synchronize data from an IDB logical table to a DataHub instance
    • Synchronize data from a MySQL database to a DataHub instance
    • Synchronize data from an Oracle database to a DataHub instance
    • Synchronize data from an OBSharding database to Kafka
    • Manage data synchronization tasks
      • View details of a data synchronization task
      • Change the name of a data synchronization task
      • View and modify synchronization objects
      • Use tags to Manage data synchronization tasks
      • Perform batch operations on data synchronization tasks
      • Download and import the settings of synchronization objects
      • View and modify the parameter configurations of a data synchronization task
      • Start and pause a data synchronization task
      • End and delete a data synchronization task
  • Data validation
    • Data verification overview
    • Create a data validation task
    • Manage data validation tasks
      • View details of a data validation task
      • Change the name of a data validation task
      • View and modify validation objects
      • View and modify verification parameters
      • Manage data validation tasks by using tags
      • Import validation objects
      • Start, stop, and resume a data validation task
      • Clone a data validation task
      • Delete a data validation task
  • Create and manage data sources
    • Create data sources
      • Create an OceanBase data source
        • Create a physical OceanBase data source
        • Create an ODP data source
        • Create an IDB data source
        • Create a public cloud OceanBase data source
        • Create a standalone OceanBase data source
      • Create a MySQL data source
      • Create an Oracle data source
      • Create a TiDB data source
      • Create a Milvus data source
      • Create a Kafka data source
      • Create a RocketMQ data source
      • Create a DataHub data source
      • Create a Swift data source
      • Create a DB2 LUW data source
      • Create a PostgreSQL data source
      • Create an SQL Server data source
      • Create a PolarDB-X 1.0 data source
      • Create an OBSharding data source
      • Create a DM data source
      • Create a Doris data source
      • Create an Elasticsearch data source
    • Manage data sources
      • View data source information
      • Copy a data source
      • Edit a data source
      • Delete a data source
    • Create a database user
    • User privileges
    • Enable binlogs for the MySQL database
    • Minimum privileges required when an Oracle database serves as the source
  • OPS & Monitoring
    • O&M overview
    • Go to the overview page
    • Server
      • View server information
      • Add a server
      • Delete a server
      • Update the quota
      • View server logs
      • Manage resource groups
    • Components
      • Store
        • Add a Store component
        • View details of a Store component
        • Update the configurations of a Store component
        • Start and pause a Store component
        • Delete a Store component
      • Incr-Sync
        • View details of an Incr-Sync component
        • Start and pause an Incr-Sync component
        • Migrate an Incr-Sync component
        • Update the configurations of an Incr-Sync component
        • Batch O&M
        • Delete an Incr-Sync component
      • Full-Import
        • View details of a Full-Import component
        • Pause a Full-Import component
        • Rerun and resume a Full-Import component
        • Update the configurations of a Full-Import component
        • Delete a Full-Import component
      • Full-Verification
        • View details of a Full-Verification component
        • Pause a Full-Verification component
        • Rerun and resume a Full-Verification component
        • Update the configurations of a Full-Verification component
      • Incr-Verification
        • View details of the Incr-Verification component
        • Pause an Incr-Verification component
        • Rerun and resume an Incr-Verification component
        • Update an Incr-Verification component
      • Row-Verification
        • View details of a Row-Verification component
    • O&M Task
      • View O&M tasks
      • Skip a task or subtask
      • Retry a task or subtask
    • Parameter Template
      • Overview
      • Task Template
        • Create a task template
        • View and edit task templates
        • Copy and export a task template
        • Delete a task template
      • Component Template
        • Create a component template
        • View and edit component templates
        • Copy and export a component template
        • Delete a component template
      • Component parameters
        • Store component parameters
        • Incr-Sync component parameters
        • Full-Import component parameters
        • Full-Verification component parameters
        • Incr-Verification component parameters
        • Parameters of the Row-Verification component
        • CM component parameters
        • Supervisor component parameters
  • System management
    • Permission Management
      • Overview
      • Manage users
      • Manage departments
    • Alert center
      • View task alerts
      • View system alerts
      • Manage alert settings
    • Associate with OCP
    • System parameters
      • Modify system parameters
      • Modify HA configurations
      • oblogproxy parameters
    • Manage access keys
    • Operation audit
  • Troubleshooting Guide
    • Manage OMS services
    • OMS logs
    • Component O&M
      • O&M operations for the Supervisor component
      • CLI-based O&M for the Connector component
      • O&M operations for the Store component
    • Component tuning
      • Incr-Sync/Full-Import tuning
      • Oracle store tuning
    • Set throttling
    • Store performance diagnostics
  • Reference Guide
    • Features
      • Configure DDL/DML synchronization
      • DDL synchronization scope
      • Rename databases and tables
      • Use SQL conditions to filter data
      • Set the incremental synchronization start timestamp
      • Configure matching rules for migration or synchronization objects
      • Configure matching rules for validation objects
      • Wildcard patterns supported for matching rules
      • Hidden column mechanisms
      • Procedure for schema migration
      • Create and update a heartbeat table
      • Change a topic
      • Column filtering and column mapping
      • Data formats
      • Supported SQL Hints
    • API Reference
      • Overview
      • CreateProject
      • StartProject
      • StopProject
      • ResumeProject
      • ReleaseProject
      • DeleteProject
      • ListProjects
      • Query task details
      • DescribeProjectSteps
      • DescribeProjectStepMetric
      • DescribeProjectProgress
      • DescribeProjectComponents
      • ListProjectFullVerifyResult
      • StartProjectsByLabel
      • StopProjectsByLabel
      • CreateMysqlDataSource
      • CreateOceanBaseDataSource
      • CreateOceanBaseODPDataSource
      • CreatePolarDBDataSource
      • CreateMilvusDataSource
      • ListDataSource
      • CreateLabel
      • ListAllLabels
      • DeleteDataSource
      • CreateProjectModifyRecords
      • ListProjectModifyRecords
      • StopProjectModifyRecords
      • RetryProjectModifyRecords
      • CancelProjectModifyRecord
      • SubmitPreCheck
      • GetPreCheckResult
      • UpdateProjectConfig
      • Download schema conversion information
      • DownloadConflictData
      • ListConflictData
      • ResetIncrStartTimestamp
      • AdvanceProject
      • DescribeRegions
      • Create a user
      • Delete a user
      • Query user details
      • Query department list
      • Upload a Kafka authentication file
      • Create a Kafka data source
      • Create a DB2 LUW data source
    • Alert Reference
      • oms_host_down
      • oms_host_down_migrate_resource
      • oms_host_threshold
      • oms_migration_failed
      • oms_migration_delay
      • oms_sync_failed
      • oms_sync_status_inconsistent
      • oms_sync_delay
    • SSO
      • Integrate OMS with OIDC for SSO
      • Integrate the SAML 2.0 protocol to OMS to implement SSO
      • Access Microsoft Entra ID using OMS SAML 2.0
    • OMS error codes
    • SQL statements for querying database objects
    • Create a trigger
    • Change the log level for a PostgreSQL database instance
    • Online DDL tools
    • Supplemental logging in Oracle databases
    • Configure Milvus topics
  • Upgrade Guide
    • Overview
    • Upgrade OMS in single-node deployment mode
    • Upgrade OMS in multi-node deployment mode
    • FAQ
  • FAQ
    • General O&M
      • How do I modify the resource quotas of an OMS container?
      • How do I troubleshoot the OMS server down issue?
      • Deploy InfluxDB for OMS
      • Increase the disk space of the OMS host
    • Task diagnostics
      • How do I troubleshoot common problems with Oracle Store?
      • How do I perform performance tuning for Oracle Store?
      • What do I do when Oracle Store reports an error at the isUpdatePK stack?
      • What do I do when a store does not have data of the timestamp requested by the downstream?
      • What do I do when OceanBase Store failed to access an OceanBase cluster through RPC?
      • How do I use LogMiner to pull data from an Oracle database?
    • OPS & monitoring
      • What are the alert rules?
    • Data synchronization
      • FAQ about synchronization to a message queue
        • What are the strategies for ensuring the message order in incremental data synchronization to Kafka
    • Data migration
      • User privileges
        • What privileges do I need to grant to a user during data migration to or from an Oracle database?
      • Full migration
        • How do I query the ID of a checker?
        • How do I query log files of the Checker component of OMS?
        • How do I query the verification result files of the Checker component of OMS?
        • What do I do if the target table does not exist?
        • What can I do when the full migration failed due to LOB fields?
        • What do I do if garbled characters cannot be written into OceanBase Database V3.1.2?
      • Incremental synchronization
        • How do I skip DDL statements?
        • How do I migrate or synchronize Oracle database objects whose names exceed 30 bytes?
        • How do I update whitelists and blacklists?
        • What are the application scope and limits of ETL?
    • Installation and deployment
      • How do I upgrade Store?
  • Release Note
    • Release Note
      • Version number rules
      • V4.4
        • OMS V4.4.0
      • V4.3
        • OMS V4.3.3
        • OMS V4.3.2
        • OMS V4.3.1
        • OMS V4.3.0
      • V4.2
        • OMS V4.2.5
        • OMS V4.2.4
        • OMS V4.2.3
        • OMS V4.2.2
        • OMS V4.2.1
        • OMS V4.2.0
      • V4.1
        • OMS V4.1.0
      • V4.0
        • OMS V4.0.2
        • OMS V4.0.1
      • V3.4
        • OMS V3.4.0
      • V3.3
        • OMS V3.3.1
        • OMS V3.3.0
      • V3.2
        • OMS V3.2.2
        • OMS V3.2.1
      • V3.1
        • OMS V3.1.0
      • V2.1
        • OMS V2.1.2
        • OMS V2.1.0

Download PDF

Document Feedback
  1. Documentation Center
  2. OceanBase Migration Service
  3. V4.4.0

Synchronize DDL operations from an SQL Server database to an OceanBase database

Last Updated:2026-11-26 09:35:11

Supported operations
CREATE TABLE
ALTER TABLE
DROP TABLE
CREATE INDEX
DROP INDEX
OceanBase Database to SQL Server Database

This topic describes the DDL operations supported for synchronization during incremental synchronization from an SQL Server database to an OceanBase database in MySQL or Oracle compatible mode, and the corresponding limitations.

Note

The support for DDL synchronization is subject to the general limitations of OMS. For details, see the "Considerations" section in DDL synchronization scope. The source DDL statements are for illustration only; the specific syntax shall be subject to the actual syntax supported by SQL Server.

Supported operations

When an SQL Server database serves as the source for incremental synchronization, OMS supports synchronizing the following DDL operations:

  • CREATE TABLE

  • ALTER TABLE, including only ADD COLUMN, DROP COLUMN, ADD CONSTRAINT, DROP CONSTRAINT, and column modification operations that are supported by the target (modifying column type, column name, and column default value)

  • DROP TABLE

  • CREATE INDEX

  • DROP INDEX

DDL operations outside the above scope are not supported for synchronization to the target. DDL operations synchronized to the target will be converted according to the syntax of the corresponding compatible mode of OceanBase Database before execution.

The following source operations are explicitly not within the supported scope:

  • TRUNCATE TABLE: After CDC is enabled for an SQL Server table, the table itself refuses to execute TRUNCATE TABLE, and OMS cannot synchronize this operation. To clear table data, use DELETE instead and assess the impact on synchronization latency.

  • RENAME TABLE and renaming tables using sp_rename: OMS captures this operation but does not synchronize it to the target. After the source table name changes, the original table name remains in the target. Please adjust the mapping relationship of migration objects. For details, see View and modify migration objects.

Notice

  • Do not perform DDL operations that modify database or table structures during schema migration or full migration. Otherwise, it may cause object structure inconsistency, full data load failure, or interruption of the data migration task.

  • Before performing DDL operations in a production environment, comply with the restrictions on production DDL execution described in the "Considerations" section of the link. For details, see Migrate data from an SQL Server database to the MySQL-compatible mode of OceanBase Database or Migrate data from an SQL Server database to the Oracle-compatible mode of OceanBase Database.

CREATE TABLE

Create a table

CREATE TABLE T (C INT);

Note

The CREATE TABLE statement is synchronized to the target only if migration objects are selected by using the matching rules method and the name of the new table is included in the migration object rule. OMS creates a CDC capture instance for the new table before synchronizing the CREATE TABLE statement. If migration objects are selected by using the specified objects method, synchronizing the CREATE TABLE statement is not supported.

ALTER TABLE

  • Add a column

    ALTER TABLE T ADD C2 INT;
    ALTER TABLE T ADD C2 INT NOT NULL DEFAULT 1;
    

    Notice

    The preceding DEFAULT 1 is an example of a constant default value. If the default value of a newly added column is calculated separately at the source and target (for example, ALTER TABLE T ADD rowguid UNIQUEIDENTIFIER NOT NULL DEFAULT NEWID()), the values generated for existing rows may differ between the two sides, leading to data inconsistency. Businesses that rely on such identifiers should avoid using this method to add a column, or switch only after confirming that the values are consistent across both sides.

  • Drop a column

    ALTER TABLE T DROP COLUMN C2;
    
  • Add a constraint

    ALTER TABLE T ADD CONSTRAINT UK_C UNIQUE (C);
    ALTER TABLE T ADD CONSTRAINT PK_T PRIMARY KEY (C);
    ALTER TABLE T ADD CONSTRAINT FK_T_C FOREIGN KEY (C) REFERENCES P(COL1);
    ALTER TABLE T ADD CONSTRAINT CK_T_C CHECK (C > 0);
    

    Note

    The synchronization effect of different constraints depends on the target compatibility mode:

    • CHECK constraints are synchronized in both target modes.

    • FOREIGN KEY constraints are synchronized in OceanBase Database's MySQL-compatible mode; however, foreign keys are not created at the target in OceanBase Database's Oracle-compatible mode.

    • The addition and deletion of PRIMARY KEY and UNIQUE constraints can be synchronized. However, changing DDL operations that modify primary key or unique key configurations (for example, first DROP CONSTRAINT to drop the primary key, then ADD CONSTRAINT to recreate it) is not supported. For details, see the note following "Delete a constraint" below.

  • Delete a constraint

    ALTER TABLE T DROP CONSTRAINT UK_C;
    

Notice

OMS does not support synchronizing DDL operations that modify primary key or unique key configurations, such as first DROP CONSTRAINT to drop the primary key, then ADD CONSTRAINT to recreate it. Such changes may lead to inaccurate incremental positioning and data quality issues.

Note

Column modification operations such as changing the column type, renaming the column, and modifying the column's default value can be synchronized to the target if supported. Other options of ALTER TABLE, such as adding or dropping indexes, are not supported for synchronization to the target. Index creation and deletion should be synchronized using CREATE INDEX and DROP INDEX.

DROP TABLE

Drop a table.

DROP TABLE T1,T2;

CREATE INDEX

Create a normal index or a unique index.

CREATE INDEX IDX_C ON T(C);
CREATE UNIQUE INDEX IDX_C ON T(C);

Note

The table object containing the index must be within the migration object rules for the related DDL to be synchronized to the target. Clustered indexes, filtered indexes, and unique and non-unique indexes in SQL Server are all converted into normal indexes in the corresponding compatible mode of OceanBase Database.

DROP INDEX

Drop an index.

DROP INDEX IDX_C ON T;

OceanBase Database to SQL Server Database

During the reverse incremental phase, the DDL types that can be selected in the Customize Synchronization Scope panel are: CREATE, ALTER, DROP, RENAME, and TRUNCATE for tables, and CREATE and DROP for indexes.

Note

The values in this section apply only to the reverse incremental phase and differ from those described in the "Supported Scope Overview" section above for forward incremental synchronization: forward incremental synchronization does not support synchronizing TRUNCATE TABLE or RENAME TABLE from the source SQL Server to the target. In the reverse incremental phase, you can select RENAME and TRUNCATE in Custom Synchronization Scope.

In a reverse incremental scenario, the scope of supported incremental DDL operations from OceanBase Database to SQL Server Database is limited. Known limitations include:

  • Reverse incremental synchronization from OceanBase Database in Oracle compatible mode to SQL Server Database does not support synchronizing DROP INDEX.

  • During reverse synchronization of DROP COLUMN, if the target column in SQL Server is still referenced by a default value, constraint, or index, OMS fails when replaying the DDL in SQL Server.

  • When adding a NOT NULL column to a table with existing data on the target side, SQL Server requires the column to have a default value; otherwise, OMS fails when replaying the DDL in SQL Server. This restriction does not apply in OceanBase Database in MySQL compatible mode.

  • During reverse synchronization of column modification operations, SQL Server requires explicitly retaining the NOT NULL attribute; otherwise, the column will become nullable. OceanBase Database in Oracle compatible mode does not support setting column attributes simultaneously when configuring this change, and such incremental DDL will report an error.

  • Reverse incremental synchronization does not support ETL configuration.

It is recommended to check the required DDL for the reverse link and the dependency relationships of target columns before business switchover, and to arrange manual processing for unsupported changes in advance.

Previous topic

Synchronize DDL operations from an OBSharding database to the Oracle compatible mode of OceanBase Database
Last

Next topic

Data synchronization overview
Next
on this page
Supported operations
CREATE TABLE
ALTER TABLE
DROP TABLE
CREATE INDEX
DROP INDEX
OceanBase Database to SQL Server Database