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.3.3

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogLive 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.3.3
    iconOceanBase Database
    SQL - V 4.3.3
    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

    Agent commands of obshell

    Last Updated:2024-12-02 03:48:26  Updated
    share
    What is on this page
    obshell agent start
    obshell agent stop
    obshell agent restart
    obshell agent upgrade

    folded

    share

    This topic describes how to use agent commands to manage OceanBase Shell (obshell). You can specify the -h or --help option in a command to query its help information.

    obshell agent start

    You can run this command to start obshell.

    ${home_path}/bin/obshell agent start [--ip] [-P] [--takeover]
    
    # example
    /home/admin/oceanbase/bin/obshell agent start --ip 10.10.10.1 -P 2886
    

    Here, home_path specifies the installation directory of OceanBase Database. By default, OBShell is installed in the bin directory under the installation directory of OceanBase Database.

    The following table describes the options in the command.

    Option
    Required?
    Data type
    Default value
    Description
    --ip No String N/A The IP address of obshell.
    -P/--port No Integer 2886 The port number of obshell.
    --takeover No Integer 1 Specifies whether to take over the OceanBase cluster. The value 0 indicates not to take over, and other values, including the default value 1, indicate to take over.

    obshell agent stop

    You can run this command to stop obshell.

    ${home_path}/bin/obshell agent stop
    

    Here, home_path specifies the installation directory of OceanBase Database. By default, obshell is installed in the bin directory under the installation directory of OceanBase Database.

    obshell agent restart

    You can run this command to restart obshell.

    ${home_path}/bin/obshell agent restart
    

    Here, home_path specifies the installation directory of OceanBase Database. By default, obshell is installed in the bin directory under the installation directory of OceanBase Database.

    obshell agent upgrade

    You can run this command to upgrade obshell.

    ${home_path}/bin/obshell agent upgrade -d [-V] [-t] [-y]
    
    # example
    /home/admin/oceanbase/bin/obshell agent upgrade -d /home/admin/oceanbase/upgrade/ -V 4.2.2.0-20231224224959
    

    Here, home_path specifies the installation directory of OceanBase Database. By default, obshell is installed in the bin directory under the installation directory of OceanBase Database.

    The following table describes the options in the command.

    Option
    Required?
    Data type
    Default value
    Description
    -d/--pkg_directory Yes String N/A The storage path to the upgrade packages.
    -V/--target_version No String N/A The target version. You must specify the version in a valid format, such as 4.2.2.0 or 4.2.2.0-20231224224959. If you do not specify this option, the latest obshell RPM package in the directory specified by -d is used.
    -t/--tmp_directory No String ${home_path}/upgrade The temporary directory to use during the upgrade, which stores the downloaded packages and all files generated during decompression and installation. It must be an absolute path.
    -y/--yes No N/A N/A Specifies to cancel secondary confirmation. You do not need to set a value for this option.
    -v/--verbose No N/A N/A Specifies to return execution details. You do not need to set a value for this option.

    Previous topic

    Configure an OBServer node to start automatically on boot
    Last

    Next topic

    Cluster commands of obshell
    Next
    What is on this page
    obshell agent start
    obshell agent stop
    obshell agent restart
    obshell agent upgrade