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 Deployer

V4.3.0Community Edition
  • What is obd
  • Quick Start
    • Install obd
    • Quick deployment of OceanBase Database
    • Quickly deploy OCP
  • obd Command
    • Quick deployment commands
    • Cluster commands
    • Command groups
    • Image and repository commands
    • Test command groups
    • Tool commands
    • obdiag commands
    • Binlog service commands
    • Hardware commands
    • License commands
    • Password commands
    • Telemetry commands
  • User Guide
    • Usage overview
    • Deploy through GUI
      • Overview
      • Pattern configuration rules
      • Deploy an OceanBase cluster
      • Deploy OCP
      • Deploy OMS
      • Change components
      • Upgrade OCP
      • Upgrade OMS
    • Deploy through CLI
      • Configuration file
      • Component deployment
        • Deploy an OceanBase cluster
        • Deploy seekdb
        • Deploy obconfigserver
        • Deploy OMS
        • Deploy OCP
        • Deploy Alertmanager
        • Deploy obbinlog
        • Deploy oblogproxy
      • Cluster management
        • Physical Standby Database
          • Create a standby tenant
          • Role switching and decoupling
          • Switch the synchronization mode between primary and standby tenants
        • seekdb primary/standby instance
          • Create a standby instance
          • Role switching and decoupling
        • Scale out and component changes
        • Performance test
        • Diagnose a cluster
        • Backup and restore
        • Add a GUI monitoring system to an existing cluster
      • Cluster management
        • Use OCP to take over an OceanBase cluster deployed by obd
        • Take over an OceanBase cluster
      • Component upgrade
        • Upgrade OceanBase Database
        • Upgrade ODP
        • Upgrade OMS
  • Upgrade obd
  • FAQ
  • Error codes
  • Release Notes
    • Version rules
    • V4.3
      • OceanBase Deploy V4.3.0
    • V4.2
      • OceanBase Deployment Tool V4.2.0
    • V4.1
      • OceanBase Deployer V4.1.0
    • V4.0
      • OceanBase Deployer V4.0.0
    • V3.6
      • OceanBase Deployer V3.6.0
    • V3.5
      • OceanBase Deployer V3.5.0
    • V3.4
      • OceanBase Deployer V3.4.0
    • V3.3
      • OceanBase Deployer V3.3.0
    • V3.2
      • OceanBase Deployer V3.2.2
      • OceanBase Deployer V3.2.1
      • OceanBase Deployer V3.2.0
    • V3.1
      • OceanBase Deployer V3.1.2
      • OceanBase Deployer V3.1.1
      • OceanBase Deployer V3.1.0
    • V3.0
      • OceanBase Deployer V3.0.1
      • OceanBase Deployer V3.0.0
    • V2.10
      • OceanBase Deployer V2.10.1
      • OceanBase Deployer V2.10.0
    • V2.9
      • OceanBase Deployer V2.9.2
      • OceanBase Deployer V2.9.1
      • OceanBase Deployer V2.9.0
    • V2.8
      • OceanBase Deployment Tool V2.8.0
    • V2.7
      • OceanBase Deployment Tool V2.7.0
    • V2.6
      • OceanBase Deployment Tool V2.6.2
      • OceanBase Deployment Tool V2.6.1
      • OceanBase Deployment Tool V2.6.0
    • V2.5
      • OceanBase Deployer V2.5.0
    • V2.4
      • OceanBase Deployer V2.4.0
    • V2.3
      • OceanBase Deployment Tool V2.3.1
      • OceanBase Deployer V2.3.0
    • V2.2
      • OceanBase Deployment Tool V2.2.0
    • V2.1
      • OceanBase Deployer V2.1.1
      • OceanBase Deployment Tool V2.1.0
    • V2.0
      • OceanBase Deployment Tool V2.0.1
      • OceanBase Deployment Tool V2.0.0
    • V1.6
      • OceanBase Deployer V1.6.2
      • OceanBase Deployer V1.6.1
      • OceanBase Deployer V1.6.0
    • V1.5
      • OceanBase Deployer V1.5.0
    • V1.4
      • OceanBase Deployer V1.4.0
    • V1.3
      • OceanBase Deployer V1.3.3
      • OceanBase Deployer V1.3.2
      • OceanBase Deployer V1.3.0
    • V1.2
      • OceanBase Deployer V1.2.1
      • OceanBase Deployer V1.2.0
  • Interactive deployment of OceanBase Database Community Edition
  • Deploy a Community Edition cluster using the obd graphical interface
  • Deploy a Community Edition cluster by using an obd configuration file

