OceanBase logo

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

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

A unified distributed database ready for your transactional, analytical, and AI workloads.

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

V3.1.0Community Edition

  • What is obd
  • Quick Start
    • Install obd
    • Quickly deploy OceanBase Database
    • Quickly deploy OCP
    • Deploy an OceanBase cluster on the GUI
  • obd Command
    • Quick deployment command
    • Cluster commands
    • Mirror and repository commands
    • Testing commands
    • Tool commands
    • obdiag commands
    • Binlog commands
    • Telemetry commands
  • User Guide
    • Configuration files
    • Deploy through GUI
      • GUI operation overview
      • Deploy OCP through the GUI
      • Modify components on the GUI
    • Deploy through CLI
      • Deploy OceanBase Database on a single server
      • Deploy OCP Express by using commands
      • Deploy and use obconfigserver
      • Deploy the binlog service
      • Deploy oblogproxy by using the CLI
      • Deploy OCP by using commands
      • Use OCP to take over a cluster deployed by obd
      • Use obd to take over a cluster
      • Add GUI-based monitoring for an existing cluster
      • Upgrade OCP Express
      • Upgrade OceanBase Database
      • Physical Standby Database
        • Deploy primary and standby tenants by using obd
        • Switch the roles of tenants and decouple a standby tenant from the primary tenant
      • Scale out a cluster and change cluster components
      • Performance test
      • Cluster diagnotistics
  • FAQ
    • FAQ
    • How do I upgrade an OBProxy to obproxy-ce 3.2.3?
  • Mode configuration rules
  • Error codes
  • Release Notes
    • Version rules
    • 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 Deployer V2.8.0
    • V2.7
      • OceanBase Deployer V2.7.0
    • V2.6
      • OceanBase Deployer V2.6.2
      • OceanBase Deployer V2.6.1
      • OceanBase Deployer V2.6.0
    • V2.5
      • OceanBase Deployer V2.5.0
    • V2.4
      • OceanBase Deployer V2.4.0
    • V2.3
      • OceanBase Deployer V2.3.1
      • OceanBase Deployer V2.3.0
    • V2.2
      • OceanBase Deployer V2.2.0
    • V2.1
      • OceanBase Deployer V2.1.1
      • OceanBase Deployer V2.1.0
    • V2.0
      • OceanBase Deployer V2.0.1
      • OceanBase Deployer 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

Download PDF

What is obd Install obd Quickly deploy OceanBase Database Quickly deploy OCP Deploy an OceanBase cluster on the GUI Quick deployment command Cluster commands Mirror and repository commands Testing commands Tool commands obdiag commands Binlog commands Telemetry commands Configuration files GUI operation overview Deploy OCP through the GUI Modify components on the GUI Deploy OceanBase Database on a single server Deploy OCP Express by using commands Deploy and use obconfigserver Deploy the binlog service Deploy oblogproxy by using the CLI Deploy OCP by using commands Use OCP to take over a cluster deployed by obd Use obd to take over a cluster Add GUI-based monitoring for an existing cluster Upgrade OCP Express Upgrade OceanBase Database Scale out a cluster and change cluster components Performance test Cluster diagnotistics FAQ How do I upgrade an OBProxy to obproxy-ce 3.2.3? Mode configuration rules Error codes Version rules OceanBase Deployer V3.1.2 OceanBase Deployer V3.1.1 OceanBase Deployer V3.1.0 OceanBase Deployer V3.0.1 OceanBase Deployer V3.0.0 OceanBase Deployer V2.10.1 OceanBase Deployer V2.10.0 OceanBase Deployer V2.9.2 OceanBase Deployer V2.9.1 OceanBase Deployer V2.9.0 OceanBase Deployer V2.8.0 OceanBase Deployer V2.7.0 OceanBase Deployer V2.6.2 OceanBase Deployer V2.6.1 OceanBase Deployer V2.6.0 OceanBase Deployer V2.5.0 OceanBase Deployer V2.4.0 OceanBase Deployer V2.3.1 OceanBase Deployer V2.3.0 OceanBase Deployer V2.2.0 OceanBase Deployer V2.1.1 OceanBase Deployer V2.1.0 OceanBase Deployer V2.0.1 OceanBase Deployer V2.0.0 OceanBase Deployer V1.6.2 OceanBase Deployer V1.6.1 OceanBase Deployer V1.6.0 OceanBase Deployer V1.5.0 OceanBase Deployer V1.4.0 OceanBase Deployer V1.3.3 OceanBase Deployer V1.3.2 OceanBase Deployer V1.3.0 OceanBase Deployer V1.2.1 OceanBase Deployer V1.2.0
OceanBase logo

