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

    UPDATE_PLAN_DIRECTIVE

    Last Updated:2026-04-14 12:43:57  Updated
    share
    What is on this page
    Syntax
    Parameters
    Considerations
    Examples
    References

    folded

    share

    The UPDATE_PLAN_DIRECTIVE procedure is used to update a resource plan directive.

    Applicability

    This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition provides only MySQL-compatible mode.

    Syntax

    DBMS_RESOURCE_MANAGER.UPDATE_PLAN_DIRECTIVE (
        PLAN                             IN VARCHAR2,
        GROUP_OR_SUBPLAN                 IN VARCHAR2,
        NEW_COMMENT                      IN VARCHAR2 DEFAULT NULL,
        NEW_MGMT_P1                      IN INT   DEFAULT NULL,
        NEW_UTILIZATION_LIMIT            IN INT   DEFAULT NULL,
        NEW_MIN_IOPS                     IN INT   DEFAULT NULL,
        NEW_MAX_IOPS                     IN INT   DEFAULT NULL,
        NEW_WEIGHT_IOPS                  IN INT   DEFAULT NULL,
        NEW_MAX_NET_BANDWIDTH            IN INT   DEFAULT NULL,
        NEW_NET_BANDWIDTH_WEIGHT         IN INT   DEFAULT NULL);
    

    Parameters

    Parameter Description
    PLAN The name of the resource plan.
    GROUP_OR_SUBPLAN The name of the resource group or subplan.
    NEW_COMMENT The comment for the plan directive.
    NEW_MGMT_P1 The maximum percentage of CPU resources that can be used when the system is under heavy load.
    NEW_UTILIZATION_LIMIT The upper limit of CPU resource utilization. The value of this parameter ranges from 0 to 100. 100 indicates that the tenant can use all CPU resources. If the value is 20, the tenant can use up to 20% of the CPU resources.
    NEW_MIN_IOPS The reserved IOPS resources for the resource group when I/O contention occurs. The total value cannot exceed 100.
    NEW_MAX_IOPS The maximum IOPS resources that can be used by the resource group. The total value can exceed 100.
    NEW_WEIGHT_IOPS The weight of IOPS resources. The total value can exceed 100.
    NEW_MAX_NET_BANDWIDTH The maximum network bandwidth that can be used by the resource group. The total value can exceed 100.
    NEW_NET_BANDWIDTH_WEIGHT The weight of network bandwidth resources. The total value can exceed 100.

    Considerations

    If no parameters are specified for the UPDATE_PLAN_DIRECTIVE procedure, the parameter values remain unchanged in the data dictionary.

    To clear (set to zero or invalid) any numeric parameter in a resource plan directive, set the parameter to -1 using the UPDATE_PLAN_DIRECTIVE procedure.

    Examples

    • Update the comment of the directive for the resource group group1 bound to the resource plan DAY.

      obclient [SYS]> delimiter //
      
      obclient [SYS]> BEGIN DBMS_RESOURCE_MANAGER.UPDATE_PLAN_DIRECTIVE('DAY','group1','Intermediate level group');
      END ;//
      
      obclient [SYS]> delimiter ;
      
    • Update the resource plan content for the resource group big_group bound to the resource plan plan_a, including CPU, IOPS, and network bandwidth resources.

      obclient [SYS]> delimiter //
      
      obclient [SYS]> BEGIN DBMS_RESOURCE_MANAGER.UPDATE_PLAN_DIRECTIVE(
        PLAN => 'plan_a',
        GROUP_OR_SUBPLAN => 'big_group',
        NEW_COMMENT => 'new',
        NEW_MGMT_P1 => 40,
        NEW_UTILIZATION_LIMIT => 60,
        NEW_MIN_IOPS => 20,
        NEW_MAX_IOPS  => 100,
        NEW_WEIGHT_IOPS  => 10,
        NEW_MAX_NET_BANDWIDTH => 60,
        NEW_NET_BANDWIDTH_WEIGHT => 60);
        END ;//
      
      obclient [SYS]> delimiter ;
      

    References

    For more information about how to update a resource plan directive, see Update a resource plan directive.

    Previous topic

    SET_CONSUMER_GROUP_MAPPING
    Last

    Next topic

    Overview
    Next
    What is on this page
    Syntax
    Parameters
    Considerations
    Examples
    References