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

    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.6.0
    iconOceanBase Database
    SQL - V 4.6.0
    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

    Update resource management plan directive

    Last Updated:2026-05-07 11:26:25  Updated
    Share
    What is on this page
    Prerequisites
    Procedure
    References

    folded

    Share

    After you create a resource management plan directive, you can call the UPDATE_PLAN_DIRECTIVE subprogram in the DBMS_RESOURCE_MANAGER package to update it as needed. You can update the resource management plan, the bound resource group, the remarks of the resource management plan directive, and the CPU and IOPS resources for the resource group.

    Prerequisites

    Before you update a resource management plan directive, if you want to change the resource management plan or resource group, make sure that you have created new resource management plans or resource groups. For more information about how to create a resource management plan or resource group, see Configure user-level resource isolation.

    Procedure

    1. Log in to the MySQL tenant of the cluster as the tenant administrator.

    2. Call the UPDATE_PLAN_DIRECTIVE subprogram in the DBMS_RESOURCE_MANAGER package to update the resource management plan directive.

      obclient [test]> CALL DBMS_RESOURCE_MANAGER.UPDATE_PLAN_DIRECTIVE(
      PLAN => 'daytime',
      GROUP_OR_SUBPLAN => 'interactive_group',
      NEW_COMMENT => 'new',
      NEW_MGMT_P1 => 40,
      NEW_UTILIZATION_LIMIT => 60,
      NEW_MIN_IOPS => 40,
      NEW_MAX_IOPS => 80,
      NEW_WEIGHT_IOPS => 70,
      NEW_MAX_NET_BANDWIDTH => 30,
      NEW_NET_BANDWIDTH_WEIGHT => 30);
      

      The related parameters are described as follows:

      • PLAN: the name of the new resource management plan.

      • GROUP_OR_SUBPLAN: the new resource group.

      • NEW_COMMENT: the new remarks for the resource management plan directive.

      • NEW_MGMT_P1: the new CPU ratio that is committed to be allocated to the resource group when the system is fully loaded.

      • NEW_UTILIZATION_LIMIT: the new limit on the CPU resources for the resource group.

      • NEW_MIN_IOPS: the new minimum IOPS resources reserved for the resource group in case of I/O contention. The sum of the IOPS resources cannot exceed 100.

      • NEW_MAX_IOPS: the new maximum IOPS resources available to the resource group. The sum can exceed 100.

      • NEW_WEIGHT_IOPS: the new IOPS weight. The sum can exceed 100.

      • NEW_MAX_NET_BANDWIDTH: redefines the maximum network bandwidth available to the resource group. The total can exceed 100.

      • NEW_NET_BANDWIDTH_WEIGHT: redefines the weight value for network bandwidth. The total can exceed 100.

    3. After successful execution, you can check the DBA_OB_RSRC_DIRECTIVES view for confirmation.

      obclient [test]> SELECT * FROM oceanbase.DBA_OB_RSRC_DIRECTIVES;
      

      The query result is as follows:

      +---------+-------------------+----------+---------+-------------------+----------+----------+-------------+-------------------+----------------------+
      | PLAN    | GROUP_OR_SUBPLAN  | COMMENTS | MGMT_P1 | UTILIZATION_LIMIT | MIN_IOPS | MAX_IOPS | WEIGHT_IOPS | MAX_NET_BANDWIDTH | NET_BANDWIDTH_WEIGHT |
      +---------+-------------------+----------+---------+-------------------+----------+----------+-------------+-------------------+----------------------+
      | daytime | batch_group       |          |     100 |                40 |       40 |       80 |          70 |               100 |                    0 |
      | daytime | interactive_group | new      |      40 |                60 |       40 |       80 |          70 |                30 |                   30 |
      +---------+-------------------+----------+---------+-------------------+----------+----------+-------------+-------------------+----------------------+
      2 rows in set
      

      For more information about the DBA_OB_RSRC_DIRECTIVES view, see DBA_OB_RSRC_DIRECTIVES.

    References

    UPDATE_PLAN_DIRECTIVE

    Previous topic

    Configure resource isolation within a tenant
    Last

    Next topic

    Delete a plan directive
    Next
    What is on this page
    Prerequisites
    Procedure
    References