Download PDF

Document Feedback
  1. Documentation Center
  2. OceanBase Deployer
  3. V4.3.0

Upgrade OCP

Last Updated:2026-09-04 08:21:29

Prerequisites
Considerations
Procedure
Step 1: Download the installation package
Step 2: Upgrade the OCP cluster
(Optional) Step 3: Scale out OCP

This topic describes how to upgrade OCP by using the graphical interface of obd.

Prerequisites

Before you start, make sure that the current OCP version to be upgraded is V4.0.3 or later.

Considerations

When you upgrade OCP deployed in a Docker container, you must take note of the following:

  • Make sure that all OCP containers are in a normal state. If there are multiple OCP containers, keep only one container running and stop the others.

  • A started OCP container should have the ocp-all-in-one field in its name. If it does not, rename the container.

  • If OCP was originally deployed on multiple nodes using Docker, you need to expand OCP after the upgrade. For details, see Step 3: Scale out OCP.

Procedure

Note

OBLOADER supports upgrading OCP Enterprise Edition and OCP Community Edition. This topic describes how to upgrade OCP Community Edition.

Step 1: Download the installation package

Note

If the OCP to be upgraded is deployed as a Docker container, you need to download and install the ocp-all-in-one package into the running OCP container.

  1. Download the installation package

    Go to OceanBase Download Center, search for OceanBase Cloud Platform, download the required installation package based on your actual situation, and upload the installation package to any directory on the OBDA control machine.

    If you cannot obtain the required version of the installation package from the download center, contact technical support for assistance.

  2. Decompress the installation package

    In the directory where the installation package is located, execute the following command to decompress it:

    [admin@test001 ~]$ tar -xzf ocp-all-in-one-*.tar.gz
    
  3. (Optional) Uninstall the original obd

    If the obd is installed using the All in One package, you can execute the following command to uninstall the current obd.

    [admin@test001 ~]$ cd ocp-all-in-one/bin && bash uninstall.sh
    
  4. Start the installation program

    In the bin directory of the ocp-all-in-one installation directory, execute the install.sh script to start the obd installation program.

    [admin@test001 bin]$ bash install.sh
    

    This script installs obd and copies all installation packages in the rpms directory of the installation directory to the local image library of obd, while closing the remote image library. After the execution is successful, the following output will be displayed. You can copy and execute the source ~/.oceanbase-all-in-one/bin/env.sh command in the output to apply the environment configuration.

    add auto set env logic to profile: /home/admin/.bash_profile
    
    #########################################################################################
     Install Finished
    =========================================================================================
    Setup Environment:              source ~/.oceanbase-all-in-one/bin/env.sh
    Quick Start:                    obd demo
    Use Web Service to install:     obd web
    Use Web Service to upgrade:     obd web upgrade
    More Details:                   obd -h
    =========================================================================================
    

