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

    ALL_IND_SUBPARTITIONS

    Last Updated:2026-04-09 09:38:52  Updated
    share
    What is on this page
    Purpose
    Columns
    Sample query
    References

    folded

    share

    Note

    This view is available starting with V2.2.77.

    Purpose

    The ALL_IND_SUBPARTITIONS view displays the information about all index subpartitions accessible to the current user in the database.

    Applicability

    This view applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition provides only the MySQL mode.

    Columns

    Column
    Type
    Nullable?
    Description
    INDEX_OWNER VARCHAR2(128) NO The owner of the index.
    INDEX_NAME VARCHAR2(128) NO The name of the index.
    PARTITION_NAME VARCHAR2(128) NO The name of the partition.
    SUBPARTITION_NAME VARCHAR2(128) NO The name of the subpartition.
    HIGH_VALUE VARCHAR2(1024) NO The expression for the value bound to the subpartition.
    HIGH_VALUE_LENGTH NUMBER NO The length of the expression for the value bound to the subpartition.
    SUBPARTITION_POSITION NUMBER NO The position of the subpartition within the partition.
    STATUS VARCHAR2(8) NO Indicates whether the index partition is usable.
    TABLESPACE_NAME VARCHAR2(30) NO The name of the tablespace containing the partition.
    PCT_FREE NUMBER NO At present, this column is not supported and its value is NULL by default.
    INI_TRANS NUMBER NO At present, this column is not supported and its value is NULL by default.
    MAX_TRANS NUMBER NO At present, this column is not supported and its value is NULL by default.
    INITIAL_EXTENT NUMBER NO At present, this column is not supported and its value is NULL by default.
    NEXT_EXTENT NUMBER NO At present, this column is not supported and its value is NULL by default.
    MIN_EXTENT NUMBER NO At present, this column is not supported and its value is NULL by default.
    MAX_EXTENT NUMBER NO At present, this column is not supported and its value is NULL by default.
    MAX_SIZE NUMBER NO At present, this column is not supported and its value is NULL by default.
    PCT_INCREASE NUMBER NO At present, this column is not supported and its value is NULL by default.
    FREELISTS NUMBER NO At present, this column is not supported and its value is NULL by default.
    FREELIST_GROUPS NUMBER NO At present, this column is not supported and its value is NULL by default.
    LOGGING VARCHAR2(3) NO At present, this column is not supported and its value is NULL by default.
    COMPRESSION VARCHAR2(13) NO Indicates whether compression is enabled for the partitioned index. Valid values:
  • ENABLE
  • DISABLE
  • BLEVEL NUMBER NO At present, this column is not supported and its value is NULL by default.
    LEAF_BLOCKS NUMBER NO At present, this column is not supported and its value is NULL by default.
    DISTINCT_KEYS NUMBER NO At present, this column is not supported and its value is NULL by default.
    AVG_LEAF_BLOCKS_PER_KEY NUMBER NO At present, this column is not supported and its value is NULL by default.
    AVG_DATA_BLOCKS_PER_KEY NUMBER NO At present, this column is not supported and its value is NULL by default.
    CLUSTERING_FACTOR NUMBER NO At present, this column is not supported and its value is NULL by default.
    NUM_ROWS NUMBER NO At present, this column is not supported and its value is NULL by default.
    SAMPLE_SIZE NUMBER NO At present, this column is not supported and its value is NULL by default.
    LAST_ANALYZED DATE NO At present, this column is not supported and its value is NULL by default.
    BUFFER_POOL VARCHAR2(7) NO At present, this column is not supported and its value is NULL by default.
    FLASH_CACHE VARCHAR2(7) NO At present, this column is not supported and its value is NULL by default.
    CELL_FLASH_CACHE VARCHAR2(7) NO At present, this column is not supported and its value is NULL by default.
    USER_STATS VARCHAR2(3) NO At present, this column is not supported and its value is NULL by default.
    GLOBAL_STATS VARCHAR2(3) NO At present, this column is not supported and its value is NULL by default.
    INTERVAL VARCHAR2(3) NO At present, this column is not supported and its value is NO by default.
    SEGMENT_CREATED VARCHAR2(3) NO At present, this column is not supported and its value is NULL by default.
    DOMIDX_OPSTATUS VARCHAR2(6) NO At present, this column is not supported and its value is NULL by default.
    PARAMETERS VARCHAR2(1000) NO At present, this column is not supported and its value is NULL by default.

    Sample query

    Query all index subpartitions (subpartitions) that are accessible to the current user in the databases.

    obclient [SYS]> SELECT INDEX_OWNER, INDEX_NAME, PARTITION_NAME, SUBPARTITION_NAME, HIGH_VALUE, PARTITION_POSITION, SUBPARTITION_POSITION FROM ALL_IND_SUBPARTITIONS;
    

    The query result is as follows:

    +-------------+----------------+----------------+-------------------+------------+--------------------+-----------------------+
    | INDEX_OWNER | INDEX_NAME     | PARTITION_NAME | SUBPARTITION_NAME | HIGH_VALUE | PARTITION_POSITION | SUBPARTITION_POSITION |
    +-------------+----------------+----------------+-------------------+------------+--------------------+-----------------------+
    | SYS         | TBL2_F_RL_IDX1 | P0             | SP0               | 1,3        |                  1 |                     1 |
    | SYS         | TBL2_F_RL_IDX1 | P0             | SP1               | 4,6        |                  1 |                     2 |
    | SYS         | TBL2_F_RL_IDX1 | P0             | SP2               | 7,9        |                  1 |                     3 |
    | SYS         | TBL2_F_RL_IDX1 | P1             | SP3               | 1,3        |                  2 |                     1 |
    | SYS         | TBL2_F_RL_IDX1 | P1             | SP4               | 4,6        |                  2 |                     2 |
    | SYS         | TBL2_F_RL_IDX1 | P1             | SP5               | 7,9        |                  2 |                     3 |
    +-------------+----------------+----------------+-------------------+------------+--------------------+-----------------------+
    6 rows in set
    

    References

    • DBA_IND_SUBPARTITIONS

    • USER_IND_SUBPARTITIONS

    Previous topic

    ALL_IND_STATISTICS
    Last

    Next topic

    ALL_INDEXES
    Next
    What is on this page
    Purpose
    Columns
    Sample query
    References