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.2.7Community Edition

  • OMS Documentation
  • What's New
  • OMS Community Edition Introduction
    • Limitations
    • What is OMS Community Edition?
    • OMS Community Edition HA
    • Terms
    • Architecture
      • Hierarchical functional system
      • Overview
      • Basic components
  • Quick Start
    • Data migration process
    • Data synchronization process
  • Deploy OMS Community Edition
    • Prepare the environment
    • Memory and disk requirements
    • Deployment modes
    • Check the deployment
    • Scale out OMS Community Edition
    • Integrate the OIDC protocol into OMS Community Edition to implement SSO
    • Deploy OMS Community Edition on multiple nodes in multiple regions
    • System and network requirements
    • Deploy OMS Community Edition on multiple nodes in a single region
    • Deploy OMS Community Edition on a single node
    • Deploy a time-series database (Optional)
  • OMS Community Edition console
    • Overview
    • Log on to the console of OMS Community Edition
    • User center
      • Change your logon password
      • Log off
      • Configure user information
  • Data migration
    • Migrate incremental data from OBKV to HBase
    • Migrate data from a PostgreSQL database to OceanBase Database Community Edition
    • Overview
    • Migrate data from a Redis database to an OBKV-Redis database
    • Migrate data from HBase to OBKV
    • Migrate data from a Milvus database to OceanBase Database Community Edition
    • Migrate data in active-active disaster recovery scenarios
    • Migrate data from a TiDB database to OceanBase Database Community Edition
    • Migrate data from a Qdrant database to OceanBase Database Community Edition
    • Migrate data between instances of OceanBase Database Community Edition
    • Migrate data from a MySQL database to OceanBase Database Community Edition
    • Supported DDL operations in incremental migration and limits
      • Supported DDL operations in incremental migration between MySQL tenants of OceanBase Database
      • DDL synchronization from MySQL database to OceanBase Community Edition
        • TRUNCATE TABLE
        • RENAME TABLE
        • Data type conversion
        • DROP TABLE
        • Overview of DDL synchronization from a MySQL database to a MySQL tenant of OceanBase Database
        • DROP INDEX
        • CREATE INDEX
        • DDL incompatibilities between MySQL database and OceanBase Community Edition
          • Overview
          • Incompatibilities of DROP INDEX operations
          • Incompatibilities of the ALTER TABLE statement
            • Delete a constrained column
            • Incompatibilities of ALTER TABLE
            • Change the length of a constrained column
            • Change the type of a constrained column
            • Change the length of an unconstrained column
            • Change the type of an unconstrained column
          • Incompatibilities of the CREATE TABLE statement
            • Incompatibilities of CREATE TABLE
            • Column types that are supported to create indexes or constraints
        • ALTER TABLE
          • Modify a table
          • Operations on columns
          • Operations on partitions
          • Operations on constraints and indexes
        • CREATE TABLE
          • Create partitions
          • Create an index or a constraint
          • Create a column
          • Create a table
    • Manage data migration tasks
      • Start and pause a data migration task
      • Manage computing platforms
      • Use tags to manage data migration tasks
      • Download and import settings of migration objects
      • View and modify migration objects
      • Change the name of a data migration task
      • Release and delete a data migration task
      • View details of a data migration task
      • Perform batch operations on data migration tasks
    • Features
      • Rename a database table
      • Schema migration mechanisms
      • Create and update a heartbeat table
      • Direct load
      • Configure matching rules for migration objects
      • DML filtering
      • DDL synchronization
      • Schema migration operations
      • Use SQL conditions to filter data
      • Wildcard rules
      • Set an incremental synchronization timestamp
  • Data synchronization
    • Data synchronization overview
    • Create a task to synchronize data from OceanBase Database Community Edition to a RocketMQ instance
    • Create a task to synchronize data from OceanBase Database Community Edition to a Kafka instance
    • Manage data synchronization tasks
      • View details of a data synchronization task
      • Download and import the settings of synchronization objects
      • View and modify synchronization objects
      • Release and delete a data synchronization task
      • Start and pause a data synchronization task
      • Perform batch operations on data synchronization tasks
      • Change the name of a data synchronization task
      • Use tags to manage data synchronization tasks
    • Features
      • DDL synchronization
      • Configure matching rules for synchronization objects
      • Column filtering
      • Rename a topic
      • DML filtering
      • Data formats
      • Use SQL conditions to filter data
  • Create and manage data sources
    • Create a database user
    • Enable binlogs for the MySQL database
    • User privileges
    • Manage data sources
      • Copy a data source
      • Delete a data source
      • Edit a data source
      • View data source information
      • Cache system views
    • Create data sources
      • Create a Milvus data source
      • Create a RocketMQ data source
      • Create a TiDB data source
      • Create a PostgreSQL data source
      • Create an HBase data source
      • Create a Kafka data source
      • Create a Qdrant data source
      • Create an OceanBase-CE data source
      • Create a Redis data source
      • Create a MySQL data source
  • OPS & Monitoring
    • Go to the overview page
    • O&M overview
    • Components
      • Component parameters
        • Parameters of the CM component
        • Parameters of the Full-Verification component
        • Condition
        • Coordinator
        • Parameters of the Supervisor component
        • Sink Plugin
          • HBaseSink
          • JDBC-Sink
          • DatahubSink
          • RocketMQSink
          • KafkaSink
          • Overview
        • Source Plugin
          • HBaseSource
          • DataFlowSource
          • KafkaSource (TiDB)
          • StoreSource
          • Overview
          • LogProxySource
        • Store parameters
          • Parameters of a MySQL store
          • Parameters of an OceanBase store
      • Full-Import
        • Rerun and resume a Full-Import component
        • Pause a Full-Import component
        • Delete a Full-Import component
        • View details of a Full-Import component
        • Update the configurations of a Full-Import component
      • Full-Verification
        • View details of a Full-Verification component
        • Delete a Full-Verification component
        • Rerun and resume a Full-Verification component
        • Update the configurations of a Full-Verification component
        • Pause a Full-Verification component
      • Incr-Sync
        • Update the configurations of an Incr-Sync component
        • View details of an Incr-Sync component
        • Migrate an Incr-Sync component
        • Delete an Incr-Sync component
        • Start and pause an Incr-Sync component
        • Batch O&M
      • Store
        • Create a store
        • Start and pause a store
        • Update the configurations of a store
        • Delete a store
        • View details of a store
    • Server
      • Update the quota
      • View server logs
      • View server information
    • O&M Task
      • Retry a task or subtask
      • Skip a task or subtask
      • View O&M tasks
  • System management
    • Associate with OCP
    • System parameters
      • Modify HA configurations
      • Modify system parameters
    • Permission Management
      • Manage departments
      • Manage users
      • Overview
    • Alert center
      • Manage alert settings
      • View system alerts
      • View task alerts
  • OMS Community Edition O&M
    • OMS logs
    • Set throttling
    • Manage OMS services
    • Component O&M
      • CLI-based O&M for the Connector component
      • O&M operations for the Supervisor component
      • O&M operations for the Store component
    • Component tuning
      • Incr-Sync or Full-Import tuning
  • Reference Guide
    • Telemetry parameters
    • OMS error codes
    • API Reference
      • StopProject
      • UpdateFullImport
      • Overview
      • ListFullVerifyCorrectionsResult
      • ListProjects
      • CreateMySQLMasterSlaveDataSource
      • DescribeProjectStepMetric
      • ListProjectFullVerifyResult
      • UpdateFullVerification
      • DeleteProject
      • ResumeProject
      • DescribeProject
      • CreateMysqlDataSource
      • CreateOceanBaseDataSource
      • CreateLabel
      • ListAllLabels
      • UpdateIncrSync
      • DescribeProjectSteps
      • ListDataSource
      • ListFullVerifyInconsistenciesResult
      • StartProjectsByLabel
      • ReleaseProject
      • StartProject
      • DescribeProjectProgress
      • StopProjectsByLabel
      • DescribeProjectComponents
      • CreateProject
      • UpdateStore
    • Alert Reference
      • oms_host_down_migrate_resource
      • oms_sync_status_inconsistent
      • oms_host_threshold
      • oms_migration_delay
      • oms_host_down
      • oms_sync_delay
      • oms_migration_failed
      • oms_sync_failed
  • Upgrade Guide
    • Overview
    • Upgrade OMS Community Edition in single-node deployment mode
    • Upgrade OMS Community Edition in multi-node deployment mode
    • FAQ
  • FAQ
    • Installation and deployment
      • What do I do when the "Failed to fetch" error is reported?
      • Change port numbers for components
      • Switch to the standby database
      • How do I upgrade CDC?
      • How do I upgrade Store?
    • Data migration
      • Full migration
        • How do I query the ID of a checker?
        • How do I query log files of the Checker component of OMS?
        • What do I do if garbled characters cannot be written into OceanBase Database V3.1.2?
        • What can I do when the full migration failed due to LOB fields?
        • What do I do if the destination table does not exist?
        • How do I query the verification result files of the Checker component of OMS?
      • Incremental synchronization
        • How do I update whitelists and blacklists?
        • What are the application scope and limits of ETL?
        • How do I skip DDL statements?
    • General O&M
      • Clear files in the Store component
      • Deploy InfluxDB for OMS
      • Increase the disk space of the OMS host
      • How do I modify the resource quotas of an OMS container?
      • How do I troubleshoot the OMS server down issue?
    • Task diagnostics
      • 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?
    • OPS & monitoring
      • What are the alert rules?
    • Logon and password
      • What do I do if my logon password is locked?
    • Data synchronization
      • FAQ about synchronization to a message queue
        • What are the strategies for ensuring the message order in incremental data synchronization to Kafka