The Unified Distributed Database for the Al Era.

Follow Us
Products
OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
Resources
DocsBlogLive DemosTraining & Certification
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. V3.1.0
iconOceanBase Deployer
V 3.1.0Community Edition
Community Edition
  • 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

Install obd

Last Updated:2025-03-21 09:00:59  Updated
share
What is on this page
Prepare the environment
Install obd
Related operations
Uninstall the OceanBase All in One package

folded

share

This topic describes how to install OceanBase Deployer (obd) by using the OceanBase All in One package, an RPM package, or source code.

Prepare the environment

Make sure that the operating system of your server is supported. For more information about the supported operating systems, see the Hardware resources section in Software and hardware requirements.

Install obd

(Recommend) Install obd by using the OceanBase All in One package
Install obd by using an RPM package
Install obd by using source code

OceanBase Database V4.0.0 and later provide the OceanBase All in One package. You can use this package to install OceanBase Database, OceanBase Cloud Platform (OCP), obd, OceanBase Database Proxy (ODP), OceanBase Command-Line Client (OBClient), OCP Express (supported in V4.1.0 or later), Prometheus, Grafana, and OceanBase Diagnostic Tool (obdiag) at a time.

Note

  • The components provided by the OceanBase All in One package vary with the series. In the V4.3.x series, OCP is provided in V4.3.3 and later. In the V4.2.x series, OCP is provided in V4.2.5 and later. In the V4.2.1 series, OCP is provided in V4.2.1_CE_BP9_HF1 and later.

  • We recommend that you download the OceanBase All in One package for deployment. The package provides all required components (except obbinlog) of the recommended versions, and the components have passed adaptation tests.

Online installation
Offline installation

If your server can connect to the Internet, run the following commands to perform online installation. After the installation is complete, a tmp.xxx folder, such as tmp.jvzpVREAs9, is created as the installation directory under /tmp.

[admin@test001 ~]$ bash -c "$(curl -s https://obbusiness-private.oss-cn-shanghai.aliyuncs.com/download-center/opensource/oceanbase-all-in-one/installer.sh)"
[admin@test001 ~]$ source ~/.oceanbase-all-in-one/bin/env.sh

If your server cannot connect to the Internet, perform the following steps to install the components offline:

  1. Download the latest OceanBase All in One package from OceanBase Download Center and copy it to the central control server. We recommend that you download the latest version.

  2. In the directory where the package is located, run the following commands to decompress and install the package:

    [admin@test001 ~]$ tar -xzf oceanbase-all-in-one-*.tar.gz
    [admin@test001 ~]$ cd oceanbase-all-in-one/bin/
    [admin@test001 bin]$ ./install.sh
    [admin@test001 bin]$ source ~/.oceanbase-all-in-one/bin/env.sh
    

Note

When you install obd by using the OceanBase All in One package, the install.sh script attempts to install the package by using a user with the administrator privileges. If the current user does not have sudo privileges, you can enter the password of the current user in the password text box or press the Enter key three times when prompted, and then type n to use the current user for installation.

  • If you install obd as the root user or a regular user with sudo privileges, the executable file of obd is stored in the /usr/bin/obd directory after the installation.
  • If you install obd as a regular user, the executable file of obd is stored in the ~/.oceanbase-all-in-one/obd/usr/bin/obd directory after the installation.

