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

    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.2.0
    iconOceanBase Database
    SQL - V 4.2.0
    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

    THROTTLE

    Last Updated:2023-10-31 11:17:11  Updated
    share
    What is on this page
    Purpose
    Syntax
    Parameters
    Examples

    folded

    share

    Purpose

    You can use this statement to configure SQL feature throttling to fail SQL requests that match the configured throttling features before they are processed, preventing them from affecting normal requests.

    Syntax

    alter_system_throttle_stmt:
        ALTER SYSTEM throttle_action;
    
    throttle_action:
          ENABLE SQL THROTTLE [priority_option] [using_metric_option_list]
        | DISABLE SQL
    
    priority_option:
        FOR PRIORITY <= INT_VALUE
    
    using_metric_option_list:
        USING metric_option_list
    
    metric_option_list:
        metric_option [metric_option ...]
    
    metric_option:
          RT = {INT_VALUE | DECIMAL_VALUE}
        | CPU = {INT_VALUE | DECIMAL_VALUE}
        | IO = INT_VALUE
        | NETWORK = {INT_VALUE | DECIMAL_VALUE}
        | QUEUE_TIME = {INT_VALUE | DECIMAL_VALUE}
        | LOGICAL_READS = {INT_VALUE | DECIMAL_VALUE}
    

    Parameters

    Parameter Description
    ENABLE SQL Enables throttling. This parameter is followed by throttling features and eigenvalues.
    FOR PRIORITY The priority of sessions subject to throttling.Throttling applies only to certain sessions. You can use the session-level variable sql_throttle_priority to set the priority of the current session. Default value: 100. For more information about this variable, see "System variables" in the Reference Guide. For example, if the priorities of sessions a, b, and c are 1, 2, and 3, ALTER SYSTEM ENABLE SQL THROTTLE FOR PRIORITY <= 2 USING QUEUE_TIME=0.1; indicates that sessions a and b are subject to throttling, but session c is not.
    RT Performs throttling based on the SQL response time.
    CPU Performs throttling based on the CPU utilization.

    Note

    The current version does not support this parameter.

    IO Performs throttling based on the number of I/O operations.

    Note

    The current version does not support this parameter.

    NETWORK Performs throttling based on the volume of the transmitted network traffic.

    Note

    The current version does not support this parameter.

    QUEUE_TIME Performs throttling based on the queue waiting time.
    LOGICAL_READS Performs throttling based on the number of logical reads.

    Note

    The current version does not support this parameter.

    DISABLE SQL Disables throttling.

    Examples

    Throttle requests whose queue waiting time exceeds 0.1s in sessions with PRIORITY less than or equal to 100.

    obclient> ALTER SYSTEM ENABLE SQL THROTTLE FOR PRIORITY <= 100 USING QUEUE_TIME=0.1;
    

    Previous topic

    SWITCHOVER
    Last

    Next topic

    ZONE
    Next
    What is on this page
    Purpose
    Syntax
    Parameters
    Examples