Download PDF

OMS Documentation What's New Limitations What is OMS Community Edition? OMS Community Edition HA Terms Hierarchical functional system Overview Basic components Data migration process Data synchronization process Prepare the environment Memory and disk requirements Deployment modes Check the deployment Scale out OMS Community Edition Integrate the OIDC protocol into OMS Community Edition to implement SSO Deploy OMS Community Edition on multiple nodes in multiple regions System and network requirements Deploy OMS Community Edition on multiple nodes in a single region Deploy OMS Community Edition on a single node Deploy a time-series database (Optional) Overview Log on to the console of OMS Community Edition Change your logon password Log off Configure user information Migrate incremental data from OBKV to HBase Migrate data from a PostgreSQL database to OceanBase Database Community Edition Overview Migrate data from a Redis database to an OBKV-Redis database Migrate data from HBase to OBKV Migrate data from a Milvus database to OceanBase Database Community Edition Migrate data in active-active disaster recovery scenarios Migrate data from a TiDB database to OceanBase Database Community Edition Migrate data from a Qdrant database to OceanBase Database Community Edition Migrate data between instances of OceanBase Database Community Edition Migrate data from a MySQL database to OceanBase Database Community Edition Supported DDL operations in incremental migration between MySQL tenants of OceanBase Database Start and pause a data migration task Manage computing platforms Use tags to manage data migration tasks Download and import settings of migration objects View and modify migration objects Change the name of a data migration task Release and delete a data migration task View details of a data migration task Perform batch operations on data migration tasks Rename a database table Schema migration mechanisms Create and update a heartbeat table Direct load Configure matching rules for migration objects DML filtering DDL synchronization Schema migration operations Use SQL conditions to filter data Wildcard rules Set an incremental synchronization timestamp Data synchronization overview Create a task to synchronize data from OceanBase Database Community Edition to a RocketMQ instance Create a task to synchronize data from OceanBase Database Community Edition to a Kafka instance View details of a data synchronization task Download and import the settings of synchronization objects View and modify synchronization objects Release and delete a data synchronization task Start and pause a data synchronization task Perform batch operations on data synchronization tasks Change the name of a data synchronization task Use tags to manage data synchronization tasks DDL synchronization Configure matching rules for synchronization objects Column filtering Rename a topic DML filtering Data formats Use SQL conditions to filter data Create a database user Enable binlogs for the MySQL database User privileges Copy a data source Delete a data source Edit a data source View data source information Cache system views Create a Milvus data source Create a RocketMQ data source Create a TiDB data source Create a PostgreSQL data source Create an HBase data source Create a Kafka data source Create a Qdrant data source Create an OceanBase-CE data source Create a Redis data source Create a MySQL data source Go to the overview page O&M overview Update the quota View server logs View server information
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.2.7
iconOceanBase Migration Service
V 4.2.7Community 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

