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

    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.3.5
    iconOceanBase Database
    SQL - V 4.3.5
    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

    oceanbase.DBA_OB_UNITS

    Last Updated:2026-04-15 06:09:08  Updated
    share
    What is on this page
    Purpose
    Columns
    Sample query

    folded

    share

    Note

    This view is introduced since OceanBase Database V4.0.0.

    Purpose

    This view displays information about all units.

    Columns

    Column Type Nullable? Description
    UNIT_ID bigint(20) NO Unit ID
    TENANT_ID bigint(20) NO ID of the tenant to which the unit belongs.
  • NULL: The unit does not belong to any tenant.
  • Valid value: ID of the target tenant.
  • STATUS varchar(128) NO
  • ACTIVE: Normal status
  • DELETING: Status of deletion
  • RESOURCE_POOL_ID bigint(20) NO ID of the resource pool to which the unit belongs.
    UNIT_GROUP_ID bigint(20) NO ID of the unit group to which the unit belongs.
    CREATE_TIME timestamp(6) YES Creation time of the unit.
    MODIFY_TIME timestamp(6) YES Modification time of the unit.
    ZONE varchar(128) NO Zone name
    SVR_IP varchar(46) NO IP address of the OBServer to which the unit belongs.
    SVR_PORT bigint(20) NO Port of the OBServer to which the unit belongs.
    MIGRATE_FROM_SVR_IP varchar(46) NO
  • NULL: The unit is not being migrated.
  • Valid value: IP address of the source server where the unit is being migrated from.
  • MIGRATE_FROM_SVR_PORT bigint(20) NO
  • NULL: The unit is not being migrated.
  • Valid value: Port of the source server where the unit is being migrated from.
  • MANUAL_MIGRATE varchar(3) NO
  • NULL: The unit is not being migrated.
  • YES: Unit migration initiated manually
  • NO: Unit migration initiated automatically
  • UNIT_CONFIG_ID bigint(20) NO ID of the unit specification.
    MAX_CPU double NO Upper limit of the CPU specification.
    MIN_CPU double NO Lower limit of the CPU specification.
    MEMORY_SIZE bigint(20) NO Memory specification in bytes.
    LOG_DISK_SIZE bigint(20) NO Log disk specification in bytes.
    DATA_DISK_SIZE bigint(20) NO Size of local cache available to the unit in bytes. This field applies only to shared storage (Shared-Storage, or SS) mode. In shared-nothing (Shared-Nothing, or SN) mode, the value of this field is NULL, indicating that the field is undefined and the unit is allowed to compete for disk space with other tenants.

    Note

    This field was introduced in V4.3.4.

    MAX_IOPS bigint(20) NO Upper limit of the disk IOPS specification.
    MIN_IOPS bigint(20) NO Lower limit of the disk IOPS specification.
    IOPS_WEIGHT bigint(20) NO IOPS weight.
    MAX_NET_BANDWIDTH bigint(20) NO Maximum network bandwidth of the unit in bytes.

    Note

    This field was introduced in V4.3.4.

    NET_BANDWIDTH_WEIGHT bigint(20) NO Weight of the network bandwidth of the unit.

    Note

    This field was introduced in V4.3.4.

    Sample query

    View the unit information of all tenants.

    obclient [oceanbase]> SELECT * FROM oceanbase.DBA_OB_UNITS\G
    

    The query result is as follows:

    *************************** 1. row ***************************
                  UNIT_ID: 1
                TENANT_ID: 1
                   STATUS: ACTIVE
         RESOURCE_POOL_ID: 1
            UNIT_GROUP_ID: 1
              CREATE_TIME: 2025-06-23 15:04:26.853917
              MODIFY_TIME: 2025-06-23 15:04:26.853917
                     ZONE: zone1
                   SVR_IP: 172.xx.xxx.xxx
                 SVR_PORT: 2882
      MIGRATE_FROM_SVR_IP: NULL
    MIGRATE_FROM_SVR_PORT: NULL
           MANUAL_MIGRATE: NULL
           UNIT_CONFIG_ID: 1
                  MAX_CPU: 4
                  MIN_CPU: 4
              MEMORY_SIZE: 5368709120
            LOG_DISK_SIZE: 17448304640
           DATA_DISK_SIZE: NULL
                 MAX_IOPS: 9223372036854775807
                 MIN_IOPS: 9223372036854775807
              IOPS_WEIGHT: 4
        MAX_NET_BANDWIDTH: 9223372036854775807
     NET_BANDWIDTH_WEIGHT: 4
    *************************** 2. row ***************************
                  UNIT_ID: 1001
                TENANT_ID: 1002
                   STATUS: ACTIVE
         RESOURCE_POOL_ID: 1001
            UNIT_GROUP_ID: 1001
              CREATE_TIME: 2025-06-23 15:16:09.087075
              MODIFY_TIME: 2025-06-23 15:16:18.624919
                     ZONE: zone1
                   SVR_IP: 172.xx.xxx.xxx
                 SVR_PORT: 2882
      MIGRATE_FROM_SVR_IP: NULL
    MIGRATE_FROM_SVR_PORT: NULL
           MANUAL_MIGRATE: NULL
           UNIT_CONFIG_ID: 1001
                  MAX_CPU: 2
                  MIN_CPU: 2
              MEMORY_SIZE: 6442450944
            LOG_DISK_SIZE: 19327352832
           DATA_DISK_SIZE: NULL
                 MAX_IOPS: 9223372036854775807
                 MIN_IOPS: 9223372036854775807
              IOPS_WEIGHT: 2
        MAX_NET_BANDWIDTH: 9223372036854775807
     NET_BANDWIDTH_WEIGHT: 2
    *************************** 3. row ***************************
                  UNIT_ID: 1002
                TENANT_ID: 1004
                   STATUS: ACTIVE
         RESOURCE_POOL_ID: 1002
            UNIT_GROUP_ID: 1002
              CREATE_TIME: 2025-06-23 15:16:12.956789
              MODIFY_TIME: 2025-06-23 15:17:14.677111
                     ZONE: zone1
                   SVR_IP: 172.xx.xxx.xxx
                 SVR_PORT: 2882
      MIGRATE_FROM_SVR_IP: NULL
    MIGRATE_FROM_SVR_PORT: NULL
           MANUAL_MIGRATE: NULL
           UNIT_CONFIG_ID: 1001
                  MAX_CPU: 2
                  MIN_CPU: 2
              MEMORY_SIZE: 6442450944
            LOG_DISK_SIZE: 19327352832
           DATA_DISK_SIZE: NULL
                 MAX_IOPS: 9223372036854775807
                 MIN_IOPS: 9223372036854775807
              IOPS_WEIGHT: 2
        MAX_NET_BANDWIDTH: 9223372036854775807
     NET_BANDWIDTH_WEIGHT: 2
    3 rows in set
    

    Previous topic

    oceanbase.DBA_OB_UNIT_JOBS
    Last

    Next topic

    oceanbase.DBA_OB_USER_DEFINED_RULES
    Next
    What is on this page
    Purpose
    Columns
    Sample query