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

Deploy OMS Community Edition on a single node

Last Updated:2026-04-14 07:41:13  Updated
share
What is on this page
Prerequisites
Procedure

folded

share

This topic describes how to deploy OceanBase Migration Service (OMS) Community Edition on a single node.

Prerequisites

  • The installation environment meets the system requirements. For more information, see System requirements.

  • The MetaOB cluster is prepared as the OMS Community Edition MetaDB.

  • The OMS Community Edition installation package is obtained. Generally, the package is a tar.gz file whose name starts with oms Community Edition.

Procedure

  1. Log on to the server where OMS Community Edition is to be deployed.

  2. Optional. Deploy a time-series database.

    If you need to collect and display OMS Community Edition monitoring data, deploy a time-series database. Otherwise, you can skip this step. For more information, see Deploy a time-series database.

  3. Prepare the configuration file.

    Edit the OMS Community Edition configuration file in the appropriate directory. For example, you can create the config.yaml configuration file in the /root/ directory.

    You must replace the sample values of required parameters based on your actual deployment environment. Optional parameters are also described in this topic. You can modify the optional parameters as needed.

    Notice:

    In the config.yaml file, you must specify the value in the parameter: value format. A space is required after the colon (:).

    • The following example describes a template of the config.yaml file:

      # The information about OMS MetaDB.
      oms_meta_host: ${oms_meta_host}
      oms_meta_port: ${oms_meta_port}
      oms_meta_user: ${oms_meta_user}
      oms_meta_password: ${oms_meta_password}
      
      # You can customize the names of the following three databases, which are created in the MetaDB when you deploy OMS.
      drc_rm_db: ${drc_rm_db}
      drc_cm_db: ${drc_cm_db}
      drc_cm_heartbeat_db: ${drc_cm_heartbeat_db}
      
      # The user that consumes the incremental data of OceanBase Database.
      # To read the incremental logs of OceanBase Database, create the user in the SYS tenant.
      # You must create the drc user in the SYS tenant of the OceanBase cluster to be migrated and specify the drc user in the config.yaml file.
      drc_user: ${drc_user}
      drc_password: '${drc_password}'
      
      # Configure the OMS cluster.
      # In single-node deployment mode, the IP address of the server where OMS is deployed is used. We recommend that you use an internal IP address.
      cm_url: ${cm_url}
      cm_location: ${cm_location}
      # The cm_region parameter is not required for single-node deployment.
      # cm_region: ${cm_region}
      # The cm_region_cn parameter is not required for single-node deployment.
      # cm_region_cn: ${cm_region_cn}
      cm_is_default: true
      cm_nodes:
       - ${cm_nodes}
      
      # Configurations of the time-series database.
      # Default value: false. To enable metric reporting, set the parameter to true.
      # tsdb_enabled: false 
      # If the tsdb_enabled parameter is set to true, delete comments for the following parameters and specify the values based on your actual configurations.
      # tsdb_service: 'INFLUXDB'
      # tsdb_url: '${tsdb_url}'
      # tsdb_username: ${tsdb_user}
      # tsdb_password: ${tsdb_password}
      
      Parameter Description Required
      oms_meta_host The IP address of MetaDB, which can be the IP address of a MySQL database or a MySQL tenant of OceanBase Database.
      Notice:
      OceanBase Database V2.0 or later is required.
      Yes
      oms_meta_port The port number of MetaDB. Yes
      oms_meta_user The username of MetaDB. Yes
      oms_meta_password The password of the MetaDB username. Yes
      drc_rm_db The name of the database for the OMS console. Yes
      drc_cm_db The name of the MetaDB for the CM service. Yes
      drc_cm_heartbeat_db The name of the heartbeat database for the CM service. Yes
      drc_user The user that reads the incremental logs of OceanBase Database. You need to create the user in the SYS tenant. For more information, see the "User privileges" topic in OMS Community Edition User Guide. No
      drc_password The password of the drc user. No
      cm_url The URL of the OMS Community Edition CM service. Example: http://xxx.xxx.xxx.1:8088.
      Note:
      In single-node deployment mode, the IP address of the server where OMS is deployed is used. We recommend that you do not set it to http://127.0.0.1:8088.
      Yes
      cm_location The code of the region. Value range: [0,127]. You can select one number for each region. Yes
      cm_region The name of the region. Example: cn-jiangsu.
      Notice:
      If you use OMS Community Edition with the Alibaba Cloud Multi-Site High Availability (MSHA) service in an active-active disaster recovery scenario, use the region configured for the Alibaba Cloud service.
      No
      cm_nodes The IP addresses of servers on which the OMS Community Edition CM service is deployed. Yes
      cm_is_default Indicates whether the OMS Community Edition CM service is enabled by default. No. Default value: true
      tsdb_enabled Indicates whether metric reporting is enabled for monitoring. Valid values: true and false. No. Default value: false
      tsdb_service The type of the time-series database. Valid values: INFLUXDB and CERESDB. No. Default value: CERESDB
      tsdb_url The IP address of the server where InfluxDB is deployed. You need to modify this parameter based on the actual environment if you set the tsdb_enabled parameter to true. No
      tsdb_username The username used to connect to the time-series database. You need to modify this parameter based on the actual environment if you set the tsdb_enabled parameter to true. After you deploy the time-series database, you must manually create a user and specify the username and password. No
      tsdb_password The password used to connect to the time-series database. You need to modify this parameter based on the actual environment if you set the tsdb_enabled parameter to true. No
    • The following example describes a template of the config.yaml file:

      oms_meta_host: xxx.xxx.xxx.1
      oms_meta_port: 2883
      oms_meta_user: root@oms#obcluster
      oms_meta_password: oms
      drc_rm_db: oms_rm
      drc_cm_db: oms_cm
      drc_cm_heartbeat_db: oms_cm_heartbeat
      drc_user: drc_user_name
      drc_password: 'OceanBase#oms'
      cm_url: http://xxx.xxx.xxx.2:8088
      cm_location: 100
      cm_region: cn-anhui
      cm_region_cn: Anhui
      cm_is_default: true
      cm_nodes:
       - xxx.xxx.xxx.2
      tsdb_service: 'INFLUXDB'
      tsdb_enabled: true
      tsdb_url: 'xxx.xxx.xxx.4:8086'
      tsdb_username: username
      tsdb_password: 123456
      
  4. Load the downloaded OMS Community Edition image file to the local image repository of the Docker container.

    docker load -i <The storage path of the OMS Community Edition image>
    
  5. Run the following command to start the container.

    You can access the OMS Community Edition console by using an HTTP or HTTPS URL. To securely access the OMS Community Edition console, install an SSL certificate and mount it to the specified directory in the container. The certificate is not required for HTTP access.

    OMS_HOST_IP=xxx
    CONTAINER_NAME=oms_xxx
    IMAGE_TAG=feature_x.x.x-ce
    
    docker run -dit --net host \
    -v /data/config.yaml:/home/admin/conf/config.yaml \
    -v /data/oms/oms_logs:/home/admin/logs \
    -v /data/oms/oms_store:/home/ds/store \
    -v /data/oms/oms_run:/home/ds/run \
    # If you mount the SSL certificate in the OMS container, you must set the following two parameters.
    -v /data/oms/https_crt:/etc/pki/nginx/oms_server.crt 
    -v /data/oms/https_key:/etc/pki/nginx/oms_server.key
    -e OMS_HOST_IP=${OMS_HOST_IP} \
    --privileged=true \
    --pids-limit -1 \
    --ulimit nproc=65535:65535 \
    --name ${CONTAINER_NAME} \
    work.oceanbase-dev.com/obartifact-store/oms:${IMAGE_TAG} 
    
    Parameter Description
    OMS_HOST_IP The IP address of the host.
    CONTAINER_NAME The name of the container.
    IMAGE_TAG The tag of the image. To view the image tag, execute the docker images statement after you load the image on the host.
    /data/oms/oms_logs
    /data/oms/oms_store
    /data/oms/oms_run
    You can replace /data/oms/oms_logs, /data/oms/oms_store, and /data/oms/oms_run with the mount directories created on the server where OMS is deployed. The mount directories store the logs generated during the operating of OMS and generated by stores and synchronization components, respectively, to persistently retain the logs on the server. Notice The mount directories must remain unchanged during subsequent redeployment or upgrades.
    /home/admin/logs
    /home/ds/store
    /home/ds/run
    /home/admin/logs, /home/ds/store, and /home/ds/run are default directories in the container and cannot be modified.
    /data/oms/https_crt (optional)
    /data/oms/https_key (optional)
    The mount directory of the SSL certificate in the OMS Community Edition container. Specify the directory based on your actual configurations. If you mount an SSL certificate, the NGINX service in the OMS Community Edition container runs in HTTPS mode. In this case, you can access the OMS Community Edition console by using only the HTTPS URL.
    privileged Specifies whether to grant the container scaling privilege.
    pids-limit Specifies whether to limit the number of container processes. The value -1 indicates that the number is unlimited.
    ulimit nproc The maximum number of user processes.
  6. Access the new container.

    docker exec -it  ${CONTAINER_NAME} bash  
    

    Notice

    CONTAINER_NAME represents the name of the container.

  7. Perform metadata initialization in the root directory.

    bash /root/docker_init.sh
    

    After you run the command, the following initialization process is performed:

    1. Initialize the data in the MetaDB.

    2. Generate configuration files for respective components.

    3. Restart all components.

    4. Initialize OMS Community Edition resource tags and resource groups.

    In the execution of the docker_init.sh script, pay attention to the output of command lines. When the execution is completed, the following message is displayed: [Completed] All initialization steps are executed.

    Notice:

    The execution takes 2 to 4 minutes to complete. Be patient and do not interrupt the process.

    When you set a MySQL tenant of OceanBase Database as the MetaDB, the following error may occur: ERROR 1235 (0A000): Modify large text/lob column not supported, which can be ignored.

    The docker_init.sh script outputs the following information:

    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    # [Step 1] Verify the config.yaml configuration file.
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    python -m omsflow.scripts.units.oms_cluster_config --check /home/admin/conf/config.yaml
    
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    # [Step 2] Create the OMS MetaDB.
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    python -m omsflow.scripts.units.oms_init_manager --init-db
    
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    # [Step 3] Create the configuration files for OMS components.
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    python -m omsflow.scripts.units.oms_init_manager --init-config-file
    
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    # [Step 4] Restart all OMS components. This step takes about two minutes to complete.
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    supervisorctl restart crond nginx oms_console oms_drc_cm oms_drc_supervisor sshd
    supervisorctl status crond nginx oms_console oms_drc_cm oms_drc_supervisor sshd
    supervisorctl status crond nginx oms_console oms_drc_cm oms_drc_supervisor sshd
    
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    # [Step 5] Initialize OMS resource tags and resource groups.
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    python -m omsflow.scripts.units.oms_cluster_manager add_resource
    
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    # [Completed] All initialization steps are executed.
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    

Previous topic

Deploy a time-series database (Optional)
Last

Next topic

Deploy OMS Community Edition on multiple nodes in a single region
Next
What is on this page
Prerequisites
Procedure