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 Admin Tool

V4.2.1
  • What's New
  • Product introduction
    • What is OAT?
    • Architecture
    • Concepts
  • Quick start
    • Install OAT
    • Get started with OAT
  • oatcli
  • Upgrade guide
  • User guide
    • Log on to OAT
    • Page layout of the OAT console
    • Servers
      • Add a server
      • Edit a server
      • Perform O&M operations on a server
      • Remove a server
      • Manage credentials
    • Product services
      • Install, upgrade, and uninstall OCP
      • Install, upgrade, and uninstall ODC
      • Install, upgrade, and uninstall OMS
      • Install, Upgrade, Modify, and Uninstall OBSharding
      • Install and uninstall MetaDB
      • Install and uninstall OBDNS
      • Install and uninstall InfluxDB
      • Install and uninstall NLB
      • Install and uninstall OpenSearch
      • Install and uninstall SQLAuditStore
      • Install and uninstall OBLB
      • Take over OCP
      • Take over ODC
      • Take over OBSharding
      • Take over OMS
      • Take over MetaDB
      • Take over OBDNS
      • Take over InfluxDB
      • Take over NLB
      • Manage images
      • Modify the resources of products and components
      • Manage tools
      • Refresh data
      • Container operations
    • System security
      • Task center
      • Package management
      • User management
      • Operation audit
      • System parameter
        • View and modify system parameters
        • OAT configuration parameters
  • FAQ

Download PDF

Document Feedback
  1. Documentation Center
  2. OceanBase Admin Tool
  3. V4.2.1

Upgrade guide

Last Updated:2026-09-03 09:50:14

Procedure

This topic describes how to upgrade OceanBase Admin Toolkit (OAT) to V4.2.0, using OAT V3.2 as an example.

Note

This topic only applies to upgrades from OAT V3.2, V4.0, V4.1.1, or V4.1.2 to V4.2.0. Versions earlier than V3.2 only support takeover, but not upgrade.

Procedure

To upgrade OAT V3.2 to V4.2.0, perform the following steps:

  1. Load the image of the new version.

    docker load -i <image of the new version>
    
  2. Disable MariaDB in the container.

    # Go to the container.
    docker exec -it <container name> bash
    # Terminate ongoing MariaDB service processes. Depending on the version of MariaDB, the process name may be mariadbd or mysqld.
    pkill mariadbd; pkill mysqld;
    # Make sure that no MariaDB service process is running.
    pgrep 'mariadbd|mysqld'
    # Return to the host.
    exit
    
  3. Query the data mount directory on the host specified when you start the OAT V3.2 container.

    docker inspect <container name> -f '{{.Mounts}}'
    

    The following sample result is returned:

    [{bind  /data_dir /data   true rprivate}]
    

    The /data_dir directory on the host corresponds to the /data directory in the container. The /data_dir directory must be consistent when you start OAT V4.2.0 in Step 5.

  4. Stop and delete the OAT V3.2 container.

    docker stop <container name> && docker rm <container name>
    
  5. Start the OAT V4.2.0 container from the data mount directory.

    docker run -d --name oat --net host -v <data_dir>:/data --restart on-failure:5  reg.docker.alibaba-inc.com/oceanbase/oat:4.2.0_20231027_x86
    
  6. Query startup logs.

    docker logs -f oat
    

    After the refreshing of the startup logs stops, log on to OAT to check whether the upgrade is successful.

Previous topic

oatcli
Last

Next topic

Log on to OAT
Next
on this page
Procedure