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

V4.2.0
  • obdiag Overview
  • obdiag installation
  • obdiag configuration
  • One-click Cluster Inspection
    • One-click cluster inspection
    • Detailed explanation of cluster inspection indicators
  • One-click Information Gathering
    • One-click routine information collection
      • OceanBase cluster log collection
      • Host information collection
      • SQL details collection
      • Stack information collection
      • Flame Picture/Bian Que Picture Collection
      • ASH report collection
      • Collect table-related information
      • Cluster parameter collection
      • Variable collection
      • clog/slog collection
      • DBMS_XPLAN information collection
      • Core file collection
      • AWR report collection
      • obproxy log collection
      • OMS log collection
      • Collect all information
    • One-click scenario-based information collection
      • Overview
      • Collect basic cluster information
      • Collect backup problem information
      • Collect backup cleanup problem information
      • Collect clog disk full problem information
      • Collect cluster downtime problem information
      • Collect merge problem information
      • Collect CPU high problem information
      • Collect information on delay issues in primary and standby databases
      • Collect I/O problem information
      • Collect log archiving problem information
      • Collect long transaction problem information
      • Collect memory problem information
      • Collect SQL performance problem information
      • Collect PX error reporting information
      • Collect recovery problem information
      • Collect observer restart information without reason
      • Collect owner-cutting problem information
      • Collect information about hanging transaction issues
      • Collect copy imbalance problem information
      • Collect SQL error reporting information
      • Collect cluster TopSQL information
      • Collect application error information
      • Collect obproxy restart problem information for no reason
      • Collect ODP parameter information
      • Collect unspecified scenario problem information
  • One-click Diagnostic Analysis
    • One-click diagnostic analysis log
    • One-click full-link diagnostic log analysis
    • Parameter analysis (compared with default values)
    • Parameter analysis (parameter differences on different observers)
    • Analyze variables
    • Instructions for using index space analysis
    • One-click diagnostic analysis of memory
    • One-click diagnosis and analysis of queue backlog
  • One-click Root Cause Analysis
    • One-click root cause analysis
    • Root cause analysis scenario: disconnection
    • Root cause analysis scenario: card merging major_hold
    • Root cause analysis scenario: lock conflict lock_conflict
    • Root cause analysis scenario: executing DDL and reporting disk full error ddl_disk_full
    • Root cause analysis scenario: clog disk is full clog_disk_full
    • Root cause analysis scenario: log error log_error
    • Root cause analysis scenario: DDL failure ddl_failure
    • Root cause analysis scenario: Troubleshooting index build execution error index_ddl_error
    • Root cause analysis scenario: transaction disconnection scenario transaction_disconnection
    • Root cause analysis scenario: transaction execution times out and error transaction_execute_timeout
    • Root cause analysis scenario: transaction does not end and error transaction_not_ending is reported
    • Root cause analysis scenario: transaction other errors transaction_other_error
    • Root cause analysis scenario: transaction rollback error transaction_rollback
    • Root cause analysis scenario: transaction wait timeout error transaction_wait_timeout
    • Root cause analysis scenario: OMS full migration exception oms_full_trans
    • Root cause analysis scenario: OMS obcdc component analysis oms_obcdc
    • Root cause analysis scenario: suspended transaction suspend_transaction
    • Root cause analysis scenario: Unit GC exception unit_gc
    • Root cause analysis scenario: OceanBase cluster playback card
    • Root cause analysis scenario: OceanBase cluster memory explosion
    • Root cause analysis scenario: Abnormal deletion of OBServer node
    • Root cause analysis scenario: GC troubleshooting gc_troubleshooting
    • Root cause analysis scenario: Schema leak schema_leak
    • Root cause analysis scenario: partition split scheduling error split_schedule_error
    • Root cause analysis scenario: weak read problem troubleshooting weak_read_troubleshooting
    • Root cause analysis scenario: SQL execution memory is too high execute_memory_high
  • One-click Cluster Insights
    • Overview
    • Cluster overview information insights
    • Cluster node information insight
    • Cluster unit information insight
    • Cluster Zone Information Insights
    • Cluster RS Information Insights
    • Cluster tenant information insight
    • Cluster event information insight
    • Cluster lock information insight
    • Cluster topsql information insight
    • Cluster slowsql information insight
    • Cluster table information insight
    • Cluster processlist information insight
    • SQL execution plan information insights
    • Insights into database disk usage information
    • Insight on the disk usage of the specified table in the database
    • Insights into the full tenant information of the cluster
    • Cluster node CPU usage information insights
    • Internal table name fuzzy matching information insight
    • Cluster leader information insight
    • Information insights into locks held on a certain table
    • Cluster long transaction information information insight
    • Actual execution plan operator information insight
    • Memory information insights for all tenants
    • processlist Real-time session summary information insights
    • Table/index storage method information insight
    • Table NDV Information Insights
    • Table index information insight
    • Merge status display
    • clog log volume/capacity statistics
  • Plug-in file upgrade
  • Update and uninstall
  • Telemetry Mode
  • FAQ
  • Tools
    • Configuration file encryption
    • AI Intelligent Diagnosis Assistant
    • Disk IO performance detection
    • Configure verification tool
  • Release Notes
    • obdiag V4.2.0
    • obdiag V4.1.0
    • obdiag V4.0.0
    • obdiag V3.7.2
    • obdiag V3.7.1
    • obdiag V3.7.0
    • obdiag V3.6.0
    • obdiag V3.5.0
    • obdiag V3.4.0
    • obdiag V3.3.0
    • obdiag V3.2.0
    • obdiag V3.1.0
    • obdiag V3.0.0
    • obdiag V2.6.0
    • obdiag V2.5.0
    • obdiag V2.4.0
    • obdiag V2.3.0
    • obdiag V2.2.0
    • obdiag V2.1.0
    • obdiag V2.0.0
    • obdiag V1.6.2
    • obdiag V1.6.1
    • obdiag V1.6.0
    • obdiag V1.5.2
    • obdiag V1.5.1
    • obdiag V1.5.0
    • obdiag V1.4.0
    • obdiag V1.3.0

