DDL synchronization between Oracle-compatible tenants of OceanBase Database

2025-06-24 11:54:40  Updated

Supported DDL operations

  • CREATE TABLE

    You can create partitioned tables but cannot use CREATE TABLE AS SELECT to create tables. HASH-, RANGE-, and LIST-partitioned tables, and HASH-, RANGE-, and LIST-subpartitioned tables are supported.

  • DROP TABLE

  • TRUNCATE TABLE

  • RENAME TABLE and ALTER TABLE RENAME

  • ALTER TABLE ADD COLUMN

  • ALTER TABLE CHANGE COLUMN

    Notice

    You can increase the column length, but you cannot modify the column type.

  • CREATE INDEX

  • DROP INDEX

  • Adding or dropping comments on tables or columns

Limitations

  • If the table to synchronize involves unsupported DDL operations, the migration task may be interrupted, which causes unrecoverable data inconsistencies.

  • Frequent DDL operations on a table are not supported. Continue with the next DDL operation only after the Store has completed the current one (judged by the position). Otherwise, the store may exit unexpectedly or cause unrecoverable data exceptions.

  • Make sure that no DDL operations are performed before you create a store and when a store is being started. If log pulling is involved, make sure that no DDL operations are performed during the period from the start time when logs are pulled to the current time. Otherwise, the store may exit unexpectedly or cause unrecoverable data exceptions.

  • The original and new table names in the RENAME TABLE statement must be names of the tables to be synchronized.

  • A table creation DDL operation that involves the CASE WHEN INDEX clause cannot be synchronized.

Contact Us