OceanBase logo

OceanBase

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

Product Overview
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

OceanBase

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

Product Overview
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.0Community Edition

  • OMS Documentation
  • What's New
  • OMS Community Edition Introduction
    • Limits
    • 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
    • Deploy OMS 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 OMS Community Edition console
    • User center
      • Change your logon password
      • Log off
      • Configure user information
  • Data migration
    • Migrate data from a PostgreSQL database to OceanBase Database Community Edition
    • Overview
    • Migrate data from HBase to OBKV
    • Active-active disaster recovery within OceanBase Database Community Edition
    • Migrate data from a TiDB database to OceanBase Database Community Edition
    • Migrate data from OceanBase Database Community Edition to a MySQL database
    • Migrate data within 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 from OceanBase Community Edition to a MySQL database 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 projects
      • Start and pause a data migration project
      • Manage computing platforms
      • Use tags to manage data migration projects
      • Download and import settings of migration objects
      • View and modify migration objects
      • Change the name of a data migration project
      • Release and delete a data migration project
      • View details of a data migration project
      • Perform batch operations on data migration projects
    • Features
      • Rename a database table
      • Schema migration mechanisms
      • Create and update a heartbeat table
      • 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
    • Create a project to synchronize data from OceanBase Database Community Edition to a RocketMQ instance
    • Data synchronization overview
    • Create a project to synchronize data from OceanBase Database Community Edition to a Kafka instance
    • Manage data synchronization projects
      • View details of a data synchronization project
      • Download and import the settings of synchronization objects
      • View and modify synchronization objects
      • Release and delete a data synchronization project
      • Start and pause a data synchronization project
      • Perform batch operations on data synchronization projects
      • Change the name of a data synchronization project
      • Use tags to manage data synchronization projects
    • Features
      • DDL synchronization
      • 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
    • Create data sources
      • 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 an OceanBase-CE data source
      • Create a MySQL data source
    • Manage data sources
      • Copy a data source
      • Delete a data source
      • Edit a data source
      • View data source information
  • OPS & Monitoring
    • Go to the overview page
    • O&M overview
    • Components
      • 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 project alerts
  • OMS Community Edition O&M
    • OMS logs
    • Set throttling
    • Manage OMS services
    • Component parameters
      • Parameters of the Supervisor component
      • Coordinator
      • Parameters of the CM component
      • Condition
      • Sink Plugin
        • RocketMQSink
        • JDBC-Sink
        • KafkaSink
        • DatahubSink
        • HBaseSink
        • Overview
      • Source Plugin
        • Overview
        • LogProxySource
        • HBaseSource
        • StoreSource
        • KafkaSource (TiDB)
        • DataFlowSource
      • Store parameters
        • Parameters of a MySQL store
        • Parameters of an OceanBase store
    • 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
    • OMS error codes
    • API Reference
      • StopProject
      • UpdateFullImport
      • Overview
      • ListFullVerifyCorrectionsResult
      • ListProjects
      • 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 in single-node deployment mode
    • Upgrade OMS in multi-node deployment mode
    • FAQ
  • FAQ
    • Installation and deployment
      • What do I do when the "Failed to fetch" error is reported?
      • 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?
    • Project 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?
    • General O&M
      • 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?
    • 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 Limits 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 Deploy OMS 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 OMS Community Edition console Change your logon password Log off Configure user information Migrate data from a PostgreSQL database to OceanBase Database Community Edition Overview Migrate data from HBase to OBKV Active-active disaster recovery within OceanBase Database Community Edition Migrate data from a TiDB database to OceanBase Database Community Edition Migrate data from OceanBase Database Community Edition to a MySQL database Migrate data within OceanBase Database Community Edition Migrate data from a MySQL database to OceanBase Database Community Edition Supported DDL operations in incremental migration from OceanBase Community Edition to a MySQL database and limits Supported DDL operations in incremental migration between MySQL tenants of OceanBase Database Start and pause a data migration project Manage computing platforms Use tags to manage data migration projects Download and import settings of migration objects View and modify migration objects Change the name of a data migration project Release and delete a data migration project View details of a data migration project Perform batch operations on data migration projects Rename a database table Schema migration mechanisms Create and update a heartbeat table 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 Create a project to synchronize data from OceanBase Database Community Edition to a RocketMQ instance Data synchronization overview Create a project to synchronize data from OceanBase Database Community Edition to a Kafka instance View details of a data synchronization project Download and import the settings of synchronization objects View and modify synchronization objects Release and delete a data synchronization project Start and pause a data synchronization project Perform batch operations on data synchronization projects Change the name of a data synchronization project Use tags to manage data synchronization projects DDL synchronization 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 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 an OceanBase-CE data source Create a MySQL data source Copy a data source Delete a data source Edit a data source View data source information Go to the overview page O&M overview Update the quota View server logs View server information Retry a task or subtask Skip a task or subtask View O&M tasks Associate with OCP Modify HA configurations Modify system parameters Manage departments Manage users Overview
OceanBase logo

The Unified Distributed Database for the AI Era.

Follow Us
Products
OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
Resources
DocsBlogLive DemosTraining & CertificationTicket
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.0
iconOceanBase Migration Service
V 4.2.0Community 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

TRUNCATE TABLE

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

folded

share

This topic describes the supported conversion scope of TRUNCATE TABLE DDL operations during data migration from a MySQL database to a MySQL tenant of OceanBase Database.

Syntax

The TRUNCATE TABLE statement can be converted for synchronization.

TRUNCATE [TABLE] tbl_name

Previous topic

Operations on partitions
Last

Next topic

RENAME TABLE
Next
What is on this page
Syntax