Meet OceanBase AI Database, the unified database for operational data, real-time analytics, and AI. Explore ->

Meet OceanBase AI Database, the unified database for operational data, real-time analytics, and AI. Explore ->

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 Deployer

V4.3.0Community Edition

  • What is obd
  • Quick Start
    • Install obd
    • Quick deployment of OceanBase Database
    • Quickly deploy OCP
  • obd Command
    • Quick deployment commands
    • Cluster commands
    • Command groups
    • Image and repository commands
    • Test command groups
    • Tool commands
    • obdiag commands
    • Binlog service commands
    • Hardware commands
    • License commands
    • Password commands
    • Telemetry commands
  • User Guide
    • Usage overview
    • Deploy through GUI
      • Overview
      • Pattern configuration rules
      • Deploy an OceanBase cluster
      • Deploy OCP
      • Deploy OMS
      • Change components
      • Upgrade OCP
      • Upgrade OMS
    • Deploy through CLI
      • Configuration file
      • Component deployment
        • Deploy an OceanBase cluster
        • Deploy seekdb
        • Deploy obconfigserver
        • Deploy OMS
        • Deploy OCP
        • Deploy Alertmanager
        • Deploy obbinlog
        • Deploy oblogproxy
      • Cluster management
        • Physical Standby Database
          • Create a standby tenant
          • Role switching and decoupling
          • Switch the synchronization mode between primary and standby tenants
        • seekdb primary/standby instance
          • Create a standby instance
          • Role switching and decoupling
        • Scale out and component changes
        • Performance test
        • Diagnose a cluster
        • Backup and restore
        • Add a GUI monitoring system to an existing cluster
      • Cluster management
        • Use OCP to take over an OceanBase cluster deployed by obd
        • Take over an OceanBase cluster
      • Component upgrade
        • Upgrade OceanBase Database
        • Upgrade ODP
        • Upgrade OMS
  • Upgrade obd
  • FAQ
  • Error codes
  • Release Notes
    • Version rules
    • V4.3
      • OceanBase Deploy V4.3.0
    • V4.2
      • OceanBase Deployment Tool V4.2.0
    • V4.1
      • OceanBase Deployer V4.1.0
    • V4.0
      • OceanBase Deployer V4.0.0
    • V3.6
      • OceanBase Deployer V3.6.0
    • V3.5
      • OceanBase Deployer V3.5.0
    • V3.4
      • OceanBase Deployer V3.4.0
    • V3.3
      • OceanBase Deployer V3.3.0
    • V3.2
      • OceanBase Deployer V3.2.2
      • OceanBase Deployer V3.2.1
      • OceanBase Deployer V3.2.0
    • V3.1
      • OceanBase Deployer V3.1.2
      • OceanBase Deployer V3.1.1
      • OceanBase Deployer V3.1.0
    • V3.0
      • OceanBase Deployer V3.0.1
      • OceanBase Deployer V3.0.0
    • V2.10
      • OceanBase Deployer V2.10.1
      • OceanBase Deployer V2.10.0
    • V2.9
      • OceanBase Deployer V2.9.2
      • OceanBase Deployer V2.9.1
      • OceanBase Deployer V2.9.0
    • V2.8
      • OceanBase Deployment Tool V2.8.0
    • V2.7
      • OceanBase Deployment Tool V2.7.0
    • V2.6
      • OceanBase Deployment Tool V2.6.2
      • OceanBase Deployment Tool V2.6.1
      • OceanBase Deployment Tool V2.6.0
    • V2.5
      • OceanBase Deployer V2.5.0
    • V2.4
      • OceanBase Deployer V2.4.0
    • V2.3
      • OceanBase Deployment Tool V2.3.1
      • OceanBase Deployer V2.3.0
    • V2.2
      • OceanBase Deployment Tool V2.2.0
    • V2.1
      • OceanBase Deployer V2.1.1
      • OceanBase Deployment Tool V2.1.0
    • V2.0
      • OceanBase Deployment Tool V2.0.1
      • OceanBase Deployment Tool V2.0.0
    • V1.6
      • OceanBase Deployer V1.6.2
      • OceanBase Deployer V1.6.1
      • OceanBase Deployer V1.6.0
    • V1.5
      • OceanBase Deployer V1.5.0
    • V1.4
      • OceanBase Deployer V1.4.0
    • V1.3
      • OceanBase Deployer V1.3.3
      • OceanBase Deployer V1.3.2
      • OceanBase Deployer V1.3.0
    • V1.2
      • OceanBase Deployer V1.2.1
      • OceanBase Deployer V1.2.0
  • Interactive deployment of OceanBase Database Community Edition
  • Deploy a Community Edition cluster using the obd graphical interface
  • Deploy a Community Edition cluster by using an obd configuration file

