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

    V$OB_SESS_TIME_MODEL

    Last Updated:2026-04-27 03:14:13  Updated
    share
    What is on this page
    Purpose
    Columns
    Example
    References

    folded

    share

    Note

    This view is introduced since OceanBase Database V4.2.2.

    Purpose

    The V$OB_SESS_TIME_MODEL view displays the session-level time model statistical items on the current node.

    Columns

    Column Type Nullable? Description
    SID bigint(20) No The session ID.
    TENANT_ID bigint(20) No The ID of the tenant.
    SVR_IP varchar(46) No The IP address of the server.
    SVR_PORT bigint(20) No The port number of the server.
    STAT_ID bigint(20) No The ID of the statistical item.
    STAT_NAME varchar(64) No The name of the statistical item.
    VALUE bigint(20) No The value of the statistical item.

    The following table describes the name and ID of the statistical event in the STAT_NAME column of the view.

    Event name Description Event ID Event class
    DB time The total duration of database activities, which is the sum of the CPU time and non-idle wait time. 200001 3072
    DB CPU The CPU time consumed for database activities. 200002 3072
    background elapsed time The total execution time of background processes. 200005 3072
    background cpu time The CPU time consumed by background processes. 200006 3072
    non idle wait time The total duration of non-idle waits, when the session was waiting but not idle. 200010 3072
    idle wait time The total duration of idle waits, when the session was waiting in idleness. 200011 3072
    background database time The total duration of database operations performed by background processes. 200012 3072
    background database non-idle wait time The total waiting duration of background processes for performing database operation tasks in the non-idle state. 200013 3072
    background database idle wait time The total waiting duration of background processes for performing database operation tasks in the idle state. 200014 3072
    concurrency wait total time The total duration of the wait event caused by concurrency issues, such as the waiting duration for resource locks. 220001 3072
    user io wait total time The total time a user process waits for an I/O operation, such as the data write to or data read from a disk, to complete. 220002 3072
    application wait total time The total duration of waits caused by the user application code, caused by user application code, such as a lock wait event caused by a row lock or by an explicit lock command. 2200013 3072

    Example

    obclient [oceanbase]> SELECT * FROM oceanbase.V$OB_SESS_TIME_MODEL LIMIT 10;
    

    The query result is as follows:

    +--------------+-----------+----------------+----------+---------+--------------------+-------+
    | SID          | TENANT_ID | SVR_IP         | SVR_PORT | STAT_ID | STAT_NAME          | VALUE |
    +--------------+-----------+----------------+----------+---------+--------------------+-------+
    |   3221700502 |         1 | 172.xx.xxx.xxx |     2882 |  200010 | non idle wait time |   222 |
    |   3221700502 |         1 | 172.xx.xxx.xxx |     2882 |  200011 | idle wait time     |     0 |
    |   3221684120 |         1 | 172.xx.xxx.xxx |     2882 |  200010 | non idle wait time |     0 |
    |   3221684120 |         1 | 172.xx.xxx.xxx |     2882 |  200011 | idle wait time     |     0 |
    |   3221700503 |         1 | 172.xx.xxx.xxx |     2882 |  200010 | non idle wait time |     0 |
    |   3221700503 |         1 | 172.xx.xxx.xxx |     2882 |  200011 | idle wait time     |     0 |
    |   3221684121 |         1 | 172.xx.xxx.xxx |     2882 |  200010 | non idle wait time |     0 |
    |   3221684121 |         1 | 172.xx.xxx.xxx |     2882 |  200011 | idle wait time     |     0 |
    | 549755813888 |       500 | 172.xx.xxx.xxx |     2882 |  200010 | non idle wait time |     0 |
    | 549755813888 |       500 | 172.xx.xxx.xxx |     2882 |  200011 | idle wait time     |     0 |
    +--------------+-----------+----------------+----------+---------+--------------------+-------+
    10 rows in set
    

    References

    • GV$OB_SESS_TIME_MODEL

    • GV$OB_SYS_TIME_MODEL

    • V$OB_SYS_TIME_MODEL

    • oceanbase.CDB_WR_SYS_TIME_MODEL

    • oceanbase.DBA_WR_SYS_TIME_MODEL

    Previous topic

    GV$OB_SESS_TIME_MODEL
    Last

    Next topic

    GV$OB_SYS_TIME_MODEL
    Next
    What is on this page
    Purpose
    Columns
    Example
    References