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 Database

SQL - 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
    DocsBlogWhite PaperLive 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 Database
    3. SQL
    4. V4.2.2
    iconOceanBase Database
    SQL - 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
    SQL
    KV
    • V 4.6.0
    • V 4.4.2
    • V 4.3.5
    • V 4.3.3
    • V 4.3.1
    • V 4.3.0
    • V 4.2.5
    • V 4.2.2
    • V 4.2.1
    • V 4.2.0
    • V 4.1.0
    • V 4.0.0
    • V 3.1.4 and earlier

    Overview

    Last Updated:2026-04-15 08:27:14  Updated
    Share
    What is on this page
    Installation procedure
    Install ob_admin by using YUM commands
    Install ob_admin by using the ob_utils installation package
    Build ob_admin by compiling the source code
    FAQ
    Features
    slog_tool
    log_tool
    dumpsst
    dump_backup

    folded

    Share

    ob_admin is an O&M tool for OceanBase Database. This topic describes the installation procedure and features of ob_admin.

    Installation procedure

    Install ob_admin by using YUM commands

    You can use YUM commands to directly install OceanBase Utils and then use ob_admin.

    1. Install OceanBase Utils by using YUM commands.

      yum-config-manager --add-repo https://mirrors.aliyun.com/oceanbase/OceanBase.repo
      yum install oceanbase-ce-utils
      
    2. After the installation is completed, you can use the features of ob_admin.

      To view the help description of dumpsst, run the following command:

      ob_admin dumpsst -h
      

    Install ob_admin by using the ob_utils installation package

    You can install OceanBase Utils and then use ob_admin.

    1. Search for OceanBase Utils in the OceanBase Download Center and then download the required version to your local server. If no installation package is available, contact OceanBase Technical Support.

    2. Run the following command in the file directory to install OceanBase Utils:

      rpm -ivh  oceanbase-ce-utils-<version>
      

      If you only need ob_admin, run the rpm2cpio command to obtain ob_admin:

      rpm2cpio oceanbase-ce-utils-<version> | cpio -idmv ./usr/bin/ob_admin
      cp usr/bin/ob_admin /usr/local/bin
      
    3. After the installation is completed, you can use the features of ob_admin.

      To view the help description of dumpsst, run the following command:

      ob_admin dumpsst -h
      

    Build ob_admin by compiling the source code

    You can compile the source code of OceanBase Database to build ob_error.

    1. Clone the open-source code of OceanBase Database to your local server.

      git clone https://github.com/oceanbase/oceanbase
      
    2. Compile ob_admin in the following modes:

      • Debug mode

        bash build.sh debug --init
        cd build_debug
        make ob_admin
        cp tools/ob_admin/src/ob_admin /usr/local/bin
        

        By default, after you compile ob_admin, you can find the compiled files in the DEBUG_BUILD_DIR/tools/ob_admin/src/ob_admin directory. DEBUG_BUILD_DIR indicates the compilation directory, which is build_debug in this example.

      • Release mode

        bash build.sh release --init
        cd build_release
        make ob_admin
        cp tools/ob_admin/src/ob_admin /usr/local/bin
        

        By default, after you compile ob_admin, you can find the compiled files in the RELEASE_BUILD_DIR/tools/ob_admin/src/ob_admin directory. RELEASE_BUILD_DIRR indicates the compilation directory, which is build_release in this example.

    3. After the installation is completed, you can use the features of ob_admin.

      To view the help description of dumpsst, run the following command:

      ob_admin dumpsst -h
      

    FAQ

    If the libmariadb.so.3 dynamic library is missing when you use ob_admin, perform the following steps to resolve the issue.

    1. Here is an example of an issue:

      $ ob_admin dumpsst -h
      ob_admin: error while loading shared libraries: libmariadb.so.3: cannot open shared object file: No such file or directory
      
    2. The libmariadb.so.3 dynamic library is built in OceanBase Database. You can use the find command to find its path.

      In this example, the installation path of OceanBase Database is /home/admin/observer.

      $ find / -name libmariadb.so.3
      /home/admin/observer/lib/libmariadb.so.3
      
    3. Set the LD_LIBRARY_PATH environment variable to specify the dynamic library search path.

      $ export LD_LIBRARY_PATH=/home/admin/observer/lib
      
    4. Now you can use the features of ob_admin.

      $ ob_admin dumpsst -h
      

    Features

    ob_admin provides the slog_tool, log_tool, dumpsst, and dump_backup features to troubleshoot issues such as data inconsistency, data loss, and data errors. The following sections describe these features respectively.

    slog_tool

    slog_tool displays the content of slog files. The command syntax is as follows:

    $./ob_admin slog_tool -f ../store/slog/1
    

    Note

    The path in the slog_tool command must begin with a period (.) or slash (/).

    log_tool

    You can use log_tool to perform the following operations:

    • Provide content of the dump clog files.
    • Measure the proportion of each module in the clog files.
    • Search for logs by a specified field.

    For more information, see clog_tool.

    dumpsst

    dumpsst displays the content in block_file, such as superblocks, macroblocks, macroblock meta, SSTables, and SSTable meta. Generally, you can use it to trace online issues and locate data issues. For more information, see dumpsst.

    dump_backup

    dump_backup parses the data content for physical backup. For more information, see dump_backup.

    Note

    ob_admin specifies the log printing level by using the OB_ADMIN_LOG_LEVEL environment variable, which can be set to DEBUG, TRACE, INFO, WARNING, or ERROR.

    Previous topic

    QueryLastAgentTask
    Last

    Next topic

    log_tool
    Next
    What is on this page
    Installation procedure
    Install ob_admin by using YUM commands
    Install ob_admin by using the ob_utils installation package
    Build ob_admin by compiling the source code
    FAQ
    Features
    slog_tool
    log_tool
    dumpsst
    dump_backup