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 ServiceOceanBase DataPilot

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 ServiceOceanBase DataPilot
OceanBase DatabaseOceanBase Cloud ToolsConnectors and MiddlewareLifecycle Support Policy

OceanBase Diagnostic Tool

V1.4.0
  • Overview
  • Install obdiag
  • Configure obdiag
  • Use `obdiag gather` commands to collect diagnostic information of OceanBase Database
  • Use `obdiag analyze` commands to analyze diagnostic information of OceanBase Database
  • Use `obdiag check` commands to inspect an OceanBase cluster
  • FAQ

Download PDF

Document Feedback
  1. Documentation Center
  2. OceanBase Diagnostic Tool
  3. V1.4.0

Overview

Last Updated:2026-09-04 08:22:11

What is obdiag?
Features and characteristics

In the native distributed database system OceanBase Database, root cause analysis for faults is complex because many factors may be involved, such as the server environment, parameters, and running load. A large amount of information must be collected and analyzed for troubleshooting. OceanBase Diagnostic Tool (obdiag) is designed to help you efficiently collect information scattered on various nodes.

What is obdiag?

obdiag is a CLI diagnostic tool designed for OceanBase Database. It scans and collects information such as the logs, SQL audit records, and the process stack information of OceanBase Database. You may deploy your OceanBase cluster by using OceanBase Cloud Platform (OCP) or OceanBase Deployer (OBD), or manually deploy it based on the OceanBase documentation. Regardless of the deployment mode, you can use obdiag to collect diagnostic information with a few clicks.

Features and characteristics

  • obdiag has the following characteristics:

    • Easy deployment: You can deploy obdiag by using the RPM package or OBD with a few clicks. You can deploy it on an OBServer node or any server that can connect to nodes in the OceanBase cluster.

    • Out-of-the-box: The Python packages required for running obdiag are all built-in packages. In other words, obdiag can directly run provided that the Python2 or Python3 environment exists on the server where obdiag is deployed.

    • Centralized collection: You need to deploy obdiag only on a single server rather than all servers. Then, you can execute collection or analysis commands on the server where obdiag is deployed.

  • obdiag V1.4.0 and later allow you to perform the following operations with a few clicks:

    • Collect logs of OceanBase Database
    • Collect automatic Workload Repository (AWR) reports (OCP Enterprise Edition required)
    • Collect host information
    • Collect stack information of OceanBase Database
    • Collect parsed commit logs (clogs) and SSTable logs (slogs)
    • Collect Perf information of OceanBase Database
    • Collect execution details of parallel SQL statements
    • Collect logs of OceanBase Database Proxy (ODP)
    • Analyze logs of OceanBase Database to identify errors that have occurred
    • Inspect OceanBase clusters for possible or existing exceptions, analyze their causes, and provide O&M suggestions

Next topic

Install obdiag
Next
on this page
What is obdiag?
Features and characteristics