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.1.0Enterprise Edition

    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.1.0
    iconOceanBase Database
    SQL - V 4.1.0Enterprise Edition
    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

    View resource pools

    Last Updated:2023-08-01 06:02:22  Updated
    share
    What is on this page
    Procedure

    folded

    share

    After a resource pool is created, you can view the resource pools in the cluster and check the resource distribution among the resource pools.

    Procedure

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

    2. Execute the following statement to view information of resource pools in the current cluster:

      obclient [oceanbase]> SELECT * FROM oceanbase.DBA_OB_RESOURCE_POOLS\G;
      *************************** 1. row ***************************
      RESOURCE_POOL_ID: 1
                  NAME: sys_pool
             TENANT_ID: 1
           CREATE_TIME: 2022-11-15 14:26:23.038148
           MODIFY_TIME: 2022-11-15 14:26:23.044325
            UNIT_COUNT: 1
        UNIT_CONFIG_ID: 1
             ZONE_LIST: zone1
          REPLICA_TYPE: FULL
      *************************** 2. row ***************************
      RESOURCE_POOL_ID: 1001
                  NAME: pool_mysql001_zone1_bmg
             TENANT_ID: 1002
           CREATE_TIME: 2022-11-15 14:50:41.839785
           MODIFY_TIME: 2022-11-15 14:50:41.923685
            UNIT_COUNT: 1
        UNIT_CONFIG_ID: 1001
             ZONE_LIST: zone1
          REPLICA_TYPE: FULL
      *************************** 3. row ***************************
      RESOURCE_POOL_ID: 1002
                  NAME: pool_mysql002_zone1_pej
             TENANT_ID: 1004
           CREATE_TIME: 2022-11-15 14:51:22.271744
           MODIFY_TIME: 2022-11-15 14:51:22.321220
            UNIT_COUNT: 1
        UNIT_CONFIG_ID: 1002
             ZONE_LIST: zone1
          REPLICA_TYPE: FULL
      *************************** 4. row ***************************
      RESOURCE_POOL_ID: 1003
                  NAME: pool_oracle001_zone1_zco
             TENANT_ID: 1006
           CREATE_TIME: 2022-11-15 14:51:49.622973
           MODIFY_TIME: 2022-11-15 14:51:49.675680
            UNIT_COUNT: 1
        UNIT_CONFIG_ID: 1003
             ZONE_LIST: zone1
          REPLICA_TYPE: FULL
      *************************** 5. row ***************************
      RESOURCE_POOL_ID: 1004
                  NAME: pool_oracle002_zone1_mjh
             TENANT_ID: 1008
           CREATE_TIME: 2022-11-15 14:55:10.986570
           MODIFY_TIME: 2022-11-15 14:55:11.036814
            UNIT_COUNT: 1
        UNIT_CONFIG_ID: 1004
             ZONE_LIST: zone1
          REPLICA_TYPE: FULL
      5 rows in set
      

      Parameters:

      • RESOURCE_POOL_ID: the ID of the resource pool. Each resource pool ID corresponds to one resource pool.

      • TENANT_ID: the ID of the tenant to which the resource pool belongs. Each tenant ID corresponds to one tenant. The ID of the sys tenant is 1. For more information about how to view the details of the current tenant, see View tenant information.

        If the value of TENANT_ID is NULL in the query result, the resource pool is not bound to any tenant. You can allocate the resource pool to a tenant. For more information about how to allocate a resource pool to a tenant, see Allocate a resource pool to a tenant.

      • UNIT_COUNT: the number of resource units in the resource pool.

      • UNIT_CONFIG_ID: the ID of the resource unit configs in the resource pool. One resource unit corresponds to one resource unit config ID.

        For more information about how to view resource unit configs, namely resource unit configurations, see View resource unit configurations.

      • ZONE_LIST: the zones that are allowed to use resources in the resource pool.

    Previous topic

    Create a resource pool
    Last

    Next topic

    Allocate a resource pool to a tenant
    Next
    What is on this page
    Procedure