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

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

    folded

    share

    Note

    This view is introduced since OceanBase Database V4.0.0.

    Purpose

    The GV$OB_KVCACHE view displays information about the KV cache on all OBServer nodes.

    Columns

    Column
    Type
    Nullable?
    Description
    SVR_IP VARCHAR2(46) NO The IP address of the OBServer node.
    SVR_PORT NUMBER(38) NO The port number of the OBServer node.
    TENANT_ID NUMBER(38) NO The ID of the tenant.
    CACHE_NAME VARCHAR2(128) NO The name of the cache item.
    PRIORITY NUMBER(38) NO The priority.
    CACHE_SIZE NUMBER(38) NO The cache size.
    HIT_RATIO NUMBER(38,3) NO The hit rate.
    TOTAL_PUT_CNT NUMBER(38) NO The number of puts.
    TOTAL_HIT_CNT NUMBER(38) NO The number of hits.
    TOTAL_MISS_CNT NUMBER(38) NO The number of misses.

    Sample query

    In the following example, information about the KV-cache is queried for each OBServer node in the same user tenant.

    obclient [SYS]> SELECT * FROM SYS.GV$OB_KVCACHE;
    

    The query result is as follows:

    +----------------+----------+-----------+-----------------------+----------+------------+-----------+---------------+---------------+----------------+
    | SVR_IP         | SVR_PORT | TENANT_ID | CACHE_NAME            | PRIORITY | CACHE_SIZE | HIT_RATIO | TOTAL_PUT_CNT | TOTAL_HIT_CNT | TOTAL_MISS_CNT |
    +----------------+----------+-----------+-----------------------+----------+------------+-----------+---------------+---------------+----------------+
    | 172.xx.xxx.xxx |     2882 |      1004 | index_block_cache     |       10 |   74905600 |    99.533 |         19857 |       5233498 |          24581 |
    | 172.xx.xxx.xxx |     2882 |      1004 | user_block_cache      |        1 |  763639808 |     99.83 |         23839 |      23290839 |          39603 |
    | 172.xx.xxx.xxx |     2882 |      1004 | user_row_cache        |        1 |    6241280 |    51.808 |          1746 |          3711 |           3452 |
    | 172.xx.xxx.xxx |     2882 |      1004 | fuse_row_cache        |        1 |    8322048 |     99.78 |           871 |        793214 |           1751 |
    | 172.xx.xxx.xxx |     2882 |      1004 | storage_meta_cache    |       10 |  312110080 |    99.828 |         63515 |      36988250 |          63608 |
    | 172.xx.xxx.xxx |     2882 |      1004 | tx_data_kv_cache      |        2 |    6241280 |       100 |             1 |         84109 |              0 |
    | 172.xx.xxx.xxx |     2882 |      1004 | log_kv_cache          |        1 | 2621764608 |         0 |         38949 |             0 |              0 |
    | 172.xx.xxx.xxx |     2882 |      1004 | opt_table_stat_cache  |        1 |    6241280 |    76.594 |           235 |         11738 |           3587 |
    | 172.xx.xxx.xxx |     2882 |      1004 | opt_column_stat_cache |        1 |    6241280 |     2.972 |           107 |          1161 |          37906 |
    | 172.xx.xxx.xxx |     2882 |      1004 | opt_ds_stat_cache     |        1 |    4160512 |         0 |             1 |             0 |              1 |
    | 172.xx.xxx.xxx |     2882 |      1004 | opt_system_stat_cache |        1 |    6241280 |       100 |             2 |          4168 |              0 |
    +----------------+----------+-----------+-----------------------+----------+------------+-----------+---------------+---------------+----------------+
    11 rows in set
    

    Previous topic

    GV$OB_HMS_CLIENT_POOL_STAT
    Last

    Next topic

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