Note
- The view was introduced in V4.4.x in V4.4.2.
- The view was introduced in V4.5.x in V4.5.0.
Purpose
The following view displays information about all tables of 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 field is not supported and will be set to NULL by default. |
| IOT_NAME | varchar(128) | NO | This field is not currently supported, and it is set to NULL by default. |
| STATUS | varchar(8) | NO | Table status:
|
| PCT_FREE | bigint(20) | NO | The percentage of minimum free space for each block. |
| PCT_USED | bigint(0) | NO | This field is currently not supported and defaults to NULL. |
| INI_TRANS | bigint(0) | NO | This field is currently not supported and defaults to NULL. |
| MAX_TRANS | bigint(0) | NO | This column is not supported and is NULL by default. |
| INITIAL_EXTENT | bigint(0) | NO | This field is not supported, and its default value is NULL. |
| NEXT_EXTENT | bigint(0) | NO | This field is not supported at the moment, and the default value for this field is NULL. |
| MIN_EXTENTS | bigint(0) | NO | The MIN_EXTENTS column is not supported currently, and its default value is NULL. |
| MAX_EXTENTS | bigint(0) | NO | This field is not supported. It is currently NULL by default. |
| PCT_INCREASE | bigint(0) | NO | This column is not supported at the moment. At present, the default value is NULL for this column. |
| FREELISTS | bigint(0) | NO | This field is currently not supported, and defaults to NULL. |
| FREELIST_GROUPS | bigint(0) | NO | This field is not supported currently and will be NULL by default. |
| LOGGING | varchar(3) | NO | This field is not supported and defaults to NULL. |
| BACKED_UP | varchar(1) | NO | The value of this column is NULL by default, and the column is temporarily not supported. |
| NUM_ROWS | bigint(20) | NO | The number of rows in the table. |
| BLOCKS | bigint(0) | NO | This field is not currently supported and is set to NULL by default. |
| EMPTY_BLOCKS | bigint(0) | NO | This field is not currently supported. This field defaults to NULL. |
| AVG_SPACE | bigint(0) | NO | This field is currently unsupported and defaults to NULL. |
| CHAIN_CNT | bigint(0) | NO | This field is currently unsupported and defaults to NULL. |
| AVG_ROW_LEN | bigint(0) | NO | The current field is not supported, and the default value is NULL. |
| AVG_SPACE_FREELIST_BLOCKS | bigint(0) | NO | This field is not supported yet, and its default value is NULL. |
| NUM_FREELIST_BLOCKS | bigint(0) | NO | This field is not supported and defaults to NULL. |
| DEGREE | varchar(10) | NO | This field is currently not supported and defaults to NULL. |
| INSTANCES | varchar(10) | NO | This field is not supported and is currently set to NULL by default. |
| CACHE | varchar(5) | NO | This field is currently not supported, and its default value is NULL. |
| TABLE_LOCK | varchar(8) | NO | This field is currently not supported and defaults to NULL. |
| SAMPLE_SIZE | bigint(0) | NO | This field is not currently supported, and the default value is NULL. |
| LAST_ANALYZED | date | NO | Currently, this field is not supported. The default value is NULL. |
| PARTITIONED | varchar(3) | NO | Indicates whether the table is partitioned:
|
| IOT_TYPE | varchar(12) | NO | This field is not supported. The value of this field is NULL by default. |
| TEMPORARY | varchar(1) | NO | Specifies whether the table is a temporary table. |
| SECONDARY | varchar(1) | NO | This field is not supported. The default value is NULL. |
| NESTED | varchar(3) | NO | Specifies whether the table is a nested table:
|
| BUFFER_POOL | varchar(7) | NO | This column is not supported. The column value is NULL. |
| FLASH_CACHE | varchar(7) | NO | The value of this column is currently NULL and this column is not supported. |
| CELL_FLASH_CACHE | varchar(7) | NO | This field is not supported at present and will default to NULL. |
| ROW_MOVEMENT | varchar(8) | NO | This field is not supported currently and is set to NULL by default. |
| GLOBAL_STATS | varchar(3) | NO | This field is not supported and is currently NULL by default. |
| USER_STATS | varchar(3) | NO | This field is not supported and is set to NULL by default. |
| DURATION | varchar(15) | NO | Indicates the duration of the temporary table. |
| SKIP_CORRUPT | varchar(8) | NO | This field is not supported and defaults to NULL. |
| MONITORING | varchar(3) | NO | This field is not supported at present. It is set to NULL by default. |
| CLUSTER_OWNER | varchar(128) | NO | This field is currently not supported. The default value is NULL. |
| DEPENDENCIES | varchar(8) | NO | The field is not currently supported and defaults to NULL. |
| COMPRESSION | varchar(8) | NO | This field is not supported and defaults to NULL. |
| COMPRESS_FOR | varchar(30) | NO | Currently not supported. This column is NULL by default. |
| DROPPED | varchar(3) | NO | Indicates whether the dropped table is in the recycle bin. |
| READ_ONLY | varchar(3) | NO | This field is not supported and is null by default. |
| SEGMENT_CREATED | varchar(3) | NO | This field is currently unsupported and is set to NULL by default. |
| RESULT_CACHE | varchar(7) | NO | The result_cache field is not supported. By default, it will be NULL. |
| CLUSTERING | varchar(3) | NO | The default value for this column is NULL. |
| ACTIVITY_TRACKING | varchar(23) | NO | The current default value for this field is NULL. |
| DML_TIMESTAMP | varchar(25) | NO | This field is NULL by default. |
| HAS_IDENTITY | varchar(3) | NO | This field is set to NULL by default. |
| CONTAINER_DATA | varchar(3) | NO | This column defaults to NULL. |
| INMEMORY | varchar(8) | NO | This field is set to NULL by default. |
| INMEMORY_PRIORITY | varchar(8) | NO | The default value for this field 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 for this column is NULL. |
| INMEMORY_DUPLICATE | VARCHAR2(13) | NO | The default value for this column is NULL. |
| DEFAULT_COLLATION | varchar(100) | NO | This field currently defaults to NULL. |
| DUPLICATED | varchar(1) | NO | This field is NULL by default. |
| SHARDED | varchar(1) | NO | The default value for this field is NULL. |
| EXTERNALLY_SHARDED | varchar(1) | NO | This column defaults to NULL. |
| EXTERNALLY_DUPLICATED | varchar(1) | NO | This field is NULL by default. |
| EXTERNAL | varchar(3) | NO | Specifies whether the table is an external table:
|
| HYBRID | varchar(3) | NO | This field is set to NULL by default. |
| CELLMEMORY | varchar(24) | NO | This field is not currently supported and defaults to NULL. |
| CONTAINERS_DEFAULT | varchar(3) | NO | Current default value for this field is NULL. |
| CONTAINER_MAP | varchar(3) | NO | This field currently defaults to NULL. |
| EXTENDED_DATA_LINK | varchar(3) | NO | The default value of this field is NULL. |
| EXTENDED_DATA_LINK_MAP | varchar(3) | NO | The default value of this field is NULL. |
| INMEMORY_SERVICE | varchar(12) | NO | This column is currently NULL by default. |
| INMEMORY_SERVICE_NAME | text | NO | This field is NULL by default. |
| CONTAINER_MAP_OBJECT | varchar(3) | NO | The default value for this column is NULL. |
| MEMOPTIMIZE_READ | varchar(8) | NO | This field currently defaults to NULL. |
| MEMOPTIMIZE_WRITE | varchar(8) | NO | This column is NULL by default. |
| HAS_SENSITIVE_COLUMN | varchar(3) | NO | This field defaults to NULL. |
| ADMIT_NULL | varchar(3) | NO | Specifies that the field is allowed to contain null values. |
| DATA_LINK_DML_ENABLED | varchar(3) | NO | It defaults to NULL. |
| LOGICAL_REPLICATION | varchar(8) | NO | The default value of this column is NULL. |
| AUTO_SPLIT | varchar(16) | NO | Indicates whether automatic partitioning is enabled for the table. Valid values:
|
| AUTO_SPLIT_TABLET_SIZE | varchar(128) | NO | Specifies the size threshold for automatic partition splitting. When the value of the AUTO_SPLIT field is FALSE, the value of the AUTO_SPLIT_TABLET_SIZE field is 0. |
Sample query
Select information about tbl1 in the current tenant.
obclient> SELECT * FROM oceanbase.DBA_TABLES WHERE TABLE_NAME = 'tbl1'\G
The query result is as follows:
*************************** 1. row ***************************
OWNER: test_db
TABLE_NAME: tbl1
TABLESPACE_NAME: NULL
CLUSTER_NAME: NULL
IOT_NAME: NULL
STATUS: VALID
PCT_FREE: 0
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: NULL
COMPRESS_FOR: NULL
DROPPED: NO
READ_ONLY: NULL
SEGMENT_CREATED: NULL
RESULT_CACHE: NULL
CLUSTERING: NULL
ACTIVITY_TRACKING: NULL
DML_TIMESTAMP: NULL
HAS_IDENTITY: NULL
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
1 row in set