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

    Drop a resource pool

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

    folded

    share

    This topic describes how to drop a resource pool.

    Prerequisites

    Before dropping a resource pool, make sure that the resource pool is not being used by any tenants. If the resource pool is being used by a tenant, you need to release the resource pool before dropping it.

    • If a tenant has multiple resource pools, you can drop a resource pool from the tenant by modifying the tenant's resource pool configuration. For detailed instructions, see Modify attributes of a tenant.

    • If a tenant has only one resource pool, you cannot directly drop it.

      • To drop it, first create a new resource pool and allocate it to the tenant, then release the target resource pool by modifying the resource pool configuration. For instructions on creating a resource pool, see the "Create a resource pool" section in the Create a tenant topic.
      • If the tenant is no longer in use, you can drop the tenant first, and then drop the resource pool. For instructions on dropping a tenant, see Drop a tenant.

    Procedure

    1. Log in to the sys tenant of the cluster as the root user.

      obclient -h172.30.xx.xx -P2883 -uroot@sys#cluster -p**** -A
      
    2. Access the database named oceanbase.

      obclient [(none)]> USE oceanbase;
      
    3. Query the DBA_OB_RESOURCE_POOLS view for the configuration information about resource pools. If the value of TENANT_ID of a resource pool is NULL, the resource pool is not allocated to any tenant and can be dropped.

      To query the configuration information about the resource pool named mq_pool_02, execute the following statement:

      obclient [oceanbase]> SELECT TENANT_ID,NAME FROM DBA_OB_RESOURCE_POOLS WHERE NAME = 'mq_pool_02';
      +-----------+------------+
      | tenant_id | name       |
      +-----------+------------+
      |      NULL | mq_pool_02 |
      +-----------+------------+
      1 row in set
      

      For more information about the DBA_OB_RESOURCE_POOLS view, see DBA_OB_RESOURCE_POOLS.

    4. Execute the DROP RESOURCE POOL statement to drop a resource pool.

      To drop the resource pool named mq_pool_02, execute the following statement:

      obclient [oceanbase]> DROP RESOURCE POOL mq_pool_02;
      Query OK, 0 rows affected
      

      For more information about the DROP RESOURCE POOL statement, see DROP RESOURCE POOL.

    5. Query the DBA_OB_RESOURCE_POOLS view to verify whether the resource pool is successfully dropped.

      obclient [oceanbase]> SELECT * FROM DBA_OB_RESOURCE_POOLS WHERE NAME = 'mq_pool_02';
      Empty set
      

    References

    • Create a tenant

    • Modify attributes of a tenant

    Previous topic

    Merge and split a resource pool
    Last

    Next topic

    Query unit configs
    Next
    What is on this page
    Prerequisites
    Procedure
    References