Note
This view is available starting with V4.0.0.
Overview
Displays all tables for all tenants.
Columns
Field Name |
Type |
Whether can be NULL |
Description |
|---|---|---|---|
| CON_ID | bigint(20) | NO | Tenant ID |
| OWNER | varchar(128) | NO | Table Owner |
| TABLE_NAME | varchar(128) | NO | Table name |
| TABLESPACE_NAME | varchar(30) | NO | The name of the tablespace that contains the table. |
| CLUSTER_NAME | varchar(128) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| IOT_NAME | varchar(128) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| STATUS | varchar(8) | NO | Table status:
|
| PCT_FREE | bigint(20) | NO | Minimum Free Space Ratio for Blocks |
| PCT_USED | bigint(0) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| INI_TRANS | bigint(0) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| MAX_TRANS | bigint(0) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| INITIAL_EXTENT | bigint(0) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| NEXT_EXTENT | bigint(0) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| MIN_EXTENTS | bigint(0) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| MAX_EXTENTS | bigint(0) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| PCT_INCREASE | bigint(0) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| FREELISTS | bigint(0) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| FREELIST_GROUPS | bigint(0) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| LOGGING | varchar(3) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| BACKED_UP | varchar(1) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| NUM_ROWS | bigint(21) | NO | Number of Table Rows |
| BLOCKS | bigint(0) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| EMPTY_BLOCKS | bigint(0) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| AVG_SPACE | bigint(0) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| CHAIN_CNT | bigint(0) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| AVG_ROW_LEN | bigint(0) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| AVG_SPACE_FREELIST_BLOCKS | bigint(0) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| NUM_FREELIST_BLOCKS | bigint(0) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| DEGREE | varchar(10) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| INSTANCES | varchar(10) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| CACHE | varchar(5) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| TABLE_LOCK | varchar(8) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| SAMPLE_SIZE | bigint(0) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| LAST_ANALYZED | date | NO | This field is not supported. Currently, the default value of this field is NULL. |
| PARTITIONED | varchar(3) | NO | Specifies whether the table is partitioned:
|
| IOT_TYPE | varchar(12) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| TEMPORARY | varchar(1) | NO | Specifies whether the table is temporary. |
| SECONDARY | varchar(1) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| NESTED | varchar(3) | NO | Specifies whether the table is a nested table. Valid values:
|
| BUFFER_POOL | varchar(7) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| FLASH_CACHE | varchar(7) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| CELL_FLASH_CACHE | varchar(7) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| ROW_MOVEMENT | varchar(8) | NO | Records the enable/disable status of row movement. Valid values:
NoteThis field is available starting from OceanBase Database V4.2.5 BP2. |
| GLOBAL_STATS | varchar(3) | NO | This field is not currently supported. The default value of this field is NULL. |
| USER_STATS | varchar(3) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| DURATION | varchar(15) | NO | Duration of the temporary table |
| SKIP_CORRUPT | varchar(8) | NO | This field is not currently supported. The default value of this field is NULL. |
| MONITORING | varchar(3) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| CLUSTER_OWNER | varchar(128) | NO | This field is not currently supported. The default value of this field is NULL. |
| DEPENDENCIES | varchar(8) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| COMPRESSION | varchar(8) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| COMPRESS_FOR | varchar(30) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| DROPPED | varchar(3) | NO | Whether the deleted table is in the recycle bin |
| READ_ONLY | varchar(3) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| SEGMENT_CREATED | varchar(3) | NO | This field is not supported. Currently, the default value of this field is NULL. |
| RESULT_CACHE | varchar(7) | NO | This field is not currently supported. The default value of this field is NULL. |
| CLUSTERING | varchar(3) | NO | The default value of this field is currently NULL. |
| ACTIVITY_TRACKING | varchar(23) | NO | The default value of this field is currently NULL. |
| DML_TIMESTAMP | varchar(25) | NO | The default value of this field is currently NULL. |
| HAS_IDENTITY | varchar(3) | NO | The default value of this field is currently NULL. |
| CONTAINER_DATA | varchar(3) | NO | The default value of this field is currently NULL. |
| INMEMORY | varchar(8) | NO | The default value of this field is currently NULL. |
| INMEMORY_PRIORITY | varchar(8) | NO | The default value of this field is currently NULL. |
| INMEMORY_DISTRIBUTE | varchar(15) | NO | The default value of this field is currently NULL. |
| INMEMORY_COMPRESSION | varchar(17) | NO | The default value of this field is currently NULL. |
| INMEMORY_DUPLICATE | varchar(13) | NO | The default value of this field is currently NULL. |
| DEFAULT_COLLATION | varchar(100) | NO | The default value of this field is currently NULL. |
| DUPLICATED | varchar(1) | NO | The default value of this field is currently NULL. |
| SHARDED | varchar(1) | NO | The default value of this field is currently NULL. |
| EXTERNALLY_SHARDED | varchar(1) | NO | The default value of this field is currently NULL. |
| EXTERNALLY_DUPLICATED | varchar(1) | NO | The default value of this field is currently NULL. |
| EXTERNAL | varchar(3) | NO | Indicates whether the table is an external table. Valid values:
|
| HYBRID | varchar(3) | NO | The default value of this field is currently NULL. |
| CELLMEMORY | varchar(24) | NO | The default value of this field is currently NULL. |
| CONTAINERS_DEFAULT | varchar(3) | NO | The default value of this field is currently NULL. |
| CONTAINER_MAP | varchar(3) | NO | The default value of this field is currently NULL. |
| EXTENDED_DATA_LINK | varchar(3) | NO | The default value of this field is currently NULL. |
| EXTENDED_DATA_LINK_MAP | varchar(3) | NO | The default value of this field is currently NULL. |
| INMEMORY_SERVICE | varchar(12) | NO | The default value of this field is currently NULL. |
| INMEMORY_SERVICE_NAME | varchar(1000) | NO | The default value of this field is currently NULL. |
| CONTAINER_MAP_OBJECT | varchar(3) | NO | The default value of this field is currently NULL. |
| MEMOPTIMIZE_READ | varchar(8) | NO | The default value of this field is currently NULL. |
| MEMOPTIMIZE_WRITE | varchar(8) | NO | For Internal Use Only |
| HAS_SENSITIVE_COLUMN | varchar(3) | NO | The default value of this field is currently NULL. |
| ADMIT_NULL | varchar(3) | NO | The default value of this field is currently NULL. |
| DATA_LINK_DML_ENABLED | varchar(3) | NO | The default value of this field is currently NULL. |
| LOGICAL_REPLICATION | varchar(8) | NO | The default value of this field is currently NULL. |
Sample query
In the sys tenant, query the information of table tbl1 in the tenant with ID 1002.
obclient [oceanbase]> SELECT CON_ID, OWNER, TABLE_NAME, STATUS, PCT_FREE, TEMPORARY, NESTED, ROW_MOVEMENT, DROPPED, EXTERNAL FROM oceanbase.CDB_TABLES WHERE CON_ID=1002 AND TABLE_NAME = 'tbl1';
The query result is as follows:
+--------+----------+------------+--------+----------+-----------+--------+--------------+---------+----------+
| CON_ID | OWNER | TABLE_NAME | STATUS | PCT_FREE | TEMPORARY | NESTED | ROW_MOVEMENT | DROPPED | EXTERNAL |
+--------+----------+------------+--------+----------+-----------+--------+--------------+---------+----------+
| 1002 | infotest | tbl1 | VALID | 0 | N | NO | NO | NO | NO |
+--------+----------+------------+--------+----------+-----------+--------+--------------+---------+----------+
1 row in set