Download PDF

Document Feedback
  1. Documentation Center
  2. OceanBase Diagnostic Tool
  3. V4.2.0

obdiag Overview

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

What is obdiag
obdiag features
Obdiag Core Function Overview
obdiag current version support capabilities
obdiag source code

OceanBase database is a native distributed database system. Failure root cause analysis usually involves many factors such as machine environment, configuration parameters, and operating load. When troubleshooting problems, experts need to obtain a large amount of information scattered across various nodes. OceanBase Agile Diagnostic Tool (OceanBase Diagnostic Tool, referred to as obdiag) is dedicated to efficiently collecting and analyzing diagnostic information in fault scenarios. The obdiag code is completely open source, please see GitHub Code Repository for details.

What is obdiag

obdiag is a black screen diagnostic tool specially built for OceanBase. It supports scanning, collection and analysis of cluster logs, SQL audits, process stacks and other information. It can be executed with one click in different deployment modes such as OCP, OBD or user manual deployment to complete the display, collection, analysis, inspection and root cause analysis of diagnostic information**.

obdiag features

  • Simple deployment: Provides RPM/DEB packages and obd integrated deployment, which can be deployed on any machine that can connect to all nodes in the cluster, not limited to OBServer nodes.
  • Centralized collection: Single-point deployment, just execute collection, inspection or analysis commands on the deployment machine.
  • Easy to use: One command to complete the installation; one-click cluster inspection, one-click information collection, one-click diagnostic analysis, one-click root cause analysis, and one-click cluster insight can all be completed through commands.
  • Completely open source: Developed based on Python, the source code is 100% open source, see GitHub code repository for details.
  • Highly scalable: One-click inspection, scenario-based collection, root cause analysis, and cluster insights are all plug-in designs, which can be expanded to customized scenarios at low cost.

Obdiag Core Function Overview