You can install obd online or offline, depending on whether your server can connect to the Internet. You can install obd alone by using an RPM package. If your server can connect to the Internet, obd automatically obtains the required installation packages from a remote image source. If your server cannot connect to the Internet, you must configure a local image repository for obd after it is installed.

Online installation
Offline installation

If your server can connect to the Internet and runs on CentOS or RedHat, you can run the following commands to install obd online:

[admin@test001 ~]$ sudo yum install -y yum-utils
[admin@test001 ~]$ sudo yum-config-manager --add-repo https://mirrors.aliyun.com/oceanbase/OceanBase.repo
[admin@test001 ~]$ sudo yum install -y ob-deploy
[admin@test001 ~]$ source /etc/profile.d/obd.sh

Note

The yum command automatically installs the latest version. You can declare a version number to install the specified version. For example, if you use the yum install -y ob-deploy-1.6.2 command to install obd, obd V1.6.2 will be installed. We recommend that you install the latest version.

If your server cannot connect to the Internet, you can download the installation packages for obd and the required components from OceanBase Download Center. We recommend that you download the latest version. Then, copy the downloaded packages to your server.

To install obd on CentOS or RedHat, run the following command:

sudo yum install ob-deploy-*.rpm

To install obd on Ubuntu or Debian, run the following command:

sudo alien --scripts -i ob-deploy-*.rpm

After you install obd and download the installation packages for the required components from OceanBase Download Center, perform the following steps to add the installation packages to the local image repository of obd.

You can perform the following steps as the system user that deployed obd. In this example, the admin user is used.

  1. Run the following command to disable remote repositories:

    obd  mirror disable remote
    

    Run the obd mirror list command to confirm whether the remote repositories are disabled. If the values of the remote repositories in the Enabled column are changed to False, the remote image sources are disabled.

  2. In the directory where the installation package is located, run the following command to upload the installation package to the local repository:

    obd mirror clone *.rpm
    
  3. View the list of installation packages in the local repository.

    obd mirror list local
    

    If the desired installation package is in the list, the installation package is uploaded.

Before you use source code to install obd, make sure that the following dependencies are installed:

  • gcc

  • wget

  • python-devel

  • openssl-devel

  • xz-devel

  • mysql-devel

To compile source code to build obd, you must perform the following steps in the Python 2.7 and Python 3.8 environments:

  1. Run the following command in Python 2.7:

    sh rpm/build.sh executer
    

    Note

    The preceding command compiles the interpreter needed in OceanBase Database upgrades. If no upgrade is needed, skip this step.

  2. Run the following commands in Python 3.8:

    sh rpm/build.sh build_obd
    source /etc/profile.d/obd.sh
    

Note

obd V2.0.0 and later cannot be installed by using source code in Python 2.

Related operations

Uninstall the OceanBase All in One package

To uninstall the OceanBase All in One package, perform the following steps:

  1. Uninstall the package.

    You need to run the uninstall.sh script in the installation directory of the OceanBase All in One package. The default installation directory for online installation is /tmp/tmp.xxxx/oceanbase-all-in-one, and that for offline installation is ~/oceanbase-all-in-one.

    [admin@test001 ~]$ cd oceanbase-all-in-one/bin/
    [admin@test001 bin]$ ./uninstall.sh
    
  2. Delete environment variables.

    [admin@test001 bin]$ vim ~/.bash_profile
    # Delete the source /home/admin/.oceanbase-all-in-one/bin/env.sh from the file.
    
  3. Make the modification take effect.

    After you delete the environment variables, you must log in to the terminal again or run the source command to make the modification take effect. Here is an example:

    [admin@test001 ~]$ source ~/.bash_profile
    

Previous topic

What is obd
Last

Next topic

Quickly deploy OceanBase Database
Next
What is on this page
Prepare the environment
Install obd
Related operations
Uninstall the OceanBase All in One package