Note
- This view is available starting with V4.4.2 for V4.4.x.
- This view is available starting with V4.5.0 for V4.5.x.
Purpose
This view displays the information of all tables in the current tenant.
Columns
Column |
Type |
Nullable |
Description |
|---|---|---|---|
| OWNER | char(128) | NO | The owner of the table. |
| TABLE_NAME | char(128) | NO | The name of the table. |
| TABLESPACE_NAME | varchar(30) | NO | The name of the tablespace that contains the table. |
| CLUSTER_NAME | varchar(128) | NO | This column is not supported. It is set to NULL by default. |
| IOT_NAME | varchar(128) | NO | This column is not supported. It is set to NULL by default. |
| STATUS | varchar(8) | NO | The status of the table:
|
| PCT_FREE | bigint(20) | NO | The minimum percentage of free space in a block. |
| PCT_USED | bigint(0) | NO | This column is not supported. It is set to NULL by default. |
| INI_TRANS | bigint(0) | NO | This column is not supported. It is set to NULL by default. |
| MAX_TRANS | bigint(0) | NO | This column is not supported. It is set to NULL by default. |
| INITIAL_EXTENT | bigint(0) | NO | This column is not supported. It is set to NULL by default. |
| NEXT_EXTENT | bigint(0) | NO | This column is not supported. It is set to NULL by default. |
| MIN_EXTENTS | bigint(0) | NO | This column is not supported. It is set to NULL by default. |
| MAX_EXTENTS | bigint(0) | NO | This column is not supported. It is set to NULL by default. |
| PCT_INCREASE | bigint(0) | NO | This column is not supported. It is set to NULL by default. |
| FREELISTS | bigint(0) | NO | This column is not supported. It is set to NULL by default. |
| FREELIST_GROUPS | bigint(0) | NO | This column is not supported. It is set to NULL by default. |
| LOGGING | varchar(3) | NO | This column is not supported. It is set to NULL by default. |
| BACKED_UP | varchar(1) | NO | This column is not supported. It is set to NULL by default. |
| NUM_ROWS | bigint(20) | NO | The number of rows in the table. |
| BLOCKS | bigint(0) | NO | This column is not supported. It is set to NULL by default. |
| EMPTY_BLOCKS | bigint(0) | NO | This column is not supported. It is set to NULL by default. |
| AVG_SPACE | bigint(0) | NO | This column is not supported. It is set to NULL by default. |
| CHAIN_CNT | bigint(0) | NO | This column is not supported. It is set to NULL by default. |
| AVG_ROW_LEN | bigint(0) | NO | This column is not supported. It is set to NULL by default. |
| AVG_SPACE_FREELIST_BLOCKS | bigint(0) | NO | This column is not supported. It is set to NULL by default. |
| NUM_FREELIST_BLOCKS | bigint(0) | NO | This column is not supported. It is set to NULL by default. |
| DEGREE | varchar(10) | NO | This column is not supported. It is set to NULL by default. |
| INSTANCES | varchar(10) | NO | This column is not supported. It is set to NULL by default. |
| CACHE | varchar(5) | NO | This column is not supported. It is set to NULL by default. |
| TABLE_LOCK | varchar(8) | NO | This column is not supported. It is set to NULL by default. |
| SAMPLE_SIZE | bigint(0) | NO | This column is not supported. It is set to NULL by default. |
| LAST_ANALYZED | date | NO | This column is not supported. It is set to NULL by default. |
| PARTITIONED | varchar(3) | NO | Indicates whether the table is partitioned:
|
| IOT_TYPE | varchar(12) | NO | This column is not supported. It is set to NULL by default. |
| TEMPORARY | varchar(1) | NO | Indicates whether the table is a temporary table. |
| SECONDARY | varchar(1) | NO | This column is not supported. It is set to NULL by default. |
| NESTED | varchar(3) | NO | Indicates whether the table is a nested table:
|
| BUFFER_POOL | varchar(7) | NO | This column is not supported. It is set to NULL by default. |
| FLASH_CACHE | varchar(7) | NO | This column is not supported. It is set to NULL by default. |
| CELL_FLASH_CACHE | varchar(7) | NO | This column is not supported. It is set to NULL by default. |
| ROW_MOVEMENT | varchar(8) | NO | This column is not supported. It is set to NULL by default. |
| GLOBAL_STATS | varchar(3) | NO | This column is not supported. The default value is NULL. |
| USER_STATS | varchar(3) | NO | This column is not supported. The default value is NULL. |
| DURATION | varchar(15) | NO | Indicates the duration of the temporary table. |
| SKIP_CORRUPT | varchar(8) | NO | This column is not supported. The default value is NULL. |
| MONITORING | varchar(3) | NO | This column is not supported. The default value is NULL. |
| CLUSTER_OWNER | varchar(128) | NO | This column is not supported. The default value is NULL. |
| DEPENDENCIES | varchar(8) | NO | This column is not supported. The default value is NULL. |
| COMPRESSION | varchar(30) | NO |
|
| COMPRESS_FOR | varchar(30) | NO | This column is not supported. The default value is NULL. |
| DROPPED | varchar(3) | NO | Indicates whether the dropped table is in the recycle bin. |
| READ_ONLY | varchar(3) | NO |
|
| SEGMENT_CREATED | varchar(3) | NO | This column is not supported. The default value is NULL. |
| RESULT_CACHE | varchar(7) | NO | This column is not supported. The default value is NULL. |
| CLUSTERING | varchar(3) | NO | The default value is NULL. |
| ACTIVITY_TRACKING | varchar(23) | NO | The default value is NULL. |
| DML_TIMESTAMP | varchar(25) | NO | The default value is NULL. |
| HAS_IDENTITY | varchar(3) | NO |
|
| CONTAINER_DATA | varchar(3) | NO | The default value is NULL. |
| INMEMORY | varchar(8) | NO | The default value is NULL. |
| INMEMORY_PRIORITY | varchar(8) | NO | The default value is NULL. |
| INMEMORY_DISTRIBUTE | varchar(15) | NO | This column is not supported. The default value is NULL. |
| INMEMORY_COMPRESSION | varchar(17) | NO | The default value is NULL. |
| INMEMORY_DUPLICATE | varchar(13) | NO | The default value is NULL. |
| DEFAULT_COLLATION | varchar(100) | NO | The default value is NULL. |
| DUPLICATED | varchar(1) | NO | The default value is NULL. |
| SHARDED | varchar(1) | NO | The default value is NULL. |
| EXTERNALLY_SHARDED | varchar(1) | NO | The default value is NULL. |
| EXTERNALLY_DUPLICATED | varchar(1) | NO | The default value is NULL. |
| EXTERNAL | varchar(3) | NO | Indicates whether the table is an external table:
|
| HYBRID | varchar(3) | NO | The default value is NULL. |
| CELLMEMORY | varchar(24) | NO | This column is not supported. The default value is NULL. |
| CONTAINERS_DEFAULT | varchar(3) | NO | The default value is NULL. |
| CONTAINER_MAP | varchar(3) | NO | The default value is NULL. |
| EXTENDED_DATA_LINK | varchar(3) | NO | The default value is NULL. |
| EXTENDED_DATA_LINK_MAP | varchar(3) | NO | The default value is NULL. |
| INMEMORY_SERVICE | varchar(12) | NO | The default value is NULL. |
| INMEMORY_SERVICE_NAME | text | NO | The default value is NULL. |
| CONTAINER_MAP_OBJECT | varchar(3) | NO | The default value is NULL. |
| MEMOPTIMIZE_READ | varchar(8) | NO | The default value is NULL. |
| MEMOPTIMIZE_WRITE | varchar(8) | NO | The default value is NULL. |
| HAS_SENSITIVE_COLUMN | varchar(3) | NO | The default value is NULL. |
| ADMIT_NULL | varchar(3) | NO | The default value is NULL. |
| DATA_LINK_DML_ENABLED | varchar(3) | NO | The default value is NULL. |
| LOGICAL_REPLICATION | varchar(8) | NO | The default value is NULL. |
| AUTO_SPLIT | varchar(16) | NO | Indicates whether the table is enabled for automatic partitioning. Valid values:
|
| AUTO_SPLIT_TABLET_SIZE | varchar(128) | NO | Indicates the threshold for automatic partition splitting. If the value of the AUTO_SPLIT field is FALSE, the value of the AUTO_SPLIT_TABLET_SIZE field is 0. |
| MERGE_ENGINE | varchar(32) | NO | Indicates the major compaction engine type. Valid values:
NoteFor V4.4.2, this field is available starting with V4.4.2 BP2. |
| STORE_FORMAT | varchar(24) | NO | Indicates the row-column storage mode. Valid values:
NoteFor V4.4.2, this field is available starting with V4.4.2 BP2. |
| TABLE_MODE | varchar(32) | NO | Indicates the table mode. Valid values:
NoteFor V4.4.2, this field is available starting with V4.4.2 BP2. |
| BLOCK_SIZE | bigint(20) | NO | Indicates the microblock size, in bytes.
NoteFor V4.4.2, this field is available starting with V4.4.2 BP2. |
| PROGRESSIVE_MERGE_NUM | bigint(20) | NO | Indicates the progressive major compaction round count. A value of 0 indicates disabled.
NoteFor V4.4.2, this field is available starting with V4.4.2 BP2. |
| MICRO_BLOCK_FORMAT_VERSION | bigint(20) | NO | Indicates the microblock format version number.
NoteFor V4.4.2, this field is available starting with V4.4.2 BP2. |
| ENABLE_MACRO_BLOCK_BLOOM_FILTER | varchar(3) | NO | Indicates whether to enable macroblock Bloom filtering. Valid values:
NoteFor V4.4.2, this field is available starting with V4.4.2 BP2. |
| AUTO_INCREMENT | bigint(20) | NO | Indicates the maximum currently allocated value of the auto-increment column.
NoteFor V4.4.2, this field is available starting with V4.4.2 BP2. |
| AUTO_INCREMENT_CACHE_SIZE | bigint(20) | NO | Indicates the auto-increment cache size (the step size for batch requests).
NoteFor V4.4.2, this field is available starting with V4.4.2 BP2. |
| LOB_INROW_THRESHOLD | bigint(20) | NO | Indicates the LOB in-row storage threshold, in bytes. LOBs smaller than this value are stored in rows.
NoteFor V4.4.2, this field is available starting with V4.4.2 BP2. |
| ORGANIZATION | varchar(8) | NO | Indicates the table organization form. Valid values:
NoteFor V4.4.2, this field is available starting with V4.4.2 BP2. |
| DYNAMIC_PARTITION_POLICY | char(4096) | NO | Indicates the dynamic partitioning strategy configuration. An empty string indicates the table has no dynamic partitioning strategy configured. For example, ENABLE=TRUE,TIME_UNIT=DAY,PRECREATE_TIME=7D,EXPIRE_TIME=30D,TIME_ZONE=+08:00.
NoteFor V4.4.2, this field is available starting with V4.4.2 BP2. |
| SEMISTRUCT_PROPERTIES | char(4096) | NO | Indicates the semi-structured encoding attributes. For example, {"encoding_type":1,"freq_threshold":50}.
NoteFor V4.4.2, this field is available starting with V4.4.2 BP2. |
Sample query
Query the information of the next table in the current tenant.
obclient> SELECT * FROM oceanbase.DBA_TABLES LIMIT 1\G
The query result is as follows:
*************************** 1. row ***************************
OWNER: oceanbase
TABLE_NAME: __all_core_table
TABLESPACE_NAME: NULL
CLUSTER_NAME: NULL
IOT_NAME: NULL
STATUS: VALID
PCT_FREE: 10
PCT_USED: NULL
INI_TRANS: NULL
MAX_TRANS: NULL
INITIAL_EXTENT: NULL
NEXT_EXTENT: NULL
MIN_EXTENTS: NULL
MAX_EXTENTS: NULL
PCT_INCREASE: NULL
FREELISTS: NULL
FREELIST_GROUPS: NULL
LOGGING: NULL
BACKED_UP: NULL
NUM_ROWS: NULL
BLOCKS: NULL
EMPTY_BLOCKS: NULL
AVG_SPACE: NULL
CHAIN_CNT: NULL
AVG_ROW_LEN: NULL
AVG_SPACE_FREELIST_BLOCKS: NULL
NUM_FREELIST_BLOCKS: NULL
DEGREE: NULL
INSTANCES: NULL
CACHE: NULL
TABLE_LOCK: NULL
SAMPLE_SIZE: NULL
LAST_ANALYZED: NULL
PARTITIONED: NO
IOT_TYPE: NULL
TEMPORARY: N
SECONDARY: NULL
NESTED: NO
BUFFER_POOL: NULL
FLASH_CACHE: NULL
CELL_FLASH_CACHE: NULL
ROW_MOVEMENT: NO
GLOBAL_STATS: NULL
USER_STATS: NULL
DURATION: NULL
SKIP_CORRUPT: NULL
MONITORING: NULL
CLUSTER_OWNER: NULL
DEPENDENCIES: NULL
COMPRESSION: none
COMPRESS_FOR: NULL
DROPPED: NO
READ_ONLY: NO
SEGMENT_CREATED: NULL
RESULT_CACHE: NULL
CLUSTERING: NULL
ACTIVITY_TRACKING: NULL
DML_TIMESTAMP: NULL
HAS_IDENTITY: NO
CONTAINER_DATA: NULL
INMEMORY: NULL
INMEMORY_PRIORITY: NULL
INMEMORY_DISTRIBUTE: NULL
INMEMORY_COMPRESSION: NULL
INMEMORY_DUPLICATE: NULL
DEFAULT_COLLATION: NULL
DUPLICATED: NULL
SHARDED: NULL
EXTERNALLY_SHARDED: NULL
EXTERNALLY_DUPLICATED: NULL
EXTERNAL: NO
HYBRID: NULL
CELLMEMORY: NULL
CONTAINERS_DEFAULT: NULL
CONTAINER_MAP: NULL
EXTENDED_DATA_LINK: NULL
EXTENDED_DATA_LINK_MAP: NULL
INMEMORY_SERVICE: NULL
INMEMORY_SERVICE_NAME: NULL
CONTAINER_MAP_OBJECT: NULL
MEMOPTIMIZE_READ: NULL
MEMOPTIMIZE_WRITE: NULL
HAS_SENSITIVE_COLUMN: NULL
ADMIT_NULL: NULL
DATA_LINK_DML_ENABLED: NULL
LOGICAL_REPLICATION: NULL
AUTO_SPLIT: FALSE
AUTO_SPLIT_TABLET_SIZE: 0
MERGE_ENGINE: PARTIAL_UPDATE
STORE_FORMAT: ROW
TABLE_MODE: NORMAL
BLOCK_SIZE: 16384
PROGRESSIVE_MERGE_NUM: 0
MICRO_BLOCK_FORMAT_VERSION: 1
ENABLE_MACRO_BLOCK_BLOOM_FILTER: NO
AUTO_INCREMENT: 1
AUTO_INCREMENT_CACHE_SIZE: 0
LOB_INROW_THRESHOLD: 4096
ORGANIZATION: INDEX
DYNAMIC_PARTITION_POLICY:
SEMISTRUCT_PROPERTIES:
1 row in set
