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.2.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 & 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.2.5
    iconOceanBase Database
    SQL - V 4.2.5
    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-04-27 03:14:13  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 VARCHAR2(46) NO The IP address of the server.
    SVR_PORT NUMBER(38) NO The port number of the server.
    UNIT_ID NUMBER(38) NO The ID of the unit.
    TENANT_ID NUMBER(38) NO The ID of the tenant to which the unit belongs.
    ZONE VARCHAR2(128) NO The name of the zone.
    ZONE_TYPE VARCHAR2(128) NO The type of the zone to which the unit belongs. Valid values:
    • NULL: This value is invalid. This value will be temporarily invalid after an OBServer node restart.
    • ReadWrite: Read/write zone
    • Encryption: Encrypted zone

    Note

    This column is available starting with V4.2.0.

    REGION VARCHAR2(128) NO The name of the region to which the zone belongs. If this value is not specified, it defaults to default_region. If this value is NULL, it indicates that the value is invalid, which will be temporarily invalid after an OBServer node restart.

    Note

    This column is available starting with V4.2.0.

    MIN_CPU NUMBER(38) NO The minimum CPU specification.
    MAX_CPU NUMBER(38) NO The maximum CPU specification.
    MEMORY_SIZE NUMBER(38) NO The size of memory, in bytes.
    MIN_IOPS NUMBER(38) NO The minimum IOPS specification.
    MAX_IOPS NUMBER(38) NO The maximum IOPS specification.
    IOPS_WEIGHT NUMBER(38) NO The IOPS weight.
    LOG_DISK_SIZE NUMBER(38) NO The size of the log disk.
    LOG_DISK_IN_USE NUMBER(38) NO The size of the log disk that has been used.
    DATA_DISK_IN_USE NUMBER(38) NO The size of the data disk that has been used.
    STATUS VARCHAR2(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.
  • DELETING: Deleted.
  • ERROR: Error.
  • CREATE_TIME NUMBER(38) NO The creation time of the unit on the OBServer node.

    Sample query

    Query the Unit information on the current OBServer node.

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

    The query result is as follows:

    *************************** 1. row ***************************
              SVR_IP: 172.xx.xx.xx
            SVR_PORT: 2882
             UNIT_ID: 1002
           TENANT_ID: 1004
                ZONE: zone1
           ZONE_TYPE: ReadWrite
              REGION: default_region
             MIN_CPU: 2
             MAX_CPU: 2
         MEMORY_SIZE: 5368709120
            MIN_IOPS: 9223372036854775807
            MAX_IOPS: 9223372036854775807
         IOPS_WEIGHT: 2
       LOG_DISK_SIZE: 17394617549
     LOG_DISK_IN_USE: 380842141
    DATA_DISK_IN_USE: 18874368
              STATUS: NORMAL
         CREATE_TIME: 1722408674437600
    1 row in set
    

    References

    • GV$OB_UNITS

    • View tenant and resource information

    Previous topic

    V$OB_TRANSACTION_SCHEDULERS
    Last

    Next topic

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