Change the length of an unconstrained column

Last Updated:2026-04-14 07:41:43  Updated
share
What is on this page
share

This topic describes incompatibilities between MySQL databases and MySQL tenants of OceanBase Database when you change the length of an unconstrained column.

The following table describes the operations that you can perform to change the length of a column by executing the ALTER TABLE table_name MODIFY/CHANGE COLUMN DDL statement in a MySQL database and a MySQL tenant of OceanBase Database.

Note

In the table, a hyphen (-) indicates none.

Column type in a MySQL database Allowed operation Column type in a MySQL tenant of OceanBase Database Allowed operation
INT Increase and decrease the length INTEGER Increase and decrease the length
TINYINT Increase and decrease the length TINYINT Increase and decrease the length
SMALLINT Increase and decrease the length SMALLINT Increase and decrease the length
MEDIUMINT Increase and decrease the length MEDIUMINT Increase and decrease the length
BIGINT Increase and decrease the length BIGINT Increase and decrease the length
BOOL - BOOLEAN -
DECIMAL Increase and decrease the length DECIMAL Increase the length
NUMERIC Increase and decrease the length NUMERIC Increase the length
REAL Increase and decrease the length FLOAT Increase and decrease the length
DOUBLE Increase and decrease the length DOUBLE Increase and decrease the length
FLOAT Increase and decrease the length FLOAT Increase and decrease the length
BIT Increase and decrease the length BIT Increase and decrease the length
CHAR Increase and decrease the length CHAR Increase the length
NCHAR Increase and decrease the length CHAR Increase the length
VARCHAR Increase and decrease the length VARCHAR Increase the length
BINARY Increase and decrease the length BINARY -
VARBINARY Increase and decrease the length VARBINARY Increase the length
LONG_VARBINARY - BLOB -
YEAR Increase and decrease the length YEAR Increase the length (the length is fixed to be 4 bytes)
DATE - DATE -
TIME Increase and decrease the length TIME Increase the length
TIMESTAMP Increase and decrease the length TIMESTAMP Increase the length
DATETIME Increase and decrease the length DATETIME Increase the length
TINYBLOB - TINYBLOB -
MEDIUMBLOB - MEDIUMBLOB -
BLOB - BLOB -
LONGBLOB - LONGBLOB -
TINYTEXT - TINYTEXT -
MEDIUMTEXT - MEDIUMTEXT -
TEXT - TEXT -
LONGTEXT - LONGTEXT -
ENUM Increase and decrease the length ENUM Increase the length
SET Increase and decrease the length SET Increase the length
JSON - JSON -

Previous topic

Change the length of a constrained column
Last

Next topic

Delete a constrained column
Next