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

    ALL_INDEXES

    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 V2.2.30.

    Purpose

    The ALL_INDEXES view displays the index column information of all tables accessible to the current user.

    Applicability

    This view is available only in Oracle-compatible mode of OceanBase Database.

    Columns

    Column
    Type
    Nullable
    Description
    OWNER VARCHAR2(128) NO The owner of the index.
    INDEX_NAME VARCHAR2(128) NO The name of the index.
    INDEX_TYPE VARCHAR2(27) NO The type of the index.
    TABLE_OWNER VARCHAR2(128) NO The owner of the object being indexed.
    TABLE_NAME VARCHAR2(128) NO The name of the object being indexed.
    TABLE_TYPE CHAR(5) NO The type of the object being indexed.
    UNIQUENESS VARCHAR2(9) NO Indicates whether the index is unique (UNIQUE) or nonunique.
    COMPRESSION VARCHAR2(13) NO Indicates whether the index is compressed.
    PREFIX_LENGTH NUMBER NO This column is not supported. It is set to NULL by default.
    TABLESPACE_NAME VARCHAR2(30) NO The name of the tablespace where the index is stored.
    INI_TRANS NUMBER NO This column is not supported. It is set to NULL by default.
    MAX_TRANS NUMBER NO This column is not supported. It is set to NULL by default.
    INITIAL_EXTENT NUMBER NO This column is not supported. It is set to NULL by default.
    NEXT_EXTENT NUMBER NO This column is not supported. It is set to NULL by default.
    MIN_EXTENTS NUMBER NO This column is not supported. It is set to NULL by default.
    MAX_EXTENTS NUMBER NO This column is not supported. It is set to NULL by default.
    PCT_INCREASE NUMBER NO This column is not supported. It is set to NULL by default.
    PCT_THRESHOLD NUMBER NO This column is not supported. It is set to NULL by default.
    INCLUDE_COLUMN NUMBER NO This column is not supported. It is set to NULL by default.
    FREELISTS NUMBER NO This column is not supported. It is set to NULL by default.
    FREELIST_GROUPS NUMBER NO This column is not supported. It is set to NULL by default.
    PCT_FREE NUMBER NO This column is not supported. It is set to NULL by default.
    LOGGING VARCHAR2(3) NO This column is not supported. It is set to NULL by default.
    BLEVEL NUMBER NO This column is not supported. It is set to NULL by default.
    LEAF_BLOCKS NUMBER NO This column is not supported. It is set to NULL by default.
    DISTINCT_KEYS NUMBER NO This column is not supported. It is set to NULL by default.
    AVG_LEAF_BLOCKS_PER_KEY NUMBER NO This column is not supported. It is set to NULL by default.
    AVG_DATA_BLOCKS_PER_KEY NUMBER NO This column is not supported. It is set to NULL by default.
    CLUSTERING_FACTOR NUMBER NO This column is not supported. It is set to NULL by default.
    STATUS VARCHAR2(8) NO Indicates whether the index is valid or unusable.
    NUM_ROWS NUMBER NO This column is not supported. It is set to NULL by default.
    SAMPLE_SIZE NUMBER NO This column is not supported. It is set to NULL by default.
    LAST_ANALYZED DATE NO This column is not supported. It is set to NULL by default.
    DEGREE VARCHAR2(40) NO This column is not supported and is NULL by default.
    INSTANCES VARCHAR2(40) NO This column is not supported and is NULL by default.
    PARTITIONED VARCHAR2(3) NO Indicates whether the index is a partitioned index.
    TEMPORARY VARCHAR2(1) NO This column is not supported and is NULL by default.
    GENERATED VARCHAR2(1) NO This column is not supported and is NULL by default.
    SECONDARY VARCHAR2(1) NO This column is not supported and is NULL by default.
    BUFFER_POOL VARCHAR2(7) NO This column is not supported and is NULL by default.
    FLASH_CACHE VARCHAR2(7) NO This column is not supported and is NULL by default.
    CELL_FLASH_CACHE VARCHAR2(7) NO This column is not supported and is NULL by default.
    USER_STATS VARCHAR2(3) NO This column is not supported and is NULL by default.
    DURATION VARCHAR2(15) NO This column is not supported and is NULL by default.
    PCT_DIRECT_ACCESS NUMBER NO This column is not supported and is NULL by default.
    ITYP_OWNER VARCHAR2(128) NO This column is not supported and is NULL by default.
    ITYP_NAME VARCHAR2(128) NO This column is not supported and is NULL by default.
    PARAMETERS VARCHAR2(1000) NO This column is not supported and is NULL by default.
    GLOBAL_STATS VARCHAR2(3) NO This column is not supported and is NULL by default.
    DOMIDX_STATUS VARCHAR2(12) NO This column is not supported and is NULL by default.
    DOMIDX_OPSTATUS VARCHAR2(6) NO This column is not supported and is NULL by default.
    FUNCIDX_STATUS VARCHAR2(8) NO The status of the function-based index.
    JOIN_INDEX VARCHAR2(3) NO Indicates whether the index is a join index.
    IOT_REDUNDANT_PKEY_ELIM VARCHAR2(3) NO This column is not supported and is NULL by default.
    DROPPED VARCHAR2(3) NO Indicates whether the index has been dropped and is in the recycle bin.
    VISIBILITY VARCHAR2(9) NO Indicates whether the index is visible to the optimizer.
    DOMIDX_MANAGEMENT VARCHAR2(14) NO This column is not supported and is NULL by default.
    SEGMENT_CREATED VARCHAR2(3) NO This column is not supported and is NULL by default.
    ORPHANED_ENTRIES VARCHAR2(3) NO This column is not supported and is NULL by default.
    INDEXING VARCHAR2(7) NO This column is not supported and is NULL by default.
    AUTO VARCHAR2(3) NO This column is not supported and is NULL by default.

    Sample query

    Query the index information of the TBL2 table in the tables accessible to the current user.

    obclient [SYS]> SELECT * FROM SYS.ALL_INDEXES WHERE table_name='TBL2';
    

    The query result is as follows:

    +-------+------------+------------+-------------+------------+------------+------------+-------------+---------------+-----------------+-----------+-----------+----------------+-------------+-------------+-------------+--------------+---------------+----------------+-----------+-----------------+----------+---------+--------+-------------+---------------+-------------------------+-------------------------+-------------------+--------+----------+-------------+---------------+--------+-----------+-------------+-----------+-----------+-----------+-------------+-------------+------------------+------------+----------+-------------------+------------+-----------+------------+--------------+---------------+-----------------+----------------+------------+-------------------------+---------+------------+-------------------+-----------------+------------------+----------+------+
    | OWNER | INDEX_NAME | INDEX_TYPE | TABLE_OWNER | TABLE_NAME | TABLE_TYPE | UNIQUENESS | COMPRESSION | PREFIX_LENGTH | TABLESPACE_NAME | INI_TRANS | MAX_TRANS | INITIAL_EXTENT | NEXT_EXTENT | MIN_EXTENTS | MAX_EXTENTS | PCT_INCREASE | PCT_THRESHOLD | INCLUDE_COLUMN | FREELISTS | FREELIST_GROUPS | PCT_FREE | LOGGING | BLEVEL | LEAF_BLOCKS | DISTINCT_KEYS | AVG_LEAF_BLOCKS_PER_KEY | AVG_DATA_BLOCKS_PER_KEY | CLUSTERING_FACTOR | STATUS | NUM_ROWS | SAMPLE_SIZE | LAST_ANALYZED | DEGREE | INSTANCES | PARTITIONED | TEMPORARY | GENERATED | SECONDARY | BUFFER_POOL | FLASH_CACHE | CELL_FLASH_CACHE | USER_STATS | DURATION | PCT_DIRECT_ACCESS | ITYP_OWNER | ITYP_NAME | PARAMETERS | GLOBAL_STATS | DOMIDX_STATUS | DOMIDX_OPSTATUS | FUNCIDX_STATUS | JOIN_INDEX | IOT_REDUNDANT_PKEY_ELIM | DROPPED | VISIBILITY | DOMIDX_MANAGEMENT | SEGMENT_CREATED | ORPHANED_ENTRIES | INDEXING | AUTO |
    +-------+------------+------------+-------------+------------+------------+------------+-------------+---------------+-----------------+-----------+-----------+----------------+-------------+-------------+-------------+--------------+---------------+----------------+-----------+-----------------+----------+---------+--------+-------------+---------------+-------------------------+-------------------------+-------------------+--------+----------+-------------+---------------+--------+-----------+-------------+-----------+-----------+-----------+-------------+-------------+------------------+------------+----------+-------------------+------------+-----------+------------+--------------+---------------+-----------------+----------------+------------+-------------------------+---------+------------+-------------------+-----------------+------------------+----------+------+
    | SYS   | TBL2_IDX1  | NORMAL     | SYS         | TBL2       | TABLE      | NONUNIQUE  | ENABLED     |          NULL | NULL            |      NULL |      NULL |           NULL |        NULL |        NULL |        NULL |         NULL |          NULL |           NULL |      NULL |            NULL |     NULL | NULL    |   NULL |        NULL |          NULL |                    NULL |                    NULL |              NULL | VALID  |     NULL |        NULL | NULL          | 1      | NULL      | NO          | NULL      | NULL      | NULL      | NULL        | NULL        | NULL             | NULL       | NULL     |              NULL | NULL       | NULL      | NULL       | NULL         | NULL          | NULL            | NULL           | NO         | NULL                    | NO      | VISIBLE    | NULL              | NULL            | NULL             | NULL     | NULL |
    +-------+------------+------------+-------------+------------+------------+------------+-------------+---------------+-----------------+-----------+-----------+----------------+-------------+-------------+-------------+--------------+---------------+----------------+-----------+-----------------+----------+---------+--------+-------------+---------------+-------------------------+-------------------------+-------------------+--------+----------+-------------+---------------+--------+-----------+-------------+-----------+-----------+-----------+-------------+-------------+------------------+------------+----------+-------------------+------------+-----------+------------+--------------+---------------+-----------------+----------------+------------+-------------------------+---------+------------+-------------------+-----------------+------------------+----------+------+
    1 row in set
    

    References

    • Query the index information of all tables owned by the current user: USER_INDEXES

    • Query the index information of all tables in the current tenant: DBA_INDEXES

    • For more information about the operations of an index, see View an index.

    Previous topic

    ALL_IND_SUBPARTITIONS
    Last

    Next topic

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