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

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogWhite PaperLive 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.3.5
    iconOceanBase Database
    SQL - V 4.3.5
    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

    GV$SYSSTAT

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

    folded

    Share

    Note

    This view is introduced since OceanBase Database V1.4.

    Purpose

    This view displays statistics information on all OBServer nodes for each tenant.

    Where:

    • STATISTIC#: the statistics item number, which may vary in different OBServer node versions.

    • STAT_ID: the statistics item ID, which remains consistent in different OBServer node versions.

    Note

    To query this view, you must enable monitoring by setting the enable_perf_event parameter to True.

    Columns

    Column
    Type
    Nullable?
    Description
    CON_ID bigint(20) NO Tenant ID
    SVR_IP varchar(46) NO IP address of the server where the information resides
    SVR_PORT bigint(20) NO Port number of the server where the information resides
    STATISTIC# bigint(20) NO Index of the statistics
    NAME varchar(64) NO Name of the statistics
    CLASS bigint(20) NO Type of the statistics
    VALUE bigint(20) NO Result value of the statistics
    VALUE_TYPE varchar(16) NO Statistics value type:
  • ADD: accumulated
  • SET: updated
  • STAT_ID bigint(20) NO ID of the statistics

    Sample query

    In the sys tenant, query the statistics of all tenants on all nodes and display the first 10 records.

    obclient [oceanbase]> SELECT * FROM oceanbase.GV$SYSSTAT LIMIT 10;
    

    The query result is as follows:

    +--------+----------------+----------+------------+-----------------------+-------+-------------+------------+---------+
    | CON_ID | SVR_IP         | SVR_PORT | STATISTIC# | NAME                  | CLASS | VALUE       | VALUE_TYPE | STAT_ID |
    +--------+----------------+----------+------------+-----------------------+-------+-------------+------------+---------+
    |      1 | 11.xxx.xxx.xxx |    28825 |          0 | rpc packet in         |     1 |    60000651 | ADD_VALUE  |   10000 |
    |      1 | 11.xxx.xxx.xxx |    28825 |          1 | rpc packet in bytes   |     1 | 14857436223 | ADD_VALUE  |   10001 |
    |      1 | 11.xxx.xxx.xxx |    28825 |          2 | rpc packet out        |     1 |    13331823 | ADD_VALUE  |   10002 |
    |      1 | 11.xxx.xxx.xxx |    28825 |          3 | rpc packet out bytes  |     1 |  4602803985 | ADD_VALUE  |   10003 |
    |      1 | 11.xxx.xxx.xxx |    28825 |          4 | rpc deliver fail      |     1 |           0 | ADD_VALUE  |   10004 |
    |      1 | 11.xxx.xxx.xxx |    28825 |          5 | rpc net delay         |     1 |   465112463 | ADD_VALUE  |   10005 |
    |      1 | 11.xxx.xxx.xxx |    28825 |          6 | rpc net frame delay   |     1 |     1564592 | ADD_VALUE  |   10006 |
    |      1 | 11.xxx.xxx.xxx |    28825 |          7 | mysql packet in       |     1 |         530 | ADD_VALUE  |   10007 |
    |      1 | 11.xxx.xxx.xxx |    28825 |          8 | mysql packet in bytes |     1 |       63960 | ADD_VALUE  |   10008 |
    |      1 | 11.xxx.xxx.xxx |    28825 |          9 | mysql packet out      |     1 |     1223369 | ADD_VALUE  |   10009 |
    +--------+----------------+----------+------------+-----------------------+-------+-------------+------------+---------+
    10 rows in set
    

    References

    • View session-level statistics:

      • GV$SESSTAT
      • V$SESSTAT
    • View the definitions of all statistics of a tenant: V$STATNAME

    • For more information about statistics, see Common statistical events.

    Previous topic

    GV$SQL_WORKAREA_HISTOGRAM
    Last

    Next topic

    GV$SYSTEM_EVENT
    Next
    What is on this page
    Purpose
    Columns
    Sample query
    References