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

    Modify the log stream downgrade control time

    Last Updated:2026-04-15 08:25:14  Updated
    share
    What is on this page
    Procedure
    References

    folded

    share

    Applicability

    This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition does not support the arbitration service.

    When you enable the arbitration service for a tenant, you must specify the log stream downgrade control time. When log synchronization fails due to failures of half of the full-featured replicas and the log stream downgrade control time is reached, the arbitration service automatically performs the log stream downgrade process to recover services. The default log stream downgrade control time is 5s, which indicates the service interruption duration when an IDC fails.

    Procedure

    1. Log on to the database as an administrator of the sys tenant or a user tenant.

      Note that you must specify the corresponding parameters in the following sample code based on your actual database configurations.

      obclient -h10.xx.xx.xx -P2883 -uroot@sys#obdemo -p***** -A
      

      For more information about how to connect to a database, see Overview (MySQL mode) or Overview (Oracle mode).

    2. Query the log stream downgrade control time of the arbitration service for a tenant.

      • Execute the following statement in the sys tenant to query the log stream downgrade control time for the specified tenant:

        SHOW PARAMETERS LIKE 'arbitration_timeout' TENANT = 'tenant_name';
        

        Here is an example:

        obclient> SHOW PARAMETERS LIKE 'arbitration_timeout' TENANT = 'mysql';
        
      • Execute the following statement in a user tenant to query the log stream downgrade control time for the user tenant:

        obclient> SHOW PARAMETERS LIKE 'arbitration_timeout';
        

      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 | arbitration_timeout | TIME      | 5s    | The timeout before automatically degrading when arbitration member exists. Range: [3s,+∞]   | TRANS   | TENANT | DEFAULT | DYNAMIC_EFFECTIVE | 5s            |         1 |
      +-------+----------+----------------+----------+---------------------+-----------+-------+---------------------------------------------------------------------------------------------+---------+--------+---------+-------------------+---------------+-----------+
      1 row in set
      
    3. Select an appropriate statement to modify the log stream downgrade control time based on your business scenario.

      The arbitration_timeout parameter specifies the control time for triggering automatic downgrade of a log stream for a tenant. The default value is 5s. The value range is [3s,+∞). If you want to avoid the downgrade, you can specify a larger value, for example, 30d. The modification of this parameter takes effect immediately without restarting the OBServer node.

      • Execute the following statement in a user tenant to modify the log stream downgrade control time for the user tenant:

        obclient> ALTER SYSTEM SET arbitration_timeout = '10s';
        
      • Execute the following statement in the sys tenant to modify the log stream downgrade control time for the specified tenant:

        obclient> ALTER SYSTEM SET arbitration_timeout = '10s' TENANT = 'tenant_name';
        
      • Execute the following statement in the sys tenant to modify the log stream downgrade control time for all user tenants:

        obclient> ALTER SYSTEM SET arbitration_timeout = '10s' TENANT = all_user;
        

        or

        obclient> ALTER SYSTEM SET arbitration_timeout = '10s' TENANT = all;
        

        Note

        In OceanBase Database V4.2.1 and later, TENANT = all_user and TENANT = all express the same semantics. If you want an operation to take effect on all user tenants, we recommend that you use TENANT = all_user. TENANT = all will be deprecated.

    References

    For more information about the arbitration service, see the following topics:

    • Deploy an OceanBase cluster with two replicas and the arbitration service

    • Overview

    • Enable the arbitration service for a tenant

    • Disable the arbitration service for a tenant

    • Replace the arbitration service for a cluster

    • Remove the arbitration service for a cluster

    Previous topic

    Disable the arbitration service for a tenant
    Last

    Next topic

    Query log stream upgrade/downgrade information
    Next
    What is on this page
    Procedure
    References