OceanBase
English日本語简体中文
Docs Home
Products
Integrations
Release Notes

Databases

OceanBase DatabaseOceanBase Cloud OceanBase Best Practices

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog Service

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Databases

OceanBase DatabaseOceanBase Cloud OceanBase Best Practices

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog Service
OceanBase DatabaseOceanBase Cloud ToolsConnectors and MiddlewareLifecycle Support Policy

OceanBase Migration Service

V4.2.12Community Edition
  • OMS Documentation
  • What's New
  • OMS Community Edition Introduction
    • What is OMS Community Edition?
    • Terms
    • OMS Community Edition HA
    • Architecture
      • Overview
      • Hierarchical functional system
      • Basic components
    • Limitations
  • Quick Start
    • Data migration process
    • Data synchronization process
  • Deploy OMS Community Edition
    • Deployment modes
    • System and network requirements
    • Memory and disk requirements
    • Prepare the environment
    • Deploy by using Docker
      • 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
      • Scale out deployment
      • Check the deployment
      • Deploy a time-series database (Optional)
    • Deploy by using k8s
      • Single-node deployment
      • Single-region multi-node deployment
      • Multi-region multi-node deployment
      • Scale out
    • Integrate the OIDC protocol into OMS Community Edition to implement SSO
  • OMS Community Edition console
    • Log in to the console of OMS Community Edition
    • Overview
    • User center
      • Configure user information
      • Change your logon password
      • Log off
  • Data migration
    • Overview
    • Migrate data from a MySQL database to OceanBase Database Community Edition
    • Migrate data from HBase to OBKV
    • Migrate incremental data from OBKV to HBase
    • Migrate data from a Milvus database to OceanBase Database Community Edition
    • Migrate data from a Redis database to an OBKV-Redis database
    • Migrate data between tenants of 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 PostgreSQL database to OceanBase Database Community Edition
    • Migrate data from Hive to OceanBase Database Community Edition
    • Migrate data from an ElasticSearch database to OceanBase Database Community Edition
    • Migrate data from OceanBase Database Community Edition to an ElasticSearch database
    • Migrate data from a MongoDB database to OceanBase Database Community Edition
    • Migrate data from a StarRocks database to OceanBase Database Community Edition
    • Migrate data from a Qdrant database to OceanBase Database Community Edition
    • Migrate data from a Doris database to OceanBase Database Community Edition
    • Manage data migration tasks
      • View details of a data migration task
      • Change the name of a data migration task
      • View and modify migration objects
      • Manage computing platforms
      • Use tags to manage data migration tasks
      • Perform batch operations on data migration tasks
      • Download and import settings of migration objects
      • Start and pause a data migration task
      • Release and delete a data migration task
    • Features
      • DML filtering
      • DDL synchronization
      • Configure matching rules for migration objects
      • Wildcard rules
      • Rename a database table
      • Use SQL conditions to filter data
      • Create and update a heartbeat table
      • Schema migration mechanisms
      • Schema migration operations
      • Set an incremental synchronization timestamp
      • Direct load
    • Supported DDL operations in incremental migration and limits
      • DDL synchronization from MySQL database to OceanBase Community Edition
        • Overview of DDL synchronization from a MySQL database to a MySQL-compatible tenant of OceanBase Database
        • CREATE TABLE
          • Create a table
          • Create a column
          • Create an index or a constraint
          • Create partitions
        • Data type conversion
        • ALTER TABLE
          • Modify a table
          • Operations on columns
          • Operations on constraints and indexes
          • Operations on partitions
        • TRUNCATE TABLE
        • RENAME TABLE
        • DROP TABLE
        • CREATE INDEX
        • DROP INDEX
        • DDL incompatibilities between MySQL database and OceanBase Community Edition
          • Overview
          • Incompatibilities of the CREATE TABLE statement
            • Incompatibilities of CREATE TABLE
            • Column types that are supported to create indexes or constraints
          • Incompatibilities of the ALTER TABLE statement
            • Incompatibilities of ALTER TABLE
            • 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
            • Delete a constrained column
          • Incompatibilities of DROP INDEX operations
      • Supported DDL operations in incremental migration between MySQL-compatible tenants of OceanBase Database
      • Synchronize DDL operations from a PostgreSQL database to OceanBase Database
  • Data synchronization
    • Data synchronization overview
    • Create a task to synchronize data from OceanBase Database Community Edition to a Kafka instance
    • Create a task to synchronize data from OceanBase Database Community Edition to a RocketMQ instance
    • Manage data synchronization tasks
      • View details of a data synchronization task
      • Change the name of a data synchronization task
      • View and modify synchronization objects
      • Use tags to manage data synchronization tasks
      • Perform batch operations on data synchronization tasks
      • Download and import the settings of synchronization objects
      • Start and pause a data synchronization task
      • Release and delete a data synchronization task
    • Features
      • DML filtering
      • DDL synchronization
      • Configure matching rules for synchronization objects
      • Rename a topic
      • Use SQL conditions to filter data
      • Column filtering
      • Data format description
  • Create and manage data sources
    • Create data sources
      • Create an OceanBase-CE data source
      • Create a MySQL data source
      • Create a TiDB data source
      • Create a Kafka data source
      • Create a RocketMQ data source
      • Create a PostgreSQL data source
      • Create an HBase data source
      • Create a Qdrant data source
      • Create a Milvus data source
      • Create a Redis data source
      • Create a Hive data source
      • Create an ElasticSearch data source
      • Create a MongoDB data source
      • Create a StarRocks data source
      • Create a Doris data source
    • Manage data sources
      • View data source information
      • Copy a data source
      • Edit a data source
      • Delete a data source
      • Cache system views
    • Create a database user
    • User privileges
    • Enable binlogs for the MySQL database
  • OPS & Monitoring
    • O&M overview
    • Go to the overview page
    • Server
      • View server information
      • Update the quota
      • View server logs
      • Delete a server
    • Components
      • Store
        • Create a Store component
        • View details of a Store component
        • Update the configurations of a Store component
        • Start and pause a Store component
        • Delete a Store component
      • Incr-Sync
        • View details of an Incr-Sync component
        • Start and pause an Incr-Sync component
        • Migrate an Incr-Sync component
        • Update the configurations of an Incr-Sync component
        • Batch O&M
        • Delete an Incr-Sync component
      • Full-Import
        • View details of a Full-Import component
        • Pause a Full-Import component
        • Rerun and resume a Full-Import component
        • Update the configurations of a Full-Import component
        • Delete 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
        • Update the configurations of a Full-Verification component
        • Delete a Full-Verification component
      • Component parameters
        • Coordinator
        • Condition
        • Source Plugin
          • Overview
          • StoreSource
          • DataFlowSource
          • LogProxySource
          • KafkaSource (TiDB)
          • HBaseSource
          • HiveSource
          • ElasticSearchSource
          • MongoDBSource
        • Sink Plugin
          • Overview
          • JDBC-Sink
          • KafkaSink
          • DatahubSink
          • RocketMQSink
          • HBaseSink
          • HiveSink
        • Store parameters
          • Parameters of a MySQL store
          • Parameters of an OceanBase store
        • Parameters of the CM component
        • Parameters of the Supervisor component
        • Parameters of the Full-Verification component
    • O&M Task
      • View O&M tasks
      • Skip a task or subtask
      • Retry a task or subtask
  • System management
    • Permission Management
      • Overview
      • Manage users
      • Manage departments
    • Alert center
      • View task alerts
      • View system alerts
      • Manage alert settings
    • Associate with OCP clusters
    • System parameters
      • Modify system parameters
      • Modify HA configurations
    • SSO management
      • Overview
      • Create an SSO integration
      • Enable or disable an SSO integration
      • Edit an SSO integration
      • Delete an SSO integration
  • OMS Community Edition O&M
    • Manage OMS services
    • OMS logs
    • 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
    • Component tuning
      • Full/Incremental data migration performance optimization
    • Set throttling
  • Reference Guide
    • API Reference
      • Overview
      • CreateProject
      • StartProject
      • StopProject
      • ResumeProject
      • ReleaseProject
      • DeleteProject
      • ListProjects
      • DescribeProject
      • DescribeProjectSteps
      • DescribeProjectStepMetric
      • DescribeProjectProgress
      • DescribeProjectComponents
      • ListProjectFullVerifyResult
      • StartProjectsByLabel
      • StopProjectsByLabel
      • CreateMysqlDataSource
      • CreateMySQLMasterSlaveDataSource
      • CreateOceanBaseDataSource
      • CreateKafkaDataSource
      • ListDataSource
      • DeleteDataSource
      • CreateLabel
      • ListAllLabels
      • ListFullVerifyInconsistenciesResult
      • ListFullVerifyCorrectionsResult
      • UpdateStore
      • UpdateFullImport
      • UpdateIncrSync
      • UpdateFullVerification
      • UploadFile
      • SubmitPreCheck
      • GetPreCheckResult
      • RetryPreCheck
    • 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
    • Telemetry parameters
    • Create a trigger
  • Upgrade Guide
    • Overview
    • Upgrade in single-node deployment mode
    • Upgrade in multi-node deployment mode
    • Hot upgrade OMS Community Edition
    • Upgrade the CDC library
    • FAQ
  • FAQ
    • General O&M
      • How do I modify the resource quotas of an OMS container?
      • Clear files in the Store component
      • How do I troubleshoot the OMS server down issue?
      • Deploy InfluxDB for OMS
      • Increase the disk space of the OMS host
    • 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?
    • Data synchronization
      • FAQ about synchronization to a message queue
        • What are the strategies for ensuring the message order in incremental data synchronization to Kafka
      • Performance troubleshooting and tuning for data synchronization from OceanBase Community Edition to Kafka
    • 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?
        • How do I query the verification result files of the Checker component of OMS?
        • Garbled characters in the Latin1 character set
        • What do I do if the target 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?
      • Incremental synchronization
        • How do I skip DDL statements?
        • How do I update whitelists and blacklists?
        • What are the application scope and limits of ETL?
    • Logon and password
      • What do I do if my logon password is locked?
    • Installation and deployment
      • How do I upgrade Store?
      • What do I do when the "Failed to fetch" error is reported?
      • Change port numbers for components
      • Switching between the primary and standby OMS MetaDBs