Step 2: Upgrade the OCP cluster

  1. Start the upgrade

    [admin@test001 ~]$ obd web upgrade
    

    The output appears as follows. Access the IP address from the output in a browser to go to the Upgrade Wizard page, and then click Start Upgrade.

    start OBD WEB in 0.0.0.0:8680
    please open http://10.10.10.1:8680/#/updateWelcome
    

    Note

    • The default port of the Web UI is 8680. Run the obd web upgrade -p <PORT> command to specify the port of the Web UI, where the value of PORT is in the range of [1025, 65535].

    • In an Alibaba Cloud or other cloud environment, the system may output an intranet IP address if the public IP address cannot be obtained. You need to use the correct public IP address to access the web interface.

    • The obd web command is bound to 0.0.0.0, which allows access to the GUI interface from any accessible IP address in a multi-adapter deployment.

  2. Select the product to upgrade.

    Select the OceanBase Cloud Platform module on the displayed Welcome to OceanBase Upgrade Wizard page and click Upgrade. This way, you can start to upgrade OCP.

  3. Deployment Configuration

    On the deployment configuration page, select the OCP cluster to be upgraded and the target version. The system automatically retrieves all cluster names managed by the OBDS service. From the Deployment Name drop-down list, select the cluster you want to upgrade. If the cluster to be upgraded is not currently managed by the OBDS service, for example, a Docker-deployed cluster, you can customize the cluster name. After the cluster is upgraded, the OBDS service will automatically take over the OCP cluster.

    After the settings are complete, click Next to go to the Connectivity Test page.

  4. Validate connectivity with MetaDB

    When you upgrade an OCP cluster deployed by using Docker, you need to manually specify MetaDB parameters. If the OCP cluster to be upgraded is managed by obd, the system automatically retrieves MetaDB parameters. Verify whether the information in Connection Information is consistent with the expected parameters of the destination environment. After verifying that the MetaDB connection information is correct, enter Access Password and click Verify. The system verifies whether MetaDB can be connected.

  5. Configure the operating system user

    After you verify the MetaDB connectivity, you need to specify an operating system user for automated configuration.

    Parameter
    Description
    User Name The user that is provided must have sudo privileges for the host operating system to allow the installation process to perform automated configuration.
    SSH port The default port is 22, but you can use a custom port number.
    Password Enter the password of Username. You can skip this option if no password is required for the host. After you configure this option, click Verify to test the connectivity.

    After the configuration is completed, click Next to proceed to the Environment Pre-check page.

  6. Configuration confirmation

    OCP will obtain related configurations from the MetaDB configurations and update the platform management service (COP Server) and all host agent services (OCP Agent) managed by the platform management service to ensure the consistency of the management features.

    Confirm whether the upgrade contents specified in the Installation and Configuration and Upgrade Configuration Information fields meet the expected requirements. You can click Previous to modify the upgrade contents if any issues are found. After the contents are verified, click Next to start the environment check before the upgrade.

  7. Pre-check environment

    If the checks pass, click Next to proceed with the upgrade of OCP. If any checks fail, the system allows you to either fix or ignore the failed items.

    • If you select Repair, after the fix is complete, click Recheck. The system will restart the pre-check process for the environment.

    • If you choose to ignore them, click Ignore All Failed Checks. All failed check items will be marked as Ignored, and you can click Next to start the OCP upgrade.

    Note

    Ignoring all failed checks could result in an upgrade failure. We recommend that you fix any failed checks before proceeding to the next step.

  8. Upgrade OCP

    During the O&M process of an OCP cluster, you can view detailed upgrade logs in the Upgrade Logs module.

    • If the OCP upgrade is successful, you can view the login information of OCP, including URL, username, and password, in the Upgrade Log.

    • If the OCP upgrade fails, check the log to find out the reason for the failure, and contact technical support. After the failure reasons are located and the issues are fixed, click Upgrade Again to re-execute the failed upgrade steps.

    Notice

    The OCP upgrade process may take some time. Please be patient.

