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

    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.4.2
    iconOceanBase Database
    SQL - V 4.4.2
    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

    V$OB_OPT_STAT_GATHER_MONITOR

    Last Updated:2026-04-02 06:23:58  Updated
    share
    What is on this page
    Purpose
    Columns
    Sample query
    References

    folded

    share

    Note

    This view is available starting with V4.2.0.

    Purpose

    This view displays the real-time status of statistics collection tasks for the current tenant on the current OBServer node.

    Columns

    Column Type Nullable Description
    TENANT_ID NUMBER NO The ID of the tenant where the statistics collection task is located.
    SVR_IP VARCHAR2(46) NO The IP address of the node where the statistics collection task is located.
    SVR_PORT NUMBER NO The port of the node where the statistics collection task is located.
    SESSION_ID NUMBER NO The session ID of the statistics collection task.
    For V4.3.x:
    • V4.3.5 BP2 and earlier:
      In all connection modes (direct mode/ODP mode), this field indicates the server session ID.
    • V4.3.5 BP2 and later:
      • In direct mode:
        This field indicates the server session ID.
      • In ODP mode:
        • If the client_session_id_version = 2 parameter is set in ODP, this field indicates the client session ID.
        • If client_session_id_version = 1, this field indicates the server session ID.
    TRACE_ID VARCHAR2(64) NO The TRACE ID of the statistics collection task.
    TASK_ID VARCHAR2(36) NO The ID of the statistics collection task (UUID, globally unique).
    TYPE VARCHAR2(16) NO The type of the statistics collection task.
    TASK_START_TIME TIMESTAMP(6) NO The start time of the statistics collection task.
    TASK_DURATION_TIME NUMBER NO The duration of the statistics collection task, in microseconds.
    TASK_TABLE_COUNT NUMBER NO The number of tables to be collected by the statistics collection task.
    COMPLETED_TABLE_COUNT NUMBER NO The number of tables that have been collected by the statistics collection task.
    RUNNING_TABLE_OWNER VARCHAR2(128) NO The username of the user who owns the table being collected by the statistics collection task.
    RUNNING_TABLE_NAME VARCHAR2(256) NO The name of the table being collected by the statistics collection task.
    RUNNING_TABLE_DURATION_TIME VARCHAR2(256) NO The duration of the table being collected by the statistics collection task.
    RUNNING_TABLE_PROGRESS VARCHAR2(256) NO The collection progress of the statistics collection task.

    Sample query

    Query the real-time status of statistics collection tasks for the current tenant on the current node.

    obclient> SELECT * FROM SYS.V$OB_OPT_STAT_GATHER_MONITOR;
    

    The query result is as follows:

    +-----------+----------------+----------+------------+-----------------------------------+--------------------------------------+---------------+----------------------------+--------------------+------------------+-----------------------+---------------------+--------------------+-----------------------------+
    | TENANT_ID | SVR_IP         | SVR_PORT | SESSION_ID | TRACE_ID                          | TASK_ID                              | TYPE          | TASK_START_TIME            | TASK_DURATION_TIME | TASK_TABLE_COUNT | COMPLETED_TABLE_COUNT | RUNNING_TABLE_OWNER | RUNNING_TABLE_NAME | RUNNING_TABLE_DURATION_TIME |
    +-----------+----------------+----------+------------+-----------------------------------+--------------------------------------+---------------+----------------------------+--------------------+------------------+-----------------------+---------------------+--------------------+-----------------------------+
    |      1006 | xxx.xxx.xxx.xx |     2882 | 3221575784 | YB42AC1E87C6-0005FF6AD9F825FB-0-0 | c921f339-1bc8-11ee-a7ea-52583362494c | MANUAL GATHER | 2023-07-06 14:46:07.691856 |             609652 |                1 |                     0 | test                | t1                 |                      609653 |
    +-----------+----------------+----------+------------+-----------------------------------+--------------------------------------+---------------+----------------------------+--------------------+------------------+-----------------------+---------------------+--------------------+-----------------------------+
    1 row in set
    

    References

    • View the historical statistics collection status at the tenant level: DBA_OB_TASK_OPT_STAT_GATHER_HISTORY

    • View the historical statistics collection status at the table level: DBA_OB_TABLE_OPT_STAT_GATHER_HISTORY

    • For more information about statistics collection monitoring and diagnostics, see Statistics collection monitoring and diagnostics.

    Previous topic

    V$OB_NIC_INFO
    Last

    Next topic

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