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 & 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

    V$OB_UNITS

    Last Updated:2026-05-07 11:26:24  Updated
    Share
    What is on this page
    Purpose
    Columns
    Sample query
    References

    folded

    Share

    Note

    This view is available starting with V4.0.0.

    Purpose

    This view displays the unit information on the current OBServer node.

    Columns

    Column
    Type
    Nullable
    Description
    SVR_IP varchar(46) NO The IP address of the server.
    SVR_PORT bigint(20) NO The port number of the server.
    UNIT_ID bigint(20) NO The ID of the unit.
    TENANT_ID bigint(20) NO The ID of the tenant to which the unit belongs.
    ZONE varchar(128) NO The name of the zone.
    ZONE_TYPE varchar(128) NO The type of the zone to which the unit belongs. Valid values:
    • NULL: indicates that the value of this column is invalid. This value is temporarily displayed when the OBServer node restarts.
    • ReadWrite: read/write zone
    • Encryption: encrypted zone

    Note

    This column is available starting with V4.2.0.

    REGION varchar(128) NO The name of the region to which the zone belongs. If this column is not specified, the default value is default_region. If the value of this column is NULL, it indicates that the value is invalid. This value is temporarily displayed when the OBServer node restarts.

    Note

    This column is available starting with V4.2.0.

    MAX_CPU double NO The upper limit of the CPU specification.
    MIN_CPU double NO The lower limit of the CPU specification.
    MEMORY_SIZE bigint(20) NO The size of the memory, in bytes.
    MAX_IOPS bigint(20) NO The upper limit of the disk IOPS specification.
    MIN_IOPS bigint(20) NO The lower limit of the disk IOPS specification.
    IOPS_WEIGHT bigint(20) NO The IOPS weight.
    MAX_NET_BANDWIDTH bigint(20) YES The maximum network bandwidth of the unit, in bytes.

    Note

    This column is available starting with V4.3.4.

    NET_BANDWIDTH_WEIGHT bigint(20) YES The weight of the network bandwidth of the unit.

    Note

    This column is available starting with V4.3.4.

    LOG_DISK_SIZE bigint(20) NO The size of the log disk, in bytes.
    LOG_DISK_IN_USE bigint(20) NO The size of the log disk that has been used, in bytes.
    DATA_DISK_SIZE bigint(20) YES
    • The size of the local cache available to the unit, in bytes. This parameter applies only to the Shared-Storage (SS) mode.
    • In the Shared-Nothing (SN) mode, this column is NULL, which indicates that the value is undefined. The unit can use the disk space of other tenants.

    Note

    This column is available starting with V4.3.4.

    DATA_DISK_IN_USE bigint(20) NO
    • In the SS mode, the size of the local cache used by the unit, in bytes.
    • In the SN mode, the size of the data disk used by the unit, in bytes.
    STATUS varchar(64) NO The status of the unit. Valid values:
    • NORMAL: normal
    • MIGRATING IN: migrating in
    • MIGRATING OUT: migrating out
    • MARK DELETING: marked for deletion
    • WAIT GC: waiting for garbage collection (GC)
    • DELETING: being deleted after GC is completed
    • ERROR: error
    CREATE_TIME timestamp(6) NO The time when the unit was created on the OBServer node.
    REPLICA_TYPE varchar(7) NO The replica type. The default value is FULL.

    Note

    • For V4.5.x, the REPLICA_TYPE column is available starting with V4.5.0.
    • For V4.4.x, the REPLICA_TYPE column is available starting with V4.4.0 BP1.
    • For V4.2.5, the REPLICA_TYPE column is available starting with V4.2.5 BP7.

    Sample query

    In SN mode, the sys tenant queries the unit information of all user tenants on the current OBServer node.

    obclient [oceanbase]> SELECT * FROM oceanbase.V$OB_UNITS\G
    

    The query result is as follows:

    *************************** 1. row ***************************
                  SVR_IP: 172.xx.xxx.xxx
                SVR_PORT: 2882
                 UNIT_ID: 1
               TENANT_ID: 1
                    ZONE: zone1
               ZONE_TYPE: ReadWrite
                  REGION: default_region
                 MAX_CPU: 4
                 MIN_CPU: 4
             MEMORY_SIZE: 5368709120
                MAX_IOPS: 9223372036854775807
                MIN_IOPS: 9223372036854775807
             IOPS_WEIGHT: 4
       MAX_NET_BANDWIDTH: 9223372036854775807
    NET_BANDWIDTH_WEIGHT: 4
           LOG_DISK_SIZE: 9663676416
         LOG_DISK_IN_USE: 2964278798
          DATA_DISK_SIZE: NULL
        DATA_DISK_IN_USE: 97017856
                  STATUS: NORMAL
             CREATE_TIME: 2024-10-30 10:57:36.445269
            REPLICA_TYPE: FULL
    *************************** 2. row ***************************
                  SVR_IP: 172.xx.xxx.xxx
                SVR_PORT: 2882
                 UNIT_ID: 1001
               TENANT_ID: 1001
                    ZONE: zone1
               ZONE_TYPE: ReadWrite
                  REGION: default_region
                 MAX_CPU: NULL
                 MIN_CPU: NULL
             MEMORY_SIZE: 1073741824
                MAX_IOPS: NULL
                MIN_IOPS: NULL
             IOPS_WEIGHT: NULL
       MAX_NET_BANDWIDTH: NULL
    NET_BANDWIDTH_WEIGHT: NULL
           LOG_DISK_SIZE: 1932735283
         LOG_DISK_IN_USE: 1480671367
          DATA_DISK_SIZE: NULL
        DATA_DISK_IN_USE: 72187904
                  STATUS: NORMAL
             CREATE_TIME: 2024-10-30 10:59:25.305248
            REPLICA_TYPE: FULL
    *************************** 3. row ***************************
                  SVR_IP: 172.xx.xxx.xxx
                SVR_PORT: 2882
                 UNIT_ID: 1001
               TENANT_ID: 1002
                    ZONE: zone1
               ZONE_TYPE: ReadWrite
                  REGION: default_region
                 MAX_CPU: 2
                 MIN_CPU: 2
             MEMORY_SIZE: 5368709120
                MAX_IOPS: 9223372036854775807
                MIN_IOPS: 9223372036854775807
             IOPS_WEIGHT: 2
       MAX_NET_BANDWIDTH: 9223372036854775807
    NET_BANDWIDTH_WEIGHT: 2
           LOG_DISK_SIZE: 17394617549
         LOG_DISK_IN_USE: 1731127928
          DATA_DISK_SIZE: NULL
        DATA_DISK_IN_USE: 26578944
                  STATUS: NORMAL
             CREATE_TIME: 2024-10-30 10:59:25.305248
            REPLICA_TYPE: FULL
    *************************** 4. row ***************************
                  SVR_IP: 172.xx.xxx.xxx
                SVR_PORT: 2882
                 UNIT_ID: 1002
               TENANT_ID: 1003
                    ZONE: zone1
               ZONE_TYPE: ReadWrite
                  REGION: default_region
                 MAX_CPU: NULL
                 MIN_CPU: NULL
             MEMORY_SIZE: 1073741824
                MAX_IOPS: NULL
                MIN_IOPS: NULL
             IOPS_WEIGHT: NULL
       MAX_NET_BANDWIDTH: NULL
    NET_BANDWIDTH_WEIGHT: NULL
           LOG_DISK_SIZE: 1932735283
         LOG_DISK_IN_USE: 1482198905
          DATA_DISK_SIZE: NULL
        DATA_DISK_IN_USE: 70107136
                  STATUS: NORMAL
             CREATE_TIME: 2024-10-30 11:00:07.614632
            REPLICA_TYPE: FULL
    *************************** 5. row ***************************
                  SVR_IP: 172.xx.xxx.xxx
                SVR_PORT: 2882
                 UNIT_ID: 1002
               TENANT_ID: 1004
                    ZONE: zone1
               ZONE_TYPE: ReadWrite
                  REGION: default_region
                 MAX_CPU: 2
                 MIN_CPU: 2
             MEMORY_SIZE: 5368709120
                MAX_IOPS: 9223372036854775807
                MIN_IOPS: 9223372036854775807
             IOPS_WEIGHT: 2
       MAX_NET_BANDWIDTH: 9223372036854775807
    NET_BANDWIDTH_WEIGHT: 2
           LOG_DISK_SIZE: 17394617549
         LOG_DISK_IN_USE: 1749092883
          DATA_DISK_SIZE: NULL
        DATA_DISK_IN_USE: 29081600
                  STATUS: NORMAL
             CREATE_TIME: 2024-10-30 11:00:07.614632
            REPLICA_TYPE: FULL
    5 rows in set
    

    References

    • Query the unit information of all nodes: GV$OB_UNITS

    • For more information about tenant resources, see View tenant and resource information.

    Previous topic

    V$OB_TRANSACTION_SCHEDULERS
    Last

    Next topic

    V$RESTORE_POINT
    Next
    What is on this page
    Purpose
    Columns
    Sample query
    References