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

    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.4.2
    iconOceanBase Database
    SQL - V 4.4.2
    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

    PARAMETER

    Last Updated:2026-04-02 06:23:57  Updated
    share
    What is on this page
    Purpose
    Limitations and considerations
    Privilege requirements
    Syntax
    Modify the value of a configuration parameter
    Reset the value of a configuration parameter
    Examples
    Modify configuration parameters
    Reset configuration parameters
    References

    folded

    share

    Purpose

    • The ALTER SYSTEM [SET] parameter_name = expression statement is used to modify the value of a configuration parameter.

    • The ALTER SYSTEM RESET parameter_name statement is used to reset the value of a configuration parameter.

    In OceanBase Database, configuration parameters are categorized into cluster-level parameters and tenant-level parameters. Cluster-level parameters apply to all nodes in the entire cluster, while tenant-level parameters apply to all nodes of the current tenant. For more information about configuration parameters, see Overview of configuration parameters and system variables.

    Limitations and considerations

    • Only the sys tenant can modify or reset cluster-level parameters. User tenants cannot modify or reset cluster-level parameters.

    • The effectiveness of configuration parameters is generally divided into two types: dynamic effectiveness and restart effectiveness. Most configuration parameters are dynamically effective, meaning they take effect without the need to restart the OBServer node. Before modifying a configuration parameter, you can use the SHOW PARAMETERS LIKE statement to confirm its effectiveness. For more information about how to view the effectiveness of a configuration parameter, see Cluster-level configuration parameters.

    Privilege requirements

    To execute the ALTER SYSTEM [SET] parameter_name = expression statement and the ALTER SYSTEM RESET parameter_name statement, the current user must have the ALTER SYSTEM privilege. For more information about the privileges in OceanBase Database, see Privilege types in MySQL-compatible mode and Privilege types in Oracle-compatible mode.

    Syntax

    Modify the value of a configuration parameter

    ALTER SYSTEM [SET] alter_system_set_parameter_action [, alter_system_set_parameter_action...]
    
    alter_system_set_parameter_action:
    parameter_name = expression [COMMENT [=] 'text'] [SCOPE = {MEMORY | SPFILE | BOTH}] [SERVER [=] 'ip:port' | ZONE [=] 'zone_name' | TENANT [=] {sys | all_user | all | all_meta | tenant_name}]
    

    Parameters

    Parameter
    Description
    parameter_name Specifies the name of the configuration parameter to be modified.
    expression Specifies the new value of the configuration parameter.
    COMMENT Adds a comment about the modification. This parameter is optional, but it is recommended to include it.
    SCOPE Specifies the scope of the configuration parameter modification. The options are as follows:
    • MEMORY: Modifies only the value in memory. The modification takes effect immediately and will be lost after the OBServer node is restarted (currently, no configuration parameter supports this option).
    • SPFILE: Modifies only the value in the configuration table. The modification takes effect after the OBServer node is restarted.
    • BOTH: Modifies both the value in the configuration table and the value in memory. The modification takes effect immediately and will remain effective after the OBServer node is restarted.

    The default value of SCOPE is BOTH.
    SERVER Specifies the OBServer node in the cluster where the configuration parameter value is to be modified. Only one OBServer node can be specified.
    ZONE Specifies the zone in the cluster where the configuration parameter value is to be modified. Only one zone can be specified. After specifying a zone, the modification takes effect on all OBServer nodes in the zone. You cannot specify both a zone and a server.
    TENANT Specifies the tenant where the tenant-level configuration parameter value is to be modified. If not specified, the default is the current tenant. The options are as follows:
    • sys: Specifies the system tenant.
    • all_user and all: Specifies all user tenants.

      Note

      Starting from OceanBase Database V4.2.1, TENANT = all_user and TENANT = all have the same semantics. When you need to modify the values of configuration parameters for all user tenants, we recommend that you use TENANT = all_user. The TENANT = all option will be deprecated and no longer supported.

    • all_meta: Specifies all Meta tenants.
    • tenant_name: Specifies a specific tenant. Only one tenant can be specified at a time.

    This clause is required only when the sys tenant modifies the tenant-level configuration parameter of a specified tenant. For a list of tenant-level configuration parameters, see Tenant-level configuration parameters.

    Reset the value of a configuration parameter

    ALTER SYSTEM RESET parameter_name [SCOPE = {MEMORY | SPFILE | BOTH}] [TENANT [=] tenant_name];
    

    Parameters

    Parameter
    Description
    parameter_name Specifies the name of the configuration parameter to be reset.
    SCOPE Specifies the scope of the configuration parameter reset. The options are as follows:
    • MEMORY: Resets only the value in memory. The reset takes effect immediately and will be lost after the OBServer node is restarted (currently, no configuration parameter supports this option).
    • SPFILE: Resets only the value in the configuration table. The reset takes effect after the OBServer node is restarted.
    • BOTH: Resets both the value in the configuration table and the value in memory. The reset takes effect immediately and will remain effective after the OBServer node is restarted.

    The default value of SCOPE is BOTH.
    TENANT Specifies the tenant where the tenant-level configuration parameter value is to be reset. If not specified, the default is the current tenant. This clause is required only when the sys tenant modifies the tenant-level configuration parameter of a specified tenant. For a list of tenant-level configuration parameters, see Tenant-level configuration parameters.

    Examples

    Modify configuration parameters

    • In the sys tenant, modify the cluster-level parameter enable_sql_audit.

      obclient [oceanbase]> ALTER SYSTEM SET ENABLE_SQL_AUDIT = False SCOPE = BOTH;
      
    • In the sys tenant, modify the tenant-level parameter connection_control_max_connection_delay of the tenant tenant.

      obclient [oceanbase]> ALTER SYSTEM SET connection_control_max_connection_delay = 2147483646 TENANT = tenant;
      
    • In the sys tenant, modify the tenant-level parameter major_freeze_duty_time of all tenants in the cluster, including the sys tenant, user tenants, and Meta tenants.

      You need to execute the following commands in the sys tenant:

      obclient [oceanbase]> ALTER SYSTEM SET major_freeze_duty_time='01:00' TENANT = sys;
      
      obclient [oceanbase]> ALTER SYSTEM SET major_freeze_duty_time='01:00' TENANT = all_user;
      
      obclient [oceanbase]> ALTER SYSTEM SET major_freeze_duty_time='01:00' TENANT = all_meta;
      
    • In a user tenant, modify the tenant-level parameter major_freeze_duty_time of the current tenant.

      obclient [oceanbase]> ALTER SYSTEM SET major_freeze_duty_time='01:00';
      
    • In the sys tenant, reset the cluster-level parameter enable_sql_audit to its default value. The change takes effect immediately and is also updated to the SPFILE.

      obclient [oceanbase]> ALTER SYSTEM RESET ENABLE_SQL_AUDIT SCOPE = BOTH;
      

    Reset configuration parameters

    • The following example shows how to modify the log_disk_utilization_threshold parameter:

      obclient> ALTER SYSTEM RESET log_disk_utilization_threshold;
      
    • In the sys tenant, modify the tenant-level parameters of all or specified tenants. The following example shows how to do this:

      obclient> ALTER SYSTEM RESET log_disk_utilization_threshold TENANT='ALL';
      obclient> ALTER SYSTEM RESET log_disk_utilization_threshold TENANT='Oracle';
      

    References

    • Set parameters

    • Overview of configuration parameters and system variables

    Previous topic

    SET LOG_RESTORE_SOURCE
    Last

    Next topic

    RECOVER STANDBY
    Next
    What is on this page
    Purpose
    Limitations and considerations
    Privilege requirements
    Syntax
    Modify the value of a configuration parameter
    Reset the value of a configuration parameter
    Examples
    Modify configuration parameters
    Reset configuration parameters
    References