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 Cloud Platform

V4.2.2

    Download PDF

    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 Cloud Platform
    3. V4.2.2
    iconOceanBase Cloud Platform
    V 4.2.2
    Databases
    • OceanBase Database
    • OceanBase Cloud
    • OceanBase Tugraph
    • Interactive Tutorials
    • OceanBase Best Practices
    Tools
    • OceanBase Cloud Platform
    • OceanBase Migration Service
    • OceanBase Developer Center
    • OceanBase Migration Assessment
    • OceanBase Admin Tool
    • OceanBase Loader and Dumper
    • OceanBase Deployer
    • Kubernetes operator for OceanBase
    • OceanBase Diagnostic Tool
    • OceanBase Binlog Service
    Connectors and Middleware
    • OceanBase Database Proxy
    • Embedded SQL in C for OceanBase
    • OceanBase Call Interface
    • OceanBase Connector/C
    • OceanBase Connector/J
    • OceanBase Connector/ODBC
    • OceanBase Connector/NET
    • V 4.3.6
    • V 4.3.5
    • V 4.3.4
    • V 4.3.3
    • V 4.3.2
    • V 4.3.1
    • V 4.3.0
    • V 4.2.2
    • V 4.0.0 and earlier

    Upgrade an OceanBase cluster

    Last Updated:2026-04-14 07:56:02  Updated
    Share
    What is on this page
    Precautions
    Procedure

    folded

    Share

    This topic describes how to upgrade an OceanBase cluster in the OceanBase Cloud Platform (OCP) console. The upgrade process of OceanBase Database varies based on its version. For more information about the upgrade process of a specific version, visit the official website of OceanBase Database.

    Precautions

    • You must log on to the OCP console with an account that has the permissions to manage the cluster.

    • A cluster of a version earlier than OceanBase Database V4.0 can be upgraded only to a version earlier than V4.0.

    • Optional. To upgrade OceanBase Database earlier than V2.2.60, you must define an upgrade path in the /home/admin/ocp-server/etc/oceanbase_upgrade_dep.yml file of OCP. The upgrade path must be similar to the following example. The parameter configuration method is described at the top of the file.

      ### Omitted.
      - version: 2.2.70
        can_be_upgraded_to:
            - 2.2.71
      - version: 2.2.71
        can_be_upgraded_to:
            - 2.2.72
      - version: 2.2.72
        can_be_upgraded_to:
            - 2.2.73
      - version: 2.2.73         # The target version must completely appear in this format, including the two lines below:
        can_be_upgraded_to:
            - 2.2.74
      

      Note

      The preceding example shows that OceanBase Database can be upgraded from V2.2.72, V2.2.71, V2.2.70, and earlier to V2.2.73, but not to V2.2.74.

    • All RPM packages required for the upgrade have been uploaded, such as oceanbase-x.x.x-YYYYMMDDhhmmss.el7.x86_64.rpm or oceanbase-x.x.x-YYYYMMDDhhmmss.el7.aarch64.rpm.

    • If tenants in the cluster are in primary/standby relationships:

      • If the cluster of a standby tenant associated with the primary tenant in the current cluster is of a version earlier than that of the current cluster, to avoid data synchronization exceptions between the primary and standby tenants, we recommend that you first upgrade the cluster of the standby tenant, or switch the primary tenant in the current cluster to a standby tenant. For more information about how to perform a switchover, see Switchover.
      • We recommend that you keep the cluster versions of the primary and standby tenants the same.

    Procedure

    1. Log on to the OCP console.

    2. In the left-side navigation pane, click Clusters to go to the Clusters page.

    3. In the Clusters list, find the target cluster and click its name.

      The Overview page of the cluster automatically appears.

    4. On the Overview page, click the More icon in the upper-right corner and select Upgrade Version.

      The Upgrade Version page appears.

      1130

      • The Cluster parameter displays the OceanBase cluster to be upgraded.

        If the cluster in Step 2 is associated with a primary or standby cluster, the associated primary or standby cluster is also upgraded.

      • Set the Upgrade Method parameter based on your business requirements. Valid values of this parameter:

        • Rolling Upgrade (recommended): Your business is not interrupted during the upgrade.

        • Downtime Upgrade: Your business is interrupted during the upgrade. Proceed with caution. If your cluster has less than three zones, the majority of zones cannot be formed in rolling upgrade. In this case, we recommend the downtime upgrade method.

      • Select the target OceanBase Database version from the drop-down list of the Upgrade Version parameter.

        If the RPM package for the target version does not exist in the list, you can click Add Version at the bottom of the list to upload the target RPM package.

      Note

      • A standalone centralized database supports only the Downtime Upgrade mode.
      • You can select only a version that is later than the current version.
      • After you select a version, the system checks whether the installation package for the hardware architecture of the current cluster exists. If no, the upgrade cannot be performed.

    5. Click Upgrade.

      • If an error message prompts that the upgrade path from version xxx to version xxx is not found, you must first define the upgrade path in the oceanbase_upgrade_dep.yml file as described in the Prerequisites section of this topic.

      • If the configurations are correct, the Confirm xxx Upgrade Path dialog box automatically appears.

        In the dialog box, verify whether the RPM packages exist for all the specified versions. If not, click Upload to upload the RPM packages as required.

    6. Click OK.

      In the dialog box that appears, you can click View Task to view the upgrade progress.

      If the task status is Completed, and this cluster in the Clusters list on the Clusters page is in the Running state, the cluster is successfully upgraded.

      Notice

      OCP does not allow you to roll back the upgrade of an OceanBase cluster. Do not manually skip any upgrade steps or roll back the upgrade.

    7. View upgrade tasks.

      The upgrade task is divided into multiple subtasks based on the upgrade nodes.

      • In the upgrade task, each upgrade node whose binary file needs to be replaced along the upgrade path is handled by a subtask. In this example, Submit cluster upgrade task indicates that a subtask is created, and Wait dag success indicates that the system is waiting for the subtask to complete. Submit cluster upgrade task and Wait dag success come in pairs and may appear many times. The number of occurrences depends on that of upgrade nodes where the binary files are replaced.

      • After all the subtasks are completed, the OceanBase cluster is upgraded to a later version. Subtasks execute the following upgrade scripts: precheck script, pre-upgrade script, OBServer node replacement script, post-upgrade script, and version check script.

    Previous topic

    Delete an OBServer
    Last

    Next topic

    View the topology of a cluster
    Next
    What is on this page
    Precautions
    Procedure