OceanBase logo

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Resources

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS

OceanBase Cloud

OceanBase Database

Tools

Connectors and Middleware

QUICK START

OceanBase Cloud

OceanBase Database

BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Company

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

International - English
中国站 - 简体中文
日本 - 日本語
Sign In
Start on Cloud

A unified distributed database ready for your transactional, analytical, and AI workloads.

DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS
OceanBase CloudOceanBase Database
ToolsConnectors and Middleware
QUICK START
OceanBase CloudOceanBase Database
BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

Start on Cloud
编组
All Products
    • Databases
    • iconOceanBase Database
    • iconOceanBase Cloud
    • iconOceanBase Tugraph
    • iconInteractive Tutorials
    • iconOceanBase Best Practices
    • Tools
    • iconOceanBase Cloud Platform
    • iconOceanBase Migration Service
    • iconOceanBase Developer Center
    • iconOceanBase Migration Assessment
    • iconOceanBase Admin Tool
    • iconOceanBase Loader and Dumper
    • iconOceanBase Deployer
    • iconKubernetes operator for OceanBase
    • iconOceanBase Diagnostic Tool
    • iconOceanBase Binlog Service
    • Connectors and Middleware
    • iconOceanBase Database Proxy
    • iconEmbedded SQL in C for OceanBase
    • iconOceanBase Call Interface
    • iconOceanBase Connector/C
    • iconOceanBase Connector/J
    • iconOceanBase Connector/ODBC
    • iconOceanBase Connector/NET
icon

OceanBase Migration Service

