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

V3.3.1Community Edition

  • Product updates
  • Product Introduction
    • What is OMS Community Edition?
    • Architecture
      • Overview
      • Hierarchical functional system
      • Basic components
    • Limits
    • Terms
  • Deployment Guide
    • Overview
    • System requirements
    • Resource configuration specifications
    • Prepare the environment
    • Deploy a time-series database (Optional)
    • Deploy OMS Community Edition on a single node
    • Deploy OMS Community Edition on multiple nodes in a single region
    • Deploy OMS Community Edition on multiple nodes in multiple regions
    • Check the deployment
    • Scale out OMS Community Edition
  • User Guide
    • OMS Community Edition console
      • Log on to the OMS Community Edition console
      • Overview
      • User center
        • Configure user information
        • Change your logon password
        • Log off
    • Users and privileges
      • Create a database user
      • User privileges
      • Enable binlogs for the MySQL database
    • Manage data sources
      • Add a data source
        • Add an OceanBase Community Edition data source
        • Add a MySQL data source
        • Add a TiDB data source
        • Add a Kafka data source
        • Add a RocketMQ data source
      • View data source information
      • Copy a data source
      • Edit a data source
      • Delete a data source
    • Data migration
      • Overview
      • Supported DDL operations for incremental migration and limits
      • Create a data migration project
        • Create a project to migrate data from a MySQL database to OceanBase database Community Edition
        • Create a project to migrate data from OceanBase database Community Edition to a MySQL database
        • Migrate data within OceanBase database Community Edition
        • Create an active-active disaster recovery project in OceanBase database Community Edition
        • Create a project to migrate data from a TiDB database to OceanBase database Community Edition
      • Manage data migration projects
        • View details of a data migration project
        • Start, pause, and resume a data migration project
        • # Release a data migration project
        • Delete a data migration project
        • Use tags to manage data migration projects
        • Download and import the settings of migration objects
      • Configure matching rules for migration objects
    • Data synchronization
      • Overview
      • Data formats
      • Create a data synchronization project
        • Create a project to synchronize data from an OceanBase database Community Edition to a Kafka instance
        • Create a project to synchronize data from an OceanBase database Community Edition to a RocketMQ instance
      • Manage data synchronization projects
        • View details of a data synchronization project
        • Start, pause, and resume a data synchronization project
        • Release and delete a data synchronization project
        • Use tags to manage data synchronization projects
        • Download and import the settings of synchronization objects
    • OPS & Monitoring
      • Go to the overview page
      • Server
        • View server information
        • Update the quota
        • View server logs
        • Paths of component logs
      • Components
        • Store
          • Create a store
          • View details of a store
          • Update the configurations of a store
          • Start and pause a store
          • Destroy a store
        • Connector
          • View details about a connector
          • Start and pause a connector
          • Migrate a connector
          • Update the configurations of a connector
          • Batch O&M
          • Delete a connector
        • JDBCWriter
          • View details of a JDBCWriter
          • Start and pause a JDBCWriter
          • Migrate a JDBCWriter
          • Update the configurations of a JDBCWriter
          • Batch O&M
          • Delete a JDBCWriter
        • Checker
          • View details of a checker
          • Start and pause a checker
          • Rerun and recover a checker
          • Update the configurations of a checker
          • Delete a checker
      • O&M ticket
        • View details of an O&M ticket
        • Skip a ticket or sub-ticket
        • Retry a ticket or sub-ticket
      • Component parameters
        • Store parameters
          • Parameters of a MySQL store
          • Parameters of an OceanBase store
        • Connector parameters
          • Parameters of a destination RocketMQ instance
          • Parameters of a DataflowSink instance
          • Parameters of a destination Kafka instance
          • Parameters of a source database in full migration
          • Parameters for intermediate-layer synchronization
        • JDBCWriter parameters
        • Checker parameters
    • System management
      • User management
      • Alert center
        • View project alerts
        • View system alerts
        • Manage alert settings
      • Associate with OCP
      • System Parameters
        • Modify system parameters
        • Modify HA configurations
  • 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
    • Overview
    • Upgrade OMS Community Edition in single-node deployment mode
    • Upgrade OMS Community Edition in multi-node deployment mode
    • FAQ

Download PDF

Product updates What is OMS Community Edition? Overview Hierarchical functional system Basic components Limits Terms Overview System requirements Resource configuration specifications Prepare the environment Deploy a time-series database (Optional) Deploy OMS Community Edition on a single node Deploy OMS Community Edition on multiple nodes in a single region Deploy OMS Community Edition on multiple nodes in multiple regions Check the deployment Scale out OMS Community Edition Log on to the OMS Community Edition console Overview Create a database user User privileges Enable binlogs for the MySQL database View data source information Copy a data source Edit a data source Delete a data source Overview Supported DDL operations for incremental migration and limits Configure matching rules for migration objects Overview Data formats Go to the overview page User management Associate with OCP 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 Obtain the status of a migration project Obtain the status of a synchronization project Overview Upgrade OMS Community Edition in single-node deployment mode Upgrade OMS Community Edition in multi-node deployment mode FAQ
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. V3.3.1
iconOceanBase Migration Service
V 3.3.1Community 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

User privileges

