Overview
Displays the partition information for all partitioned indexes of the current tenant.
Columns
Field Name |
Type |
Whether can be NULL |
Description |
|---|---|---|---|
| OWNER | varchar(128) | NO | Partition Index Owner |
| INDEX_NAME | varchar(128) | NO | Name of partitioned index |
| TABLE_NAME | varchar(128) | NO | Name of the table associated with the index |
| PARTITIONING_TYPE | varchar(13) | NO | Partitioning method:
|
| SUBPARTITIONING_TYPE | varchar(13) | NO | Subpartitioning method:
|
| PARTITION_COUNT | bigint(20) | NO | Number of Partitions in Index |
| DEF_SUBPARTITION_COUNT | bigint(20) | NO | For composite partitioned indexes, the default is the number of partitions for the subpartition (if specified). |
| PARTITIONING_KEY_COUNT | bigint(21) | NO | Number of columns in the partitioning key |
| SUBPARTITIONING_KEY_COUNT | bigint(21) | NO | Number of Partitioning Keys for Subpartitions in a Composite Partition Index |
| LOCALITY | varchar(6) | NO | Is the partitioned index local or global? |
| ALIGNMENT | varchar(12) | NO | Whether the partitioned index is a prefixed or non-preixed index |
| DEF_TABLESPACE_NAME | varchar(30) | NO | For local indexes, the default tablespace when adding or splitting a table partition. |
| DEF_PCT_FREE | bigint(1) | NO | This field is not currently supported. The default value of this field is 0. |
| DEF_INI_TRANS | bigint(1) | NO | This field is not currently supported. The default value of this field is 0. |
| DEF_MAX_TRANS | bigint(1) | NO | This field is not currently supported. The default value of this field is 0. |
| DEF_INITIAL_EXTENT | varchar(40) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| DEF_NEXT_EXTENT | varchar(40) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| DEF_MIN_EXTENTS | varchar(40) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| DEF_MAX_EXTENTS | varchar(40) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| DEF_MAX_SIZE | varchar(40) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| DEF_PCT_INCREASE | varchar(40) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| DEF_FREELISTS | bigint(1) | NO | This field is not currently supported. The default value of this field is 0. |
| DEF_FREELIST_GROUPS | bigint(1) | NO | This field is not currently supported. The default value of this field is 0. |
| DEF_LOGGING | varchar(7) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| DEF_BUFFER_POOL | varchar(7) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| DEF_FLASH_CACHE | varchar(7) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| DEF_CELL_FLASH_CACHE | varchar(7) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| DEF_PARAMETERS | text | NO | This field is not supported. Currently, the default value of this field is NULL. |
| INTERVAL | text | NO | This field is not supported. Currently, the default value of this field is NO |
| AUTOLIST | varchar(3) | NO | Indicates whether the local index uses automatic list partitioning:
|
| INTERVAL_SUBPARTITION | text | NO | This field is not supported. Currently, the default value of this field is NULL. |
| AUTOLIST_SUBPARTITION | text | NO | This field is not supported. Currently, the default value of this field is NULL. |
Sample query
The user tenant queries the partition information of the partitioned index tbl1_h_idx1 within its own 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
References
For information about viewing partition information for partitioned indexes of all tenants, see CDB_PART_INDEXES.