V4.0.2Enterprise Edition

  • OMS Documentation
  • What's new
  • OMS Introduction
    • Terms
    • Limits
    • What is OMS?
    • OMS HA
    • Architecture
      • Overview
      • Hierarchical functional system
      • Basic components
  • Quick Start
    • Data migration process
    • Data synchronization process
  • Deploy OMS
    • System and network requirements
    • Memory and disk requirements
    • Environment preparations
    • Deploy a time-series database (Optional)
    • Deployment types
    • Deploy OMS on a single node
    • Deploy OMS on multiple nodes in a single region
    • Deploy OMS on multiple nodes in multiple regions
    • Integrate the OIDC protocol to OMS to implement SSO
    • Scale-out OMS
    • Check the deployment
  • OMS console
    • Log on to the OMS console
    • Overview
    • User center
      • Configure user information
      • Change your logon password
      • Log off
  • Data migration
    • Data migration overview
    • Migrate data from a MySQL tenant of OceanBase Database to a DB2 LUW database
    • Migrate data within OceanBase Database
    • Active-active disaster recovery between OceanBase databases
    • Migrate data from a TiDB database to a MySQL tenant of OceanBase Database
    • Migrate data from a PostgreSQL database to a MySQL tenant of OceanBase Database
    • Migrate data from a MySQL database to a MySQL tenant of OceanBase Database
    • Migrate data from a MySQL tenant of OceanBase Database to a MySQL database
    • Migrate data from an Oracle database to a MySQL tenant of OceanBase Database
    • Migrate data from an Oracle tenant of OceanBase Database to an Oracle database
    • Migrate data from an Oracle database to an Oracle tenant of OceanBase Database
    • Migrate data from a DB2 LUW database to an Oracle tenant of OceanBase Database
    • Migrate data from an Oracle tenant of OceanBase Database to a DB2 LUW database
    • Migrate data from a DB2 LUW database to a MySQL tenant of OceanBase Database
    • Supported DDL operations and limits for synchronization
      • Synchronize DDL operations from a MySQL tenant of OceanBase Database to a MySQL database
      • Synchronize DDL operations from an Oracle tenant of OceanBase Database to an Oracle database
      • Synchronize DDL operations from an Oracle tenant of OceanBase Database to a DB2 LUW database
      • Synchronize DDL operations from a DB2 LUW database to a MySQL tenant of OceanBase Database
      • Synchronize DDL operations from a MySQL tenant of OceanBase Database to a DB2 LUW database
      • DDL synchronization between MySQL tenants of OceanBase Database
      • DDL synchronization between Oracle tenants of OceanBase Database
      • DDL operations for synchronizing data from an Oracle database to an Oracle tenant of OceanBase Database
        • DROP TABLE
        • COMMENT
        • RENAME OBJECT
        • TRUNCATE TABLE
        • DROP INDEX
        • Overview
        • ALTER TABLE
          • Modify, drop, and add table attributes
          • Modify, drop, and add constraints
          • Modify tables
          • Column attribute management
            • Rename a column
            • Drop columns
            • Modify, drop, and add column attributes
            • Add columns and column attributes
            • Modify column attributes
          • Partition management
            • Drop partitions
            • Drop subpartitions
            • Add partitions and subpartitions
            • Modify partitions
            • Truncate partitions
            • Modify, drop, and add partitions
        • CREATE TABLE
          • Overview
          • Virtual columns
          • Regular columns
          • Constraints
            • Inline constraints
            • Out-of-line constraints
            • Overview
          • Create partitions
            • User-defined partitioning
            • Overview
            • Partitioning
            • Subpartitioning
            • Composite partitioning
            • Subpartition templates
          • Create a relational table
            • Create a relational table
            • Define columns of a relational table
        • DDL incompatibilities between an Oracle database and an Oracle tenant of OceanBase Database
          • Incompatibilities of CREATE TABLE
          • Overview
          • Incompatibilities in table modification operations
            • 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
            • Incompatibilities of ALTER TABLE
        • CREATE INDEX
          • Overview
          • Normal indexes
      • DDL synchronization from a MySQL database to a MySQL tenant of OceanBase Database
        • Data type conversion
        • TRUNCATE TABLE
        • RENAME TABLE
        • DROP TABLE
        • DROP INDEX
        • Overview of DDL synchronization from a MySQL database to a MySQL tenant of OceanBase Database
        • CREATE INDEX
        • DDL incompatibilities between a MySQL database and a MySQL tenant of OceanBase Database
          • Incompatibilities of DROP INDEX operations
          • Overview
          • Incompatibilities of the ALTER TABLE statement
            • Change the length of an unconstrained column
            • Delete a constrained column
            • Change the type of a constrained column
            • Change the type of an unconstrained column
            • Change the length of a constrained column
            • Incompatibilities of ALTER TABLE
          • Incompatibilities of the CREATE TABLE statement
            • Column types that are supported to create indexes or constraints
            • Incompatibilities of CREATE TABLE
        • ALTER TABLE
          • Operations on constraints and indexes
          • Operations on partitions
          • Modify a table
          • Operations on columns
        • CREATE TABLE
          • Create an index or a constraint
          • Create partitions
          • Create a table
          • Create a column
    • Manage data migration projects
      • View and modify migration objects
      • Use tags to manage data migration projects
      • Download and import the settings of migration objects
      • Start and pause a data migration project
      • Release and delete a data migration project
      • View details of a data migration project
      • Change the name of a data migration project
    • Features
      • Wildcard rules
      • Create and update a heartbeat table
      • DML filtering
      • Set an incremental synchronization timestamp
      • Synchronize DDL operations
      • Configure matching rules for migration objects
      • Rename a database table
      • Use SQL conditions to filter data
      • Schema migration mechanisms
      • Schema migration operations
  • Data synchronization
    • Overview
    • Synchronize data from OceanBase Database to a Kafka instance
    • Synchronize data from an OceanBase database to a RocketMQ instance
    • Synchronize data from an Oracle database to a DataHub instance
    • Synchronize data from OceanBase Database to a DataHub instance
    • Synchronize data from an ODP logical table to a physical table in a MySQL tenant of OceanBase Database
    • Synchronize data from an ODP logical table to a DataHub instance
    • Synchronize data from an IDB logical table to a physical table in a MySQL 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
    • Manage data synchronization projects
      • View and modify synchronization objects
      • Use tags to manage data synchronization projects
      • Download and import the settings of synchronization objects
      • Start and pause a data synchronization project
      • Release and delete a data synchronization project
      • View details of a data synchronization project
      • Change the name of a data synchronization project
    • Features
      • Data formats
      • DML filtering
      • Synchronize DDL operations
      • Rename databases and tables
      • Rename a topic
      • Use SQL conditions to filter data
      • Column filtering
  • Create and manage data sources
    • Enable binlogs for the MySQL database
    • Minimum privileges required when an Oracle database serves as the source
    • Create a database user
    • User privileges
    • Create data sources
      • Create an Oracle data source
      • Create a Kafka data source
      • Create a RocketMQ data source
      • Create a DataHub data source
      • Create a DB2 LUW data source
      • Create a MySQL data source
      • Create a TiDB data source
      • Create a PostgreSQL data source
      • Create an OceanBase data source
        • Create a DBP data source
        • Create an IDB data source
        • Create a physical OceanBase data source
    • Manage data sources
      • Copy a data source
      • Edit a data source
      • Delete a data source
      • View data source information
  • OPS & Monitoring
    • O&M overview
    • Go to the overview page
    • Components
      • Full-Import
        • View details of a Full-Import component
        • Pause a Full-Import component
        • Rerun and resume a Full-Import component
        • Delete a Full-Import component
        • Update the configurations of 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
        • Delete a Full-Verification component
        • Update the configurations of a Full-Verification component
      • Incr-Sync
        • View details of an Incr-Sync component
        • Start and pause an Incr-Sync component
        • Migrate an Incr-Sync component
        • Batch O&M
        • Update the configurations of an Incr-Sync component
        • Delete an Incr-Sync component
      • Store
        • Create a store
        • View details of a store
        • Start and pause a store
        • Delete a store
        • Update the configurations of a store
    • Server
      • View server information
      • Update the quota
      • View server logs
    • O&M tickets
      • Skip a ticket or sub-ticket
      • Retry a ticket or sub-ticket
      • View details of an O&M ticket
  • System management
    • Associate with OCP
    • Operation audit
    • System parameters
      • Modify system parameters
      • Modify HA configurations
      • oblogproxy parameters
    • Permission Management
      • Manage departments
      • Overview
      • Manage users
    • Alert center
      • Manage alert settings
      • View project alerts
      • View system alerts
  • OMS O&M
    • Manage OMS services
    • OMS logs
    • Set throttling
    • Component parameters
      • Coordinator
      • Condition
      • Parameters of the CM component
      • Parameters of the Supervisor component
      • Sink Plugin
        • JDBC-Sink
        • KafkaSink
        • DatahubSink
        • RocketMQSink
        • Overview
      • Store parameters
        • Parameters of an Oracle store
        • Parameters of a DB2 store
        • Parameters of a MySQL store
        • Parameters of an OceanBase store
      • Source Plugin
        • StoreSource
        • DataFlowSource
        • LogProxySource
        • KafkaSource (TiDB)
        • Overview
    • Component tuning
      • Incr-Sync/Full-Import tuning
      • Oracle store tuning
    • 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
  • Reference Guide
    • OMS error codes
    • 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
    • API Reference
      • Obtain the status of a migration project
      • Obtain the status of a synchronization project
  • Upgrade Guide
    • Upgrade OMS in single-node deployment mode
    • Upgrade OMS in multi-node deployment mode
    • FAQ
    • Overview
  • FAQ
    • Data migration
      • Full migration
        • How do I query the ID of a checker?
        • What do I do if the destination 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?
        • 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?
      • Incremental synchronization
        • How do I skip DDL statements?
        • How do I update whitelists and blacklists?
        • What are the application scope and limits of ETL?
      • User privileges
        • What privileges do I need to grant to a user during data migration to or from an Oracle database?
    • Project 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?
    • 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
    • Data synchronization
      • FAQ about synchronization to a message queue
        • What are the strategies for ensuring the message order in incremental data synchronization to Kafka
    • Installation and deployment
      • How do I upgrade Store?
  • Release Note
    • V3.3
      • OMS V3.3.1
      • OMS V3.3.0
    • V3.2
      • OMS V3.2.2
      • OMS V3.2.1
    • V4.0
      • OMS V4.0.1
      • OMS V4.0.2
    • V3.1
      • OMS V3.1.0
    • V3.4
      • OMS V3.4.0
    • V2.1
      • OMS V2.1.2
      • OMS V2.1.0