Download PDF

Document Feedback
  1. Documentation Center
  2. OceanBase Migration Service
  3. V4.2.12

Upgrade in multi-node deployment mode

Last Updated:2026-09-04 08:14:03

Upgrade procedure

This topic describes how to upgrade OceanBase Migration Service (OMS) Community Edition in multi-node deployment mode to V4.2.12.

Notice

Only OMS Community Edition V4.2.0 to V4.2.11 can be upgraded to OMS Community Edition V4.2.12. OMS Community Edition earlier than V4.2.0 cannot be upgraded to V4.2.12.

Upgrade procedure

  1. If the high availability (HA) feature is enabled, disable it.

    1. Log in to the OMS Community Edition console.

    2. In the left-side navigation pane, click System Management > System Parameters.

    3. On the System Parameters page, find ha.config.

    4. Click the edit icon next to Value.

    5. In the Modify Value dialog box, set enable to false to disable the HA feature.

  2. Load the downloaded OMS Community Edition installation package to the local image repository of the Docker container.

    docker load -i <OMS Community Edition installation package>
    
  3. Back up the database.

    1. Log in to IP1 and IP2, respectively, and stop the OMS Community Edition V4.2.11 containers on the two servers.

      sudo docker stop ${CONTAINER_NAME}
      

      Note

      CONTAINER_NAME is the name of the created container.

    2. Log in to the CM heartbeat database specified in the configuration file, delete some unnecessary records in the database to save backup time.

      # Log in to the CM heartbeat database specified in the configuration file.
      mysql -hxxx.xxx.xxx.1 -P<port> -u<username> -p<password> -Dcm_hb_4211
      
      # Delete unnecessary records.
      # heatbeat_sequence is used to report heartbeats and obtain auto-increment IDs.
      delete from heatbeat_sequence where id < (select max(id) from heatbeat_sequence);
      
    3. Run the following command to manually back up the rm, cm, and cm_hb databases to SQL files and confirm that the sizes of the files are not 0.

      In multi-region scenarios, you need to back up the cm_hb databases in all regions. For example, if two regions are involved, you need to back up four databases: rm, cm, cm_hb1, and cm_hb2.

      mysqldump -hxxx.xxx.xxx.1 -P<port> -u<username> -p<password> --triggers=false rm_4211 > /home/admin/rm_4211.sql
      
      mysqldump -hxxx.xxx.xxx.1 -P<port> -u<username> -p<password> --triggers=false cm_4211 > /home/admin/cm_4211.sql
      
      mysqldump -hxxx.xxx.xxx.1 -P<port> -u<username> -p<password> --triggers=false cm_hb_4211 > /home/admin/cm_hb_4211.sql
      

      The following table describes the backup parameters.

      Parameter
      Description
      -h The host information to be exported.
      -P The port number for connecting to the database.
      -u The username for the connection.
      -p The password for connecting to the database.
      --triggers Specifies whether to export triggers. The default value is false (not to export).
      rm_4211, cm_4211, cm_hb_4211 This parameter specifies to back up the rm, cm, and cm_hb databases to SQL files. The format is database name > path of SQL file.sql. You must replace the values with those in your actual environment.
  4. Start the OMS Community Edition V4.2.12 container.

    OMS Community Edition supports accessing the OMS Community Edition console through HTTP and HTTPS protocols. If you want to securely access OMS Community Edition, you can configure an HTTPS self-signed certificate and mount it to the specified directory in the container. If you want to access OMS Community Edition through the HTTP protocol, you do not need to configure it.

    Notice

    • When you start the OMS Community Edition V4.2.12 container, the paths of the three mounted disks must be consistent with those before the upgrade.
      You can run the sudo docker inspect ${CONTAINER_NAME} | grep -A5 'Binds' command to view the paths of the disks mounted in the previous OMS Community Edition container.

    • OMS Community Edition V3.3.1 and later versions support the new parameter -e IS_UPGRADE=true. This parameter is only applicable in upgrade scenarios and must be added in such scenarios.

    • Replace work.oceanbase-dev.com/obartifact-store/oms:${IMAGE_TAG} with the name of the image actually imported by executing the docker load -i command.

    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 want to mount the HTTPS certificate in the OMS Community Edition container, you need to 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} \
    -e IS_UPGRADE=true \
    --privileged=true \
    --pids-limit -1 \
    --ulimit nproc=65535:65535 \
    --name ${CONTAINER_NAME} \
    work.oceanbase-dev.com/obartifact-store/oms:${IMAGE_TAG}
    

    The following table describes the startup parameters.

    Parameter
    Description
    OMS_HOST_IP The IP address of the host.
    Notice:
    The OMS_HOST_IP values of each node are different.
    CONTAINER_NAME The name of the created container.
    IMAGE_TAG After you load the OMS Community Edition installation package to Docker, you can run the docker images command to obtain the [IMAGE ID] or [REPOSITORY:TAG] of the loaded image, which is the unique identifier of the loaded image, namely, <OMS_IMAGE>.
    /data/oms/oms_logs
    /data/oms/oms_store
    /data/oms/oms_run
    /data/oms/oms_logs, /data/oms/oms_store, and /data/oms/oms_run can be replaced with the mounted directories created on the OMS Community Edition deployment server. These directories store log files generated during OMS Community Edition operation, log pull component files, and synchronization component files. The files are persisted on the server.
    Notice:
    The mounted directories must be retained in the same location during subsequent re-deployments and upgrades.
    /home/admin/logs
    /home/ds/store
    /home/ds/run
    /home/admin/logs, /home/ds/store, and /home/ds/run are fixed directories in the container. The paths cannot be modified.
    /data/oms/https_crt (optional)
    /data/oms/https_key (optional)
    The mounted path of the HTTPS certificate in the OMS Community Edition container. If the HTTPS certificate is mounted, the OMS Community Edition container runs the Nginx service in HTTPS mode. You must access OMS Community Edition in HTTPS mode to use the OMS Community Edition console.
    IS_UPGRADE In upgrade scenarios, you must set IS_UPGRADE=true. Please note that IS_UPGRADE must be in uppercase.
    privileged Grants extended permissions to the container.
    pids-limit Specifies the number of processes in the container. -1 indicates no limit.
    ulimit nproc Specifies the maximum number of user processes.
  5. View the initialization execution status. When OMS service start successfully appears, the upgrade is complete.

    docker logs -f ${CONTAINER_NAME}
    

    Note

    CONTAINER_NAME is the name of the created container.

  6. After the upgrade is complete, confirm that the server list is normal and all servers are in the Online state.

    1. Log in to the OMS Community Edition console.

    2. In the left-side navigation pane, click OPS & Monitoring > Servers.

    3. On the Servers page, view the server list and confirm that the status of all servers is Online.

  7. After the two nodes are upgraded, enable the HA feature and set related parameters on the System Parameters page.

    1. Log in to the OMS Community Edition console.

    2. In the left-side navigation pane, click System Management > System Parameters.

    3. On the System Parameters page, find ha.config.

    4. Click the edit icon next to Value.

    5. In the Modify Value dialog box, set enable to true to enable the HA feature and record the time T2.

      You can also set perceiveStoreClientCheckpoint to true at the same time. If you set it to true, you do not need to record T1 and T2.

    6. If you set perceiveStoreClientCheckpoint to false, you need to modify the value of refetchStoreIntervalMin (the time interval for pulling data, in minutes) based on your business needs. The value of refetchStoreIntervalMin must be greater than T2-T1.

      If you set perceiveStoreClientCheckpoint to true, you do not need to modify the value of refetchStoreIntervalMin. HA starts the Store based on the earliest timestamp of the downstream component minus the value of refetchStoreIntervalMin. For example, if the earliest timestamp of the downstream connector/jdbc-connector is 12:00:00 and the value of refetchStoreIntervalMin is 30 minutes, HA starts the Store at 11:30:00.

      After the HA feature is enabled, HA performs the following operations on components:

      Status of the task/component before the upgrade Status after the upgrade (HA is not enabled) Status after the upgrade (HA is enabled)
      The task is running normally.
      • The Incr-Sync component is running normally.
      • The Store component is running normally.
      The status of the task remains unchanged.
      • The Incr-Sync component fails.
      • The Store component fails.
      The status of the task remains unchanged.
      • HA automatically starts the Incr-Sync component.
      • HA creates a new Store component based on the configuration. For more information, see Modify HA configurations.
      The task fails.
      • The Incr-Sync component fails.
      • The Store component fails.
      The task is paused.
      • The Incr-Sync component is paused.
      • The Store component is running normally.
      The status of the task remains unchanged.
      • The Incr-Sync component is paused.
      • The Store component fails.
      The status of the task remains unchanged.
      • The Incr-Sync component is paused.
      • HA creates a new Store component based on the configuration. For more information, see Modify HA configurations.
  8. (Optional) If you need to roll back, perform the following steps.

    1. Disable the HA feature following the operation in Step 1.

    2. Stop the new container after the upgrade and record the time T3.

      sudo docker stop ${CONTAINER_NAME}
      
    3. Connect to the metaDB and run the following command.

      drop database rm_4211;
      drop database cm_4211;
      drop database cm_hb_4211;
      
      create database rm_4211;
      create database cm_4211;
      create database cm_hb_4211;
      
    4. Restore the backed-up SQL files to the original database.

      mysql -hxxx.xxx.xxx.1 -P<port> -u<username> -p<password> -e "source /home/admin/rm_4211.sql" -Drm_4211
      
      mysql -hxxx.xxx.xxx.1 -P<port> -u<username> -p<password> -e "source /home/admin/cm_4211.sql" -Dcm_4211
      
      mysql -hxxx.xxx.xxx.1 -P<port> -u<username> -p<password> -e "source /home/admin/cm_hb_4211.sql" -Dcm_hb_4211
      
    5. Start the OMS Community Edition V4.2.11 container.

      sudo docker restart ${CONTAINER_NAME}
      
    6. On the System Parameters page, enable the HA feature and set the refetchStoreIntervalMin parameter to the required value.

      If you perform a rollback, HA automatically takes over the Store component, but you may need to manually restore the Incr-Sync or Full-Import component.

  9. After the upgrade is completed, clear the browser cache and log in.

Previous topic

Upgrade in single-node deployment mode
Last

Next topic

Hot upgrade OMS Community Edition
Next
on this page
Upgrade procedure