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

    Download PDF

    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 Database
    3. SQL
    4. V4.3.1
    iconOceanBase Database
    SQL - V 4.3.1
    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

    PARAMETER

    Last Updated:2026-04-15 08:25:15  Updated
    Share
    What is on this page
    Description
    Limitations and considerations
    Privilege requirements
    Syntax
    Modify the value of a parameter
    Reset the value of a parameter
    Examples
    Modify a parameter
    Reset a parameter
    References

    folded

    Share

    Description

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

    • The ALTER SYSTEM [RESET] parameter_name = expression statement is used to reset the value of a parameter.

    OceanBase Database provides cluster-level parameters and tenant-level parameters. A cluster-level parameter takes effect on all nodes in the cluster, and a tenant-level parameter takes effect on all nodes in the current tenant. For more information, see Overview.

    Limitations and considerations

    • Only the sys tenant can modify or reset cluster-level parameters. User tenants are not allowed to modify or reset cluster-level parameters.

    • Parameters take effect in two ways: dynamically and on restart. Most parameters take effect dynamically, which means that you do not need to restart the OBServer node for the changes to take effect. Before you modify a parameter, you can execute the SHOW PARAMETERS LIKE statement to confirm how the parameter takes effect. For more information, see Cluster parameters.

    Privilege requirements

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

    Syntax

    Modify the value of a 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 The name of the parameter to be modified.
    expression The new value of the parameter.
    COMMENT Comments on the modification. This parameter is optional, but we recommend that you do not skip it.
    SCOPE The scope of the parameter modification. Valid values: MEMORY, SPFILE, and BOTH.
    • MEMORY: modifies only the in-memory parameter value. The modification takes effect immediately and becomes invalid upon restart of the OBServer node. (Currently, no parameter supports this method.)
    • SPFILE: modifies only the parameter value in the configuration table. The modification takes effect upon restart of the OBServer node.
    • BOTH: modifies both the configuration table and the in-memory value. The modification takes effect immediately and remains effective upon restart of the OBServer node.

    The default value is BOTH.
    SERVER The OBServer node in which the parameter value is to be modified. You can specify only one OBServer node.
    ZONE The zone in which the parameter value is to be modified. You can specify only one zone. The modification takes effect on all OBServer nodes in the specified zone. You cannot specify both zone and server at the same time.
    TENANT The tenant in which the parameter value is to be modified at the tenant level. The default value is the current tenant.
    • sys: specifies to modify the parameter value in the sys tenant.
    • all_user and all: specifies to modify the parameter value in all user tenants.

      Note

      Starting from OceanBase Database V4.2.1, TENANT = all_user and TENANT = all have the same semantics. If you want to modify the parameter value in all user tenants, we recommend that you use TENANT = all_user. TENANT = all will be deprecated.

    • all_meta: specifies to modify the parameter value in all meta tenants.
    • tenant_name: specifies a tenant. You can specify only one tenant each time.

    This clause is required when you want to modify a tenant-level parameter in a tenant other than the current one from the sys tenant. For more information about tenant-level parameters, see Tenant-level parameters.

    Reset the value of a parameter

    ALTER SYSTEM [RESET] alter_system_set_parameter_action [, alter_system_set_parameter_action...]
    
    alter_system_set_parameter_action:
    parameter_name = expression [SCOPE = {MEMORY | SPFILE | BOTH}] [TENANT [=] tenant_name]
    

    Parameters

    Parameter
    Description
    parameter_name The name of the parameter to be reset.
    expression The parameter to be reset.
    SCOPE The scope that the parameter reset takes effect in. Valid values:
    • MEMORY: specifies to reset the parameter value in memory only. The modification takes effect immediately and will be lost after the OBServer node is restarted. (Currently, no parameter supports this scope.)
    • SPFILE: specifies to reset the parameter value in the configuration table. The modification will take effect only after the OBServer node is restarted.
    • BOTH: specifies to reset both the configuration table and the memory value of the parameter. The modification takes effect immediately and the parameter value will still take effect after the OBServer node is restarted.

    The default value of SCOPE is BOTH.
    TENANT The tenant that specifies the value of the tenant-level parameter to be reset. If this parameter is not specified, the current tenant is used as the default value. This clause is required only when you modify a tenant-level parameter in the sys tenant. For more information about tenant-level parameters, see Tenant-level parameters.

    Examples

    Modify a parameter

    • Modify the value of the cluster-level parameter enable_sql_audit in the sys tenant.

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

      obclient [oceanbase]> ALTER SYSTEM SET connection_control_max_connection_delay = 2147483646 TENANT = tenant;
      
    • Modify the value of the tenant-level parameter major_freeze_duty_time in all tenants in the cluster (including the sys tenant, user tenants, and meta tenants) in the sys tenant.

      You must 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;
      
    • Modify the value of the tenant-level parameter major_freeze_duty_time in the current tenant.

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

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

    Reset a parameter

    • Here is an example of resetting the log_disk_utilization_threshold parameter:

      obclient> ALTER SYSTEM RESET log_disk_utilization_threshold;
      
    • In the sys tenant, modify or reset all or specified tenant parameters. Here is an example:

      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 items and system variables

    Previous topic

    SET LOG_RESTORE_SOURCE
    Last

    Next topic

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