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.1.2
  • 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 OB Sharding
      • Create and uninstall MetaDB
      • Create and uninstall OBDNS
      • Create and uninstall InfluxDB
      • Create and uninstall NLB
      • Create and uninstall OpenSearch
      • Install and uninstall OBLB
      • Take over OCP
      • Take over ODC
      • Take over OB Sharding
      • Take over OMS
      • Take over MetaDB
      • Take over OBDNS
      • Take over InfluxDB
      • Take over NLB
      • Manage images
      • Modify resources of products and components
      • Manage tools
      • Data refresh
    • System security
      • Task list
      • Package management
      • Manage users
      • Operation audit
  • FAQ

Download PDF

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

Upgrade guide

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

Procedure

Note

  • This topic only applies to the upgrade of OceanBase Admin Toolkit (OAT) from V3.2, V4.0, or V4.1.1 to V4.1.2. Versions earlier than V3.2 support only takeover, but not upgrades.
  • This topic describes how to upgrade OAT V3.2 to V4.1.2.

Procedure

To upgrade OAT V3.2 to V4.1.2, 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 (According to different versions of MariaDB, the actual process name may be Mariadbd or mysqld).
    pkill mariadbd; pkill mysqld;
    # Verify that no MySQL 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 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.1.2 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.1.2 container from the data mount directory.

    docker run -d --name oat --net host -v <data_dir>:/data --restart on-failure:5  $oat_image
    
  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