Function module
Description
obdiag config Quickly generate/edit cluster configuration files (default ~/.obdiag/config.yml).
obdiag gather One-click collection of diagnostic information: logs, parameters/variables, host information, stack, perf, clog/slog, AWR, ASH, OBProxy/OMS logs, scenario collection, table export (tabledump), DBMS_XPLAN, core, etc.
obdiag display One-click cluster insight: Display cluster information, merger status (compaction), etc. according to scenarios, and the black screen output does not drop to the disk.
obdiag check One-click cluster inspection: perform inspection tasks on OceanBase database/OBProxy, support YAML and Python scripts, and output table/JSON/XML/YAML/HTML reports.
obdiag analyze One-click diagnostic analysis: log analysis, FLT trace full link, parameter/variable comparison, queue backlog, index space, memory analysis, etc.
obdiag rca One-click root cause analysis: perform root cause analysis according to scenarios (disconnection, lock conflict, disk full, transaction timeout, OMS/OBCDC, etc.).
obdiag update Hot update inspection and scene collection task files (supports online/local files).
obdiag tool Toolbox: configuration file encryption (crypto_config), AI diagnostic assistant (ai_assistant), disk IO performance detection (io_performance), configuration verification (config_check).
obdiag display-trace View the detailed log of the current execution based on the Trace ID.

obdiag current version support capabilities

  • Information collection (gather)

    • One-click collection of OceanBase cluster logs (observer/election/rootservice), OBProxy logs, and OMS logs; supports time range, keyword filtering, file number limit, and log desensitization.
    • Collect cluster parameters/variables, host information (sysstat), stack (stack), perf (sample/flame/pstack), clog/slog, AWR (depends on enterprise version OCP), ASH, parallel SQL execution details (plan_monitor), table export (tabledump), DBMS_XPLAN, core diagnostic information with one click.
    • Scenario-based collection: supports observer/obproxy/other multiple scenarios (such as high CPU, SQL exception, cluster downtime, merge, backup and restore, OBProxy restart, etc.), supports obdiag gather scene list and obdiag gather scene run --scene=xxx.
  • Cluster Insights (display)

    • Display cluster information by scene with one click (cluster/node/Zone/RS/tenant/event/lock holding/TopSQL/slow SQL/table information/process list/execution plan/data volume/merger status, etc.), supporting obdiag display scene list and obdiag display scene run --scene=xxx.
    • Starting from V4.0.0, the merge status display scene is supported: obdiag display scene run --scene=observer.compaction.
    • Starting from V4.1.0, clog log volume/capacity statistics scenario is supported: obdiag display scene run --scene=observer.clog_volume_statistics.
  • Cluster inspection (check) Perform inspections on the OceanBase cluster with one click, support YAML/Python tasks of OBServer nodes and OBProxy, and output table/json/xml/yaml/html reports; support obdiag check list and obdiag check run.

  • Diagnostic Analysis (analyze) One-click analysis of OceanBase cluster logs (online/offline), FLT trace full link, parameter/variable diff and default values, queue backlog, index (including pre-created) space, memory (online/offline).

  • Root Cause Analysis (rca) One-click root cause analysis by scenario (disconnection, major stuck, lock conflict, DDL/clog disk full, log error, transaction disconnection/timeout/not ended/rollback, OMS full/OBCDC, pending transaction, unit GC, playback stuck, memory full, server deletion exception, GC/weak read/split scheduling, etc.), supports obdiag rca list and obdiag rca run --scene=xxx.

  • Toolbox (tool)

    • crypto_config: Encrypt/decrypt config files.
    • ai_assistant (BETA): AI intelligent diagnostic assistant.
    • io_performance: Disk IO performance detection (based on tsar, supports automatic identification of specified disks or clog/data).
    • config_check: Verify whether the --config parameter is legal.
  • Other Supports cluster diagnosis deployed by Docker and Kubernetes (ob-operator); supports IPv6; gather stack supports ARM; inspection and scenario-based collection support hot update; supports out-of-box use without configuration file through --config; supports encrypted configuration and --config_password.

obdiag source code

GitHub code repository

Next topic

obdiag installation
Next
on this page
What is obdiag
obdiag features
Obdiag Core Function Overview
obdiag current version support capabilities
obdiag source code