Note
This view is available starting with V4.0.0.
Purpose
This view displays the information about partitions of all partitioned indexes in the current tenant.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| OWNER | varchar(128) | NO | The owner of the partitioned index. |
| INDEX_NAME | varchar(128) | NO | The name of the partitioned index. |
| TABLE_NAME | varchar(128) | NO | The name of the table that is associated with the index. |
| PARTITIONING_TYPE | varchar(13) | NO | The partitioning method. Valid values: |
| SUBPARTITIONING_TYPE | varchar(13) | NO | The subpartitioning method. Valid values: |
| PARTITION_COUNT | bigint(20) | NO | The number of partitions in the index. |
| DEF_SUBPARTITION_COUNT | bigint(20) | NO | The default number of subpartitions for a composite-partitioned index (if specified). |
| PARTITIONING_KEY_COUNT | bigint(21) | NO | The number of columns in the partitioning key. |
| SUBPARTITIONING_KEY_COUNT | bigint(21) | NO | The number of columns in the subpartitioning key for a composite-partitioned index. |
| LOCALITY | varchar(6) | NO | Indicates whether the partitioned index is local or global. Valid values: LOCAL and GLOBAL. |
| ALIGNMENT | varchar(12) | NO | Indicates whether the partitioned index is prefixed or non-prefixed. Valid values: PREFIXED and NON_PREFIXED. |
| DEF_TABLESPACE_NAME | varchar(30) | NO | The default tablespace for a local index when a table partition is added or split. |
| DEF_PCT_FREE | bigint(1) | NO | At present, this column is not supported and its value is 0 by default. |
| DEF_INI_TRANS | bigint(1) | NO | At present, this column is not supported and its value is 0 by default. |
| DEF_MAX_TRANS | bigint(1) | NO | At present, this column is not supported and its value is 0 by default. |
| DEF_INITIAL_EXTENT | varchar(40) | NO | At present, this column is not supported and its value is NULL by default. |
| DEF_NEXT_EXTENT | varchar(40) | NO | At present, this column is not supported and its value is NULL by default. |
| DEF_MIN_EXTENTS | varchar(40) | NO | At present, this column is not supported and its value is NULL by default. |
| DEF_MAX_EXTENTS | varchar(40) | NO | At present, this column is not supported and its value is NULL by default. |
| DEF_MAX_SIZE | varchar(40) | NO | At present, this column is not supported and its value is NULL by default. |
| DEF_PCT_INCREASE | varchar(40) | NO | At present, this column is not supported and its value is NULL by default. |
| DEF_FREELISTS | bigint(1) | NO | At present, this column is not supported and its value is 0 by default. |
| DEF_FREELIST_GROUPS | bigint(1) | NO | At present, this column is not supported and its value is 0 by default. |
| DEF_LOGGING | varchar(7) | NO | At present, this column is not supported and its value is NULL by default. |
| DEF_BUFFER_POOL | varchar(7) | NO | At present, this column is not supported and its value is NULL by default. |
| DEF_FLASH_CACHE | varchar(7) | NO | At present, this column is not supported and its value is NULL by default. |
| DEF_CELL_FLASH_CACHE | varchar(7) | NO | At present, this column is not supported and its value is NULL by default. |
| DEF_PARAMETERS | text | NO | At present, this column is not supported and its value is NULL by default. |
| INTERVAL | text | NO | At present, this column is not supported and its value is NO by default. |
| AUTOLIST | varchar(3) | NO | Indicates whether the local index is partitioned through the automatic list. Valid values: |
| INTERVAL_SUBPARTITION | text | NO | At present, this column is not supported and its value is NULL by default. |
| AUTOLIST_SUBPARTITION | text | NO | At present, this column is not supported and its value is NULL by default. |
Sample query
Query the partition information of the partitioned index tbl1_h_idx1 in the current user tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_PART_INDEXES WHERE INDEX_NAME='tbl1_h_idx1'\G
The query result is as follows:
*************************** 1. row ***************************
OWNER: infotest
INDEX_NAME: tbl1_h_idx1
TABLE_NAME: tbl1_h
PARTITIONING_TYPE: RANGE
SUBPARTITIONING_TYPE: NONE
PARTITION_COUNT: 3
DEF_SUBPARTITION_COUNT: 0
PARTITIONING_KEY_COUNT: 1
SUBPARTITIONING_KEY_COUNT: 0
LOCALITY: GLOBAL
ALIGNMENT: PREFIXED
DEF_TABLESPACE_NAME: NULL
DEF_PCT_FREE: 0
DEF_INI_TRANS: 0
DEF_MAX_TRANS: 0
DEF_INITIAL_EXTENT: NULL
DEF_NEXT_EXTENT: NULL
DEF_MIN_EXTENTS: NULL
DEF_MAX_EXTENTS: NULL
DEF_MAX_SIZE: NULL
DEF_PCT_INCREASE: NULL
DEF_FREELISTS: 0
DEF_FREELIST_GROUPS: 0
DEF_LOGGING: NULL
DEF_BUFFER_POOL: NULL
DEF_FLASH_CACHE: NULL
DEF_CELL_FLASH_CACHE: NULL
DEF_PARAMETERS: NULL
INTERVAL: NO
AUTOLIST: NO
INTERVAL_SUBPARTITION: NULL
AUTOLIST_SUBPARTITION: NULL
1 row in set