Download PDF

OMS Documentation What's new Terms Limits What is OMS? OMS HA Overview Hierarchical functional system Basic components Data migration process Data synchronization process System and network requirements Memory and disk requirements Environment preparations Deploy a time-series database (Optional) Deployment types Deploy OMS on a single node Deploy OMS on multiple nodes in a single region Deploy OMS on multiple nodes in multiple regions Integrate the OIDC protocol to OMS to implement SSO Scale-out OMS Check the deployment Log on to the OMS console Overview Configure user information Change your logon password Log off Data migration overview Migrate data from a MySQL tenant of OceanBase Database to a DB2 LUW database Migrate data within OceanBase Database Active-active disaster recovery between OceanBase databases Migrate data from a TiDB database to a MySQL tenant of OceanBase Database Migrate data from a PostgreSQL database to a MySQL tenant of OceanBase Database Migrate data from a MySQL database to a MySQL tenant of OceanBase Database Migrate data from a MySQL tenant of OceanBase Database to a MySQL database Migrate data from an Oracle database to a MySQL tenant of OceanBase Database Migrate data from an Oracle tenant of OceanBase Database to an Oracle database Migrate data from an Oracle database to an Oracle tenant of OceanBase Database Migrate data from a DB2 LUW database to an Oracle tenant of OceanBase Database Migrate data from an Oracle tenant of OceanBase Database to a DB2 LUW database Migrate data from a DB2 LUW database to a MySQL tenant of OceanBase Database Synchronize DDL operations from a MySQL tenant of OceanBase Database to a MySQL database Synchronize DDL operations from an Oracle tenant of OceanBase Database to an Oracle database Synchronize DDL operations from an Oracle tenant of OceanBase Database to a DB2 LUW database Synchronize DDL operations from a DB2 LUW database to a MySQL tenant of OceanBase Database Synchronize DDL operations from a MySQL tenant of OceanBase Database to a DB2 LUW database DDL synchronization between MySQL tenants of OceanBase Database DDL synchronization between Oracle tenants of OceanBase Database View and modify migration objects Use tags to manage data migration projects Download and import the settings of migration objects Start and pause a data migration project Release and delete a data migration project View details of a data migration project Change the name of a data migration project Wildcard rules Create and update a heartbeat table DML filtering Set an incremental synchronization timestamp Synchronize DDL operations Configure matching rules for migration objects Rename a database table Use SQL conditions to filter data Schema migration mechanisms Schema migration operations Overview Synchronize data from OceanBase Database to a Kafka instance Synchronize data from an OceanBase database to a RocketMQ instance Synchronize data from an Oracle database to a DataHub instance Synchronize data from OceanBase Database to a DataHub instance Synchronize data from an ODP logical table to a physical table in a MySQL tenant of OceanBase Database Synchronize data from an ODP logical table to a DataHub instance Synchronize data from an IDB logical table to a physical table in a MySQL 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 View and modify synchronization objects Use tags to manage data synchronization projects Download and import the settings of synchronization objects Start and pause a data synchronization project Release and delete a data synchronization project View details of a data synchronization project Change the name of a data synchronization project Data formats DML filtering Synchronize DDL operations Rename databases and tables Rename a topic Use SQL conditions to filter data Column filtering Enable binlogs for the MySQL database Minimum privileges required when an Oracle database serves as the source Create a database user User privileges Create an Oracle data source Create a Kafka data source Create a RocketMQ data source Create a DataHub data source Create a DB2 LUW data source Create a MySQL data source Create a TiDB data source
OceanBase logo

