oceanbase.DBA_IND_STATISTICS

2025-11-14 07:33:33  Updated

Note

This view is introduced since OceanBase Database V4.0.0.

Purpose

This view displays optimizer statistics for all indexes in the database.

Columns

Column Type Nullable? Description
OWNER varchar(128) NO The owner of the index.
INDEX_NAME varchar(128) NO The name of the index.
TABLE_OWNER varchar(128) NO The owner of the index object.
TABLE_NAME varchar(128) NO The name of the index object.
PARTITION_NAME varchar(128) NO The name of the partition.
PARTITION_POSITION decimal(10,0) NO The position of the partition in the index.
SUBPARTITION_NAME varchar(128) NO The name of the subpartition.
SUBPARTITION_POSITION decimal(10,0) NO The position of the subpartition in the partition.
OBJECT_TYPE varchar(12) NO The object type. Valid values include:
  • INDEX
  • PARTITION
  • SUBPARTITION
  • BLEVEL decimal(10,0) NO The default value is NULL.
    LEAF_BLOCKS decimal(10,0) NO The default value is NULL.
    DISTINCT_KEYS decimal(10,0) NO The default value is NULL.
    AVG_LEAF_BLOCKS_PER_KEY decimal(10,0) NO The default value is NULL.
    AVG_DATA_BLOCKS_PER_KEY decimal(10,0) NO The default value is NULL.
    CLUSTERING_FACTOR decimal(10,0) NO The default value is NULL.
    NUM_ROWS decimal(10,0) NO The number of rows in the index.
    AVG_CACHED_BLOCKS decimal(10,0) NO The default value is NULL.
    AVG_CACHE_HIT_RATIO decimal(10,0) NO The default value is NULL.
    SAMPLE_SIZE decimal(10,0) NO The default value is NULL.
    LAST_ANALYZED datetime(6) NO The date when the index was last analyzed.
    GLOBAL_STATS varchar(3) NO Indicates whether statistics are collected or incrementally maintained:
  • YES
  • NO
  • USER_STATS varchar(3) NO Indicates whether statistics are directly input by users:
  • YES
  • NO
  • STATTYPE_LOCKED varchar(5) NO The type of statistics lock.
    STALE_STATS varchar(3) NO Indicates whether the statistics of the object are stale.
    SCOPE varchar(7) NO The default value is NULL.

    Contact Us