Last Updated:2026-04-14 07:41:13  Updated
share
What is on this page
User privileges required when a MySQL database serves as the source
User privileges required when a MySQL database serves as the destination
User privileges required when OceanBase Community Edition serves as the source
User privileges required when OceanBase Community Edition serves as the destination
User privileges required when a Kafka database serves as the destination
User privileges required when a RocketMQ database serves as the destination

folded

share

Before you migrate data between databases by using OceanBase Migration Service (OMS) Community Edition, make sure that you have created a database user for each data source as the migration or synchronization user. These users must have the required privileges on the source and destination data sources.

User privileges required when a MySQL database serves as the source

  • The database user must have the read privilege on the database from which data is migrated.

    GRANT SELECT ON <database_name>.* TO '<user_name>';
    
  • The database user must have the REPLICATION CLIENT and REPLICATION SLAVE privileges to perform incremental synchronization on a MySQL database.

    GRANT REPLICATION CLIENT, REPLICATION SLAVE ON *.* TO <user_name> WITH GRANT OPTION;
    

    If you select Allow OMS to automatically write incremental heartbeat data to the instance during incremental synchronization when you add a MySQL data source, OMS needs to create the drc.heartbeat table in the MySQL database and keep the table up to date. In that case, the MySQL database user must have the privileges to create and write the table. For more information about how to add a data source, see Add a MySQL data source.

    • Grant a database user the privilege to create the drc.heartbeat table:

      GRANT CREATE ON drc.heartbeat TO '<user_name>';
      
    • Grant a database user the privilege to write the drc.heartbeat table:

      GRANT INSERT, UPDATE, DELETE ON drc.heartbeat TO '<user_name>';
      
  • The database user must have the SELECT *.* privilege to synchronously pull incremental logs.

    GRANT SELECT ON *.* TO '<user_name>';
    
  • You must enable binlogs for the MySQL database.

    When OMS is performing a full data migration project, it reads the binlogs of the MySQL database to synchronize incremental data to the destination database in real time. The binlog configuration of the MySQL database is checked in the precheck step of a data migration project. Before you migrate incremental data from a MySQL database by using OMS, you must enable binlogs for the MySQL database.

    1. Log on to the host where the self-managed MySQL database is deployed.

    2. Edit the my.cnf file of the MySQL database.

      The my.cnf file is stored in the /etc/ directory by default.

      log_bin=mysql_bin
      binlog_format=row
      binlog_row_image=full // This setting is required if the source database version is MySQL 5.6 or later.
      
    3. Restart the MySQL database.

      $Mysql_Dir must be replaced with the installation path of the MySQL database.

      [$Mysql_Dir]/bin/mysqladmin -u root -p ******
      [$Mysql_Dir]/bin/safe_mysqld &
      
    4. Log on to the self-managed MySQL database and execute the following SQL statement to confirm that the binlog feature is enabled:

      show variables like '%log_bin%';
      

      In the command output, both log bin and sql log bin must be ON to indicate that the binlog feature is enabled.

User privileges required when a MySQL database serves as the destination

Run the following command to grant privileges to the user in the MySQL database:

GRANT <privilege_type> ON <database_name>.<table_name> TO '<user_name>'@'<host_name>' [WITH GRANT OPTION];
Parameter Description
privilege_type Grant SELECT, INSERT, UPDATE, and other operation privileges to the account. To grant all privileges to the account, set this parameter to ALL.
database_name The name of the database. To grant operation privileges on all databases to the account, set this parameter to an asterisk (*).
table_name The name of the table. To grant operation privileges on all tables to the account, set this parameter to an asterisk (*).
user_name The account to which privileges are granted.
host_name The host from which the account is allowed to log on to the database. To allow the account to log on to the database from any host, set this parameter to a percent sign (%).
WITH GRANT OPTION Grant the account the privilege to use the GRANT command. This parameter is optional.

User privileges required when OceanBase Community Edition serves as the source

To synchronize data from OceanBase Community Edition to a Kafka or RocketMQ database, the user must have the following privileges on the source:

  • SELECT privilege on the source business database.

  • SELECT privilege on the OceanBase, information_schema, and MySQL databases of the source tenant.

  • To synchronize incremental data, you need to create a user under the sys tenant of OceanBase Community Edition and grant the SELECT ON *.* privilege to the user.

    The username and password must be the same as those in the config.yaml file.

User privileges required when OceanBase Community Edition serves as the destination

To migrate data from a MySQL database to OceanBase Community Edition, the user must have the following privileges on the destination:

  • SELECT, INSERT, UPDATE, and DELETE privileges on the business database.

  • SELECT privilege on the OceanBase, information_schema, and MySQL databases.

User privileges required when a Kafka database serves as the destination

If the Kafka database requires authentication, see Add a Kafka data source.

To synchronize data to a Kafka database, the user must have privileges to perform the following operations:

  • Create and view topics.

  • View topic partition information.

  • Write records.

  • Read records.

User privileges required when a RocketMQ database serves as the destination

To synchronize data to a RocketMQ database, the user must have privileges to perform the following operations:

  • Create and view topics.

  • View the information of the topic message queue.

  • Write records.

  • Read records.

Previous topic

Create a database user
Last

Next topic

Enable binlogs for the MySQL database
Next
What is on this page
User privileges required when a MySQL database serves as the source
User privileges required when a MySQL database serves as the destination
User privileges required when OceanBase Community Edition serves as the source
User privileges required when OceanBase Community Edition serves as the destination
User privileges required when a Kafka database serves as the destination
User privileges required when a RocketMQ database serves as the destination