(Optional) Step 3: Scale out OCP

  1. Prepare the configuration file for scaling out OCP.

    [admin@test001 ~]$ vim ocp-scale-out.yaml
    

    The content of the file is as follows. The servers.name configuration cannot be repeated in the original OCP cluster:

    ocp-server-ce:
      servers:
        - name: server2
          ip: 10.10.10.2
        - name: server3
          ip: 10.10.10.3
      server2:
        home_path: /home/admin/ocp
        soft_dir: /home/admin/ocp/software
        log_dir: /home/admin/ocp/logs
        port: 8080
        memory_size: 8G
      server3:
        home_path: /home/admin/ocp
        soft_dir: /home/admin/ocp/software
        log_dir: /home/admin/ocp/logs
        port: 8080
        memory_size: 8G
    
  2. Execute the scaling-out command.

    [admin@test001 ~]$ obd cluster scale_out myocp -c ocp-scale-out.yaml
    

    If the command is executed successfully, the output is as follows:

    Open ssh connection ok
    Get local repositories and plugins ok
    Repository integrity check ok
    Parameter check ok
    Open ssh connection ok
    Connect to observer 10.10.10.1:2881 ok
    Initializes observer work home ok
    Initializes obproxy work home ok
    Initializes ocp-server-ce work home ok
    ...... #Omitted for brevity
    Check before start ocp-server-ce ok
    Start ocp-server-ce ok
    ocp-server-ce program health check ok
    Execute ` obd cluster display myocp ` to view the cluster status
    Trace ID: a1491fa6-991e-11f0-8809-00163e4692be
    If you want to view detailed obd logs, please run: obd display-trace a1491fa6-991e-11f0-8809-00163e4692be
    
  3. Verify the scaling-out result.

    Copy and execute the display command in the output of the scaling-out command to view the OCP cluster information.

    obd cluster display myocp
    

    The output is as follows, which contains two new OCP nodes:

    Get local repositories and plugins ok
    Open ssh connection ok
    Connect to ocp-server-ce ok
    +------------------------------------------------------------+
    |                       ocp-server-ce                        |
    +---------------------------+----------+------------+--------+
    | url                       | username | password   | status |
    +---------------------------+----------+------------+--------+
    | http://10.10.10.1:8080    | admin    | '********' | active |
    | http://10.10.10.2:8080    | admin    | '********' | active |
    | http://10.10.10.3:8080    | admin    | '********' | active |
    +---------------------------+----------+------------+--------+
    Connect to observer 10.10.10.1:2881 ok
    Wait for observer init ok
    +-------------------------------------------------+
    |                   oceanbase-ce                  |
    +---------------+---------+------+-------+--------+
    | ip            | version | port | zone  | status |
    +---------------+---------+------+-------+--------+
    | 10.10.10.1    | 4.3.5.3 | 2881 | zone1 | ACTIVE |
    +---------------+---------+------+-------+--------+
    obclient -h10.10.10.1 -P2881 -uroot@sys -p'********' -Doceanbase -A
    
    cluster unique id: 96617816-cfc9-5cd7-a43e-0c8327f32c23-1997aa9d887-04050304
    
    Connect to obproxy ok
    +-------------------------------------------------------------------+
    |                             obproxy-ce                            |
    +---------------+------+-----------------+-----------------+--------+
    | ip            | port | prometheus_port | rpc_listen_port | status |
    +---------------+------+-----------------+-----------------+--------+
    | 10.10.10.1    | 2883 | 2884            | 2885            | active |
    +---------------+------+-----------------+-----------------+--------+
    obclient -h10.10.10.1 -P2883 -uroot@proxysys -p'********' -Doceanbase -A
    
    obshell program health check ok
    display obshell dashboard ok
    +----------------------------------------------------------+
    |                     obshell Dashboard                    |
    +---------------------------+------+--------------+--------+
    | url                       | user | password     | status |
    +---------------------------+------+--------------+--------+
    | http://10.10.10.1:2886    | root | '********'   | active |
    +---------------------------+------+--------------+--------+
    
    Trace ID: c25da2e0-9921-11f0-afb0-00163e4692be
    If you want to view detailed obd logs, please run: obd display-trace c25da2e0-9921-11f0-afb0-00163e4692be
    

Previous topic

Change components
Last

Next topic

Upgrade OMS
Next
on this page
Prerequisites
Considerations
Procedure
Step 1: Download the installation package
Step 2: Upgrade the OCP cluster
(Optional) Step 3: Scale out OCP