oceanbase.CDB_INDEXES

2023-12-08 07:13:36  Updated

Purpose

The oceanbase.CDB_INDEXES view displays the indexes of all tenants.

Note

This view is introduced since OceanBase Database V4.0.0.

Columns

Column Type Nullable? Description
CON_ID bigint(20) NO The ID of the tenant.
OWNER varchar(128) NO The owner of the index.
INDEX_NAME varchar(128) NO The name of the index.
INDEX_TYPE varchar(27) NO The type of the index.
TABLE_OWNER varchar(128) NO The owner of the indexed object.
TABLE_NAME varchar(128) NO The name of the indexed object.
TABLE_TYPE varchar(5) NO The type of the indexed object.
UNIQUENESS varchar(9) NO Indicates whether the index is unique.
COMPRESSION varchar(13) NO Indicates whether the index is compressed.
PREFIX_LENGTH decimal(10,0) NO The number of columns in the prefix of the compressed index. At present, this column is not supported and is NULL by default.
TABLESPACE_NAME varchar(30) NO The name of the tablespace containing the index.
INI_TRANS decimal(10,0) NO The initial number of transactions. At present, this column is not supported and is NULL by default.
MAX_TRANS decimal(10,0) NO The maximum number of transactions. At present, this column is not supported and is NULL by default.
INITIAL_EXTENT decimal(10,0) NO The size of the initial extent. At present, this column is not supported and is NULL by default.
NEXT_EXTENT decimal(10,0) NO The size of secondary extents. At present, this column is not supported and is NULL by default.
MIN_EXTENTS decimal(10,0) NO The minimum number of extents allowed in the segment. At present, this column is not supported and is NULL by default.
MAX_EXTENTS decimal(10,0) NO The maximum number of extents allowed in the segment. At present, this column is not supported and is NULL by default.
PCT_INCREASE decimal(10,0) NO The percentage increase in extent size. At present, this column is not supported and is NULL by default.
PCT_THRESHOLD decimal(10,0) NO The percentage of block space allowed for each index. At present, this column is not supported and is NULL by default.
INCLUDE_COLUMN decimal(10,0) NO The column ID of the last column in the primary key of the index-organized table. At present, this column is not supported and is NULL by default.
FREELISTS decimal(10,0) NO The number of process freelists allocated to each segment. At present, this column is not supported and is NULL by default.
FREELIST_GROUPS decimal(10,0) NO The number of freelist groups allocated to each segment. At present, this column is not supported and is NULL by default.
PCT_FREE decimal(10,0) NO The minimum percentage of free space in a block. At present, this column is not supported and is NULL by default.
LOGGING varchar(3) NO Indicates whether logs are recorded for changes to the index. At present, this column is not supported and is NULL by default.
BLEVEL decimal(10,0) NO The B*-tree level. At present, this column is not supported and is NULL by default.
LEAF_BLOCKS decimal(10,0) NO The number of leaf blocks in the index. At present, this column is not supported and is NULL by default.
DISTINCT_KEYS decimal(10,0) NO The number of distinct indexed values. At present, this column is not supported and is NULL by default.
AVG_LEAF_BLOCKS_PER_KEY decimal(10,0) NO At present, this column is not supported and is NULL by default.
AVG_DATA_BLOCKS_PER_KEY decimal(10,0) NO At present, this column is not supported and is NULL by default.
CLUSTERING_FACTOR decimal(10,0) NO At present, this column is not supported and is NULL by default.
STATUS varchar(8) NO Indicates whether a nonpartitioned index is VALID or UNUSABLE.
NUM_ROWS decimal(10,0) NO At present, this column is not supported and is NULL by default.
SAMPLE_SIZE decimal(10,0) NO At present, this column is not supported and is NULL by default.
LAST_ANALYZED date NO At present, this column is not supported and is NULL by default.
DEGREE varchar(40) NO At present, this column is not supported and is NULL by default.
INSTANCES varchar(40) NO At present, this column is not supported and is NULL by default.
PARTITIONED varchar(3) NO Indicates whether the index is a partitioned index.
TEMPORARY varchar(1) NO At present, this column is not supported and is NULL by default.
GENERATED varchar(1) NO At present, this column is not supported and is NULL by default.
SECONDARY varchar(1) NO At present, this column is not supported and is NULL by default.
BUFFER_POOL varchar(7) NO At present, this column is not supported and is NULL by default.
FLASH_CACHE varchar(7) NO At present, this column is not supported and is NULL by default.
CELL_FLASH_CACHE varchar(7) NO At present, this column is not supported and is NULL by default.
USER_STATS varchar(3) NO At present, this column is not supported and is NULL by default.
DURATION varchar(15) NO At present, this column is not supported and is NULL by default.
PCT_DIRECT_ACCESS decimal(10,0) NO At present, this column is not supported and is NULL by default.
ITYP_OWNER varchar(128) NO At present, this column is not supported and is NULL by default.
ITYP_NAME varchar(128) NO At present, this column is not supported and is NULL by default.
PARAMETERS text NO At present, this column is not supported and is NULL by default.
GLOBAL_STATS varchar(3) NO At present, this column is not supported and is NULL by default.
DOMIDX_STATUS varchar(12) NO At present, this column is not supported and is NULL by default.
DOMIDX_OPSTATUS varchar(6) NO At present, this column is not supported and is NULL by default.
FUNCIDX_STATUS varchar(8) NO The status of a function-based index.
JOIN_INDEX varchar(3) NO Indicates whether the index is a join index.
IOT_REDUNDANT_PKEY_ELIM varchar(3) NO At present, this column is not supported and is NULL by default.
DROPPED varchar(3) NO Indicates whether the index has been dropped and moved to the recycle bin.
VISIBILITY varchar(9) NO Indicates whether the index is visible to the optimizer.
DOMIDX_MANAGEMENT varchar(14) NO At present, this column is not supported and is NULL by default.
SEGMENT_CREATED varchar(3) NO At present, this column is not supported and is NULL by default.
ORPHANED_ENTRIES varchar(3) NO Indicates whether the global index partition contains obsolete entries because index maintenance is delayed by the DROP/TRUNCATE PARTITION or MODIFY PARTITION INDEXING OFF operation. Valid values:
  • YES: The index partition contains orphaned entries.
  • NO: The index partition does not contain orphaned entries.
  • INDEXING varchar(7) NO Indicates whether the global index is separated from the base table. Valid values:
  • PARTIAL: The index is partial and follows the index attribute of the table.
  • FULL: The index contains all partitions of the table.
  • AUTO varchar(3) NO Indicates whether the index is an automatic index. Valid values:
  • YES
  • NO
  • Contact Us