The Unified Distributed Database for the AI Era.

Follow Us
Products
OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
Resources
DocsBlogLive DemosTraining & Certification
Company
About OceanBaseTrust CenterLegalPartnerContact Us
Follow Us

© OceanBase 2026. All rights reserved

Cloud Service AgreementPrivacy PolicySecurity
Contact Us
Document Feedback
  1. Documentation Center
  2. OceanBase Migration Service
  3. V4.0.2
iconOceanBase Migration Service
V 4.0.2Enterprise Edition
Enterprise Edition
  • V 4.3.2
  • V 4.3.1
  • V 4.3.0
  • V 4.2.5
  • V 4.2.4
  • V 4.2.3
  • V 4.0.2
  • V 3.4.0
Community Edition
  • V 4.2.13
  • V 4.2.12
  • V 4.2.11
  • V 4.2.10
  • V 4.2.9
  • V 4.2.8
  • V 4.2.7
  • V 4.2.6
  • V 4.2.5
  • V 4.2.4
  • V 4.2.3
  • V 4.2.1
  • V 4.2.0
  • V 4.0.0
  • V 3.3.1

Incompatibilities of CREATE TABLE

Last Updated:2026-04-14 07:36:47  Updated
share
What is on this page
Define a generated column based on other generated columns
Create an index or a constraint

folded

share

Incompatibilities of CREATE TABLE

This topic describes CREATE TABLE DDL operations that are executed in a MySQL database and can be converted by the DDL synchronization component of OceanBase Migration Service (OMS), but they cannot be executed in the MySQL tenant of OceanBase Database when you migrate data from the MySQL database to the MySQL tenant of OceanBase Database.

Define a generated column based on other generated columns

Use other generated columns in the CREATE TABLE DDL statement to define a newly generated column.

  • MySQL databases: supported.

  • MySQL tenants of OceanBase Database: not supported.

Example:

CREATE TABLE group_by_t1
(a INT GENERATED ALWAYS AS (1) VIRTUAL,
 b INT GENERATED ALWAYS AS (a) VIRTUAL,
 c INT GENERATED ALWAYS AS (1) VIRTUAL);

Create an index or a constraint

  • When you create a constraint, the column types supported in a MySQL database are different from those supported in a MySQL tenant of OceanBase Database. For more information, see Column types that are supported to create indexes or constraints.

  • Limitations on creating a FOREIGN KEY constraint:

    • MySQL tenants of OceanBase Database: The referenced column in the parent table must have the UNIQUE KEY or PRIMARY KEY constraint when you create a foreign key.

    • MySQL databases: The referenced column in the parent table must have the UNIQUE KEY, PRIMARY KEY, or KEY constraint when you create a foreign key.

Previous topic

Overview
Last

Next topic

Column types that are supported to create indexes or constraints
Next
What is on this page
Define a generated column based on other generated columns
Create an index or a constraint