Download PDF

What is obdInstall obdQuick deployment of OceanBase DatabaseQuickly deploy OCPQuick deployment commandsCluster commandsCommand groupsImage and repository commandsTest command groupsTool commandsobdiag commandsBinlog service commandsHardware commandsLicense commandsPassword commandsTelemetry commandsUsage overviewOverviewPattern configuration rulesDeploy an OceanBase clusterDeploy OCPDeploy OMSChange componentsUpgrade OCPUpgrade OMSConfiguration fileUpgrade obdFAQError codesVersion rulesOceanBase Deploy V4.3.0OceanBase Deployment Tool V4.2.0OceanBase Deployer V4.1.0OceanBase Deployer V4.0.0OceanBase Deployer V3.6.0OceanBase Deployer V3.5.0OceanBase Deployer V3.4.0OceanBase Deployer V3.3.0OceanBase Deployer V3.2.2OceanBase Deployer V3.2.1OceanBase Deployer V3.2.0OceanBase Deployer V3.1.2OceanBase Deployer V3.1.1OceanBase Deployer V3.1.0OceanBase Deployer V3.0.1OceanBase Deployer V3.0.0OceanBase Deployer V2.10.1OceanBase Deployer V2.10.0OceanBase Deployer V2.9.2OceanBase Deployer V2.9.1OceanBase Deployer V2.9.0OceanBase Deployment Tool V2.8.0OceanBase Deployment Tool V2.7.0OceanBase Deployment Tool V2.6.2OceanBase Deployment Tool V2.6.1OceanBase Deployment Tool V2.6.0OceanBase Deployer V2.5.0OceanBase Deployer V2.4.0OceanBase Deployment Tool V2.3.1OceanBase Deployer V2.3.0OceanBase Deployment Tool V2.2.0OceanBase Deployer V2.1.1OceanBase Deployment Tool V2.1.0OceanBase Deployment Tool V2.0.1OceanBase Deployment Tool V2.0.0OceanBase Deployer V1.6.2OceanBase Deployer V1.6.1OceanBase Deployer V1.6.0OceanBase Deployer V1.5.0OceanBase Deployer V1.4.0OceanBase Deployer V1.3.3OceanBase Deployer V1.3.2OceanBase Deployer V1.3.0OceanBase Deployer V1.2.1OceanBase Deployer V1.2.0Interactive deployment of OceanBase Database Community EditionDeploy a Community Edition cluster using the obd graphical interfaceDeploy a Community Edition cluster by using an obd configuration file
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 Deployer
  3. V4.3.0
iconOceanBase Deployer
V 4.3.0Community Edition
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
Community Edition
  • V 4.3.0
  • V 3.2.1
  • V 3.2.0
  • V 3.1.0
  • V 3.0.0
  • V 2.10.1
  • V 2.10.0
  • V 2.9.0
  • V 2.8.0
  • V 2.7.0
  • V 2.6.0
  • V 2.5.0
  • V 2.4.0
  • V 2.3.1
  • V 2.3.0
  • V 2.2.0
  • V 2.1.0
  • V 2.0.0
  • V 1.6.1

Tool commands

Last Updated:2026-06-30 14:40:58  Updated
Share
What is on this page
obd devmode enable
obd devmode disable
obd env show
obd env set
obd env unset
obd env clear
obd tool command
obd tool db_connect
obd tool list
obd tool install
obd tool uninstall
obd tool update
obd display-trace

folded

Share

obd provides a set of tool commands that encapsulate some commonly used commands to enhance the developer experience.

