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

    Cluster parameters

    Last Updated:2024-11-11 07:37:14  Updated
    Share
    What is on this page
    Parameter levels
    Effective mode of a parameter
    View the level and effective mode of a parameter
    References

    folded

    Share

    In OceanBase Database, you can set parameters to control the features of a cluster, such as load balancing, major compaction time, major compaction mode, resource allocation, and module switches.

    You must specify the required parameters when the observer process starts for the first time. For other parameters, the default values are used if you do not specify them. After the process is started, the parameter values are persisted to the observer.config.bin file in the /home/admin/oceanbase/etc directory. You can run the strings observer.config.bin command to view the content in this file. When the process is started the next time, the system reads the parameter values from this file. If no modification is required, you do not need to specify any parameters.

    Parameter levels

    OceanBase Database provides cluster-level and tenant-level parameters.

    • Cluster-level parameters apply to all OBServer nodes in the cluster.

    • Tenant-level parameters apply to the OBServer node to which the current tenant belongs.

    Parameters whose names start with an underscore (_), such as _ob_max_thread_num, are hidden parameters. Hidden parameters are used by developers only for troubleshooting or emergency O&M. This topic does not describe hidden parameters, nor does it involve any.

    Different types of tenants have different privileges regarding querying and modifying parameters, as follows:

    Tenant type
    Parameters that can be queried
    Parameter setting
    sys tenant Cluster-level parameters and tenant-level parameters

    Note

    You can specify the TENANT keyword in the SHOW PARAMETERS statement to view the parameter settings of a specified tenant.

    Cluster-level parameters and tenant-level parameters

    Note

    In the sys tenant, you can specify the TENANT keyword to modify the parameters of all tenants or a specific tenant.

    User tenant Cluster-level parameters, and tenant-level parameters of the current tenant Tenant-level parameters of the current tenant

    The following table describes the data types of parameters in OceanBase Database.

    Data type
    Description
    BOOL The Boolean type. Valid values: true and false.
    CAPACITY The unit of capacity. Valid values: b (bytes), k (kilobytes, KB), m (megabytes, MB), g (gigabytes, GB), t (terabytes, TB), and p (petabytes, PB). The unit is case-insensitive. Default value: m.
    DOUBLE The Double (double-precision floating-point) type. A value of this data type occupies a storage space of 64 bits, contains 16 valid digits, and is accurate to 15 digits after the decimal point.
    INT The Int64 type. A value of this data type can be a positive integer, negative integer, or 0.
    MOMENT The type that represents a moment in the hh:mm format, such as 02:00. Special value: disable, which indicates that no time is specified. This data type applies only to the major_freeze_duty_time parameter.
    STRING The string type. A value of this type is entered by users.
    STRING_LIST The type that represents a list of strings separated with semicolons (;).
    TIME The time type. The following time units are supported: us (microseconds), ms (milliseconds), s (seconds), m (minutes), h (hours), and d (days). If no suffix is added to a value of this data type, the unit s is used by default. The unit is case-insensitive.

    Effective mode of a parameter

    Generally, parameters take effect dynamically or upon a restart of the OBServer node. Most parameters take effect dynamically without the need to restart the OBServer node.

    View the level and effective mode of a parameter

    To view the level and effective mode of a parameter, execute the following statement:

    obclient [(none)]> SHOW PARAMETERS LIKE 'max_syslog_file_count';
    

    The query result is as follows:

    +-------+----------+----------------+----------+-----------------------+-----------+-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------+---------+---------+-------------------+---------------+-----------+
    | zone  | svr_type | svr_ip         | svr_port | name                  | data_type | value | info                                                                                                                                                                                                                                             | section  | scope   | source  | edit_level        | default_value | isdefault |
    +-------+----------+----------------+----------+-----------------------+-----------+-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------+---------+---------+-------------------+---------------+-----------+
    | zone1 | observer | 172.xx.xxx.xxx |     2882 | max_syslog_file_count | INT       | 0     | specifies the maximum number of the log files that can co-exist before the log file recycling kicks in. Each log file can occupy at most 256MB disk space. When this value is set to 0, no log file will be removed. Range: [0, +∞) in integer   | OBSERVER | CLUSTER | DEFAULT | DYNAMIC_EFFECTIVE | 0             |         1 |
    +-------+----------+----------------+----------+-----------------------+-----------+-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------+---------+---------+-------------------+---------------+-----------+
    1 row in set
    

    where

    • The value in the scope column indicates the level of the parameter. The value CLUSTER indicates a cluster-level parameter, and the value TENANT indicates a tenant-level parameter.

    • The value in the edit_level column indicates the effective mode of the parameter. The value dynamic_effective indicates that the parameter takes effect dynamically, and the static_effective value indicates that the parameter takes effect upon a restart of the OBServer node. Most parameters take effect dynamically without the need to restart the OBServer node.

    References

    For more information about O&M operations related to cluster parameters, see the following topics:

    • View cluster parameters

    • Modify cluster parameters

    Previous topic

    Overview
    Last

    Next topic

    View a zone
    Next
    What is on this page
    Parameter levels
    Effective mode of a parameter
    View the level and effective mode of a parameter
    References