Note
This view is available starting with V4.0.0.
Purpose
This view displays the partition information 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 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 | For a composite partitioned index, the default number of subpartitions (if specified). |
| PARTITIONING_KEY_COUNT | bigint(21) | NO | The number of columns in the partitioning key. |
| SUBPARTITIONING_KEY_COUNT | bigint(21) | NO | For a composite partitioned index, the number of subpartitioning keys. |
| LOCALITY | varchar(6) | NO | Indicates whether the partitioned index is LOCAL or GLOBAL. |
| ALIGNMENT | varchar(12) | NO | Indicates whether the partitioned index is PREFIXED or NON_PREFIXED. |
| DEF_TABLESPACE_NAME | varchar(30) | NO | For a LOCAL index, the default tablespace when a table partition is added or split. |
| DEF_PCT_FREE | bigint(1) | NO | This column is not supported. The default value is 0. |
| DEF_INI_TRANS | bigint(1) | NO | This column is not supported. The default value is 0. |
| DEF_MAX_TRANS | bigint(1) | NO | This column is not supported. The default value is 0. |
| DEF_INITIAL_EXTENT | varchar(40) | NO | This column is not supported. The default value is NULL. |
| DEF_NEXT_EXTENT | varchar(40) | NO | This column is not supported. The default value is NULL. |
| DEF_MIN_EXTENTS | varchar(40) | NO | This column is not supported. The default value is NULL. |
| DEF_MAX_EXTENTS | varchar(40) | NO | This column is not supported. The default value is NULL. |
| DEF_MAX_SIZE | varchar(40) | NO | This column is not supported. The default value is NULL. |
| DEF_PCT_INCREASE | varchar(40) | NO | This column is not supported. The default value is NULL. |
| DEF_FREELISTS | bigint(1) | NO | This column is not supported. The default value is 0. |
| DEF_FREELIST_GROUPS | bigint(1) | NO | This column is not supported. The default value is 0. |
| DEF_LOGGING | varchar(7) | NO | This column is not supported. The default value is NULL. |
| DEF_BUFFER_POOL | varchar(7) | NO | This column is not supported. The default value is NULL. |
| DEF_FLASH_CACHE | varchar(7) | NO | This column is not supported. The default value is NULL. |
| DEF_CELL_FLASH_CACHE | varchar(7) | NO | This column is not supported. The default value is NULL. |
| DEF_PARAMETERS | text | NO | This column is not supported. The default value is NULL. |
| INTERVAL | text | NO | This column is not supported. The default value is NO. |
| AUTOLIST | varchar(3) | NO | Indicates whether automatic list partitioning is enabled for a LOCAL index. Valid values:
|
| INTERVAL_SUBPARTITION | text | NO | This column is not supported. The default value is NULL. |
| AUTOLIST_SUBPARTITION | text | NO | This column is not supported. The default value is NULL. |
Sample query
Query the partition information of the partitioned index tbl2_f_rl_idx1 in the current tenant in the sys tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_PART_INDEXES WHERE INDEX_NAME='tbl2_f_rl_idx1'\G
The query result is as follows:
*************************** 1. row ***************************
OWNER: test
INDEX_NAME: tbl2_f_rl_idx1
TABLE_NAME: tbl2_f_rl
PARTITIONING_TYPE: RANGE
SUBPARTITIONING_TYPE: LIST
PARTITION_COUNT: 2
DEF_SUBPARTITION_COUNT: 0
PARTITIONING_KEY_COUNT: 1
SUBPARTITIONING_KEY_COUNT: 1
LOCALITY: LOCAL
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
References
To view the partition information of the partition indexes of all tenants, see CDB_PART_INDEXES.