You can use the -h/--help option in each command to view the help information of subcommands. Similarly, when an error occurs during command execution, you can use the -v/--verbose option to view the detailed execution process of the command.

obd devmode enable

You can run this command to enable developer mode. Developer mode is a prerequisite for using the tool command group. After developer mode is enabled, some errors will be downgraded, and obd will ignore invalid parameters. Non-kernel developers are advised to use this command with caution.

obd devmode enable

obd devmode disable

You can run this command to disable developer mode.

obd devmode disable

obd env show

You can run this command to view the environment variables of obd.

obd env show

You can specify a variable name to view the information of the specified variable. You can also specify the -A/--all option to view all environment variables, including system variables.

obd env set

You can run this command to set the environment variables of obd. These environment variables will affect the behavior of obd to some extent. We recommend that you do not use this command unless you have special requirements.

obd env set [key] [value]

The following table lists the environment variables that you can set.

Environment variable
Value range
Description
OBD_DISABLE_RSYNC {0, 1} Specifies whether to disable the rsync command. If this environment variable is set to 1, the rsync command is disabled. If this environment variable is set to 0, the rsync command is enabled. By default, obd uses the rsync command for remote transmission when the conditions are met.
OBD_DEV_MODE {0, 1} Specifies whether to enable developer mode.
TELEMETRY_MODE {0, 1} Specifies whether to enable the telemetry feature.
TELEMETRY_LOG_MODE {0, 1} Specifies whether to enable the telemetry data print feature.
IO_DEFAULT_CONFIRM {0, 1} Specifies whether to enable automatic confirmation. If this parameter is set to 1, obd automatically confirms all subsequent commands. Some obd commands require confirmation.
ENV_LOCK_MODE {0, 1, 2} Specifies the lock level. obd supports three types of locks: image repository lock, deployment configuration lock, and global lock. By default, obd obtains a global shared lock, a deployment configuration exclusive lock, and an image repository shared lock. When you run the obd mirror or obd cluster deploy command, obd changes the image repository shared lock to an image repository exclusive lock. The value of this variable can be 0, 1, or 2. The default value is 2. The following table describes the values.
  • 0: No lock is obtained. obd does not obtain any lock for any command.
  • 1: The deployment configuration exclusive lock is changed to a deployment configuration shared lock.
  • 2: A global shared lock, a deployment configuration exclusive lock, and an image repository shared lock are obtained.
OBD_DISABLE_RSA_ALGORITHMS {0, 1} Specifies whether to disable the rsa-sha2-512 and rsa-sha2-256 algorithms for login.
OBD_INSTALL_PRE N/A Specifies the parent directory for obd installation. The default value is / (the root directory).
OBD_INSTALL_PATH N/A Specifies the installation directory of obd. If this environment variable is not set, obd automatically appends usr/obd/ to the value of OBD_INSTALL_PRE.

obd env unset

You can run this command to delete the specified environment variable.

obd env unset [key] [value]

obd env clear

You can run this command to clear the environment variables of obd. Use this command with caution.

obd env clear

obd tool command

You can run this command to execute some commonly used commands.

obd tool command <deploy name> <command> [options]

The following table lists the commands.

  • pid: View the pid of the service (non-interactive command)

  • ssh: Log in to the target server and go to the log directory (interactive command)

  • less: View the logs of the target service (interactive command)

  • gdb: Attach gdb to the template service (interactive command)

The following table describes the options.

Option
Required
Data type
Default value
Description
-c/--components No string If the command is an interactive command, the first component in the configuration file is selected by default. If the command is a non-interactive command, all components are used by default. The name of the component to execute the command. Separate the names of multiple components with commas (,).
-s/--servers No string If the command is an interactive command, the first node of the current component in the configuration file is selected by default. If the command is a non-interactive command, all available nodes are used by default. The name of the node in the specified component. Separate the names of multiple nodes with commas (,).

obd tool db_connect

You can run this command to establish a database connection.

obd tool db_connect <deploy name> [options]

The deploy name parameter specifies the deployment name, which can be considered an alias for the configuration file.

The following table describes the options.

Option
Required
Data Type
Default Value
Description
-c/--component No string The first component in the configuration file is selected by default. The name of the component to be connected. Valid values: obproxy, obproxy-ce, oceanbase, and oceanbase-ce.
-s/--server No string The first node of the current component in the configuration file is selected by default. The name of the node under the specified component.
-u/--user No string root The username used for the database connection.
-p/--password No string Empty by default. The password used for the database connection.
-t/--tenant No string sys The tenant used for the database connection.
-D/--database No string Empty by default. The name of the database used for the database connection.
--obclient-bin No string obclient The path of the OBClient binary file.

obd tool list

You can run this command to view the tools installed by using obd.

obd tool list

obd tool install

You can run this command to install the required tool by using obd.

Note

Since V3.4.0, obd supports the global installation of obclient. You can directly use the obclient command. If you use an obd version earlier than V3.4.0, you must configure the environment variable for obclient after the installation is successful.

obd tool install <tool name> [options]

The tool name parameter specifies the name of the tool to be installed. Valid values: obclient, obdiag (which is equivalent to oceanbase-diagnostic-tool), obtpch, obtpcc, ob-sysbench, and openjdk-jre.

Note

Since V2.10.0, obd supports the installation of obtpch, obtpcc, ob-sysbench, and openjdk-jre by using this command.

The following table describes the options.

Option
Required
Data Type
Default Value
Description
-V/--version No string The latest version is selected by default. The version of the tool to be installed.
-p/--prefix No string The home directory of the current user is selected by default. The installation path of the tool to be installed.
-y/--assumeyes No bool false Specifies whether to automatically confirm the installation issues.
-f/--force No bool false Specifies whether to forcibly install the tool when conflicts occur.

obd tool uninstall

You can run this command to uninstall a tool installed by using obd.

obd tool uninstall <tool name> [options]

The tool name parameter specifies the name of the tool to be uninstalled. Valid values: obclient, obdiag (oceanbase-diagnostic-tool), obtpch, obtpcc, ob-sysbench, and openjdk-jre.

Note

obd V2.10.0 and later allow you to run this command to uninstall obtpch, obtpcc, ob-sysbench, and openjdk-jre installed by using obd.

The following table describes the options.

Option
Required
Data type
Default value
Description
-y/--assumeyes No bool false Specifies whether to automatically confirm the problems that occur during uninstallation.
-f/--force No bool false Specifies whether to forcibly uninstall the tool when a conflict occurs.

obd tool update

You can run this command to upgrade a tool installed by using obd.

obd tool update <tool name> [options]

The tool name parameter specifies the name of the tool to be upgraded. Valid values: obclient, obdiag (oceanbase-diagnostic-tool), obtpch, obtpcc, ob-sysbench, and openjdk-jre.

Note

obd V2.10.0 and later allow you to run this command to upgrade obtpch, obtpcc, ob-sysbench, and openjdk-jre installed by using obd.

The following table describes the options.

Option
Required
Data type
Default value
Description
-V/--version No string The latest version by default. The target version for the tool upgrade.
-p/--prefix No string The installation path of the tool by default. The installation path after the tool is upgraded.
-y/--assumeyes No bool false Specifies whether to automatically confirm the problems that occur during the upgrade.
-f/--force No bool false Specifies whether to forcibly upgrade the tool when a conflict occurs.

obd display-trace

You can run this command to view the details of the log corresponding to the task ID. This helps you quickly locate the log.

obd display-trace <trace_id>

# example
obd display-trace 080b8ffc-9f7c-11ed-bec1-00163e030e58

The trace_id parameter specifies the task ID. After you run other obd commands, the corresponding task ID is output. The prompt also describes how to view the log. For example:

[admin@centos7 ~]$ obd cluster list
Local deploy is empty
Trace ID: a3cf9020-be42-11ed-b5b0-00163e030e58
If you want to view detailed obd logs, please run: obd display-trace a3cf9020-be42-11ed-b5b0-00163e030e58

Previous topic

Test command groups
Last

Next topic

obdiag commands
Next
What is on this page
obd devmode enable
obd devmode disable
obd env show
obd env set
obd env unset
obd env clear
obd tool command
obd tool db_connect
obd tool list
obd tool install
obd tool uninstall
obd tool update
obd display-trace