oceanbase.CDB_TABLES

2024-04-19 08:42:49  Updated

Purpose

The oceanbase.CDB_TABLES view provides information about tables in all tenants.

Note

This view is introduced since OceanBase Database V4.0.0.

Columns

Column Type Nullable? Description
CON_ID bigint(20) NO The ID of the tenant.
OWNER varchar(128) NO The owner of the table.
TABLE_NAME varchar(128) NO The name of the table.
TABLESPACE_NAME varchar(30) NO The name of the tablespace containing the table.
CLUSTER_NAME varchar(128) NO At present, this column is not supported and is NULL by default.
IOT_NAME varchar(128) NO At present, this column is not supported and is NULL by default.
STATUS varchar(8) NO The table status. Valid values:
  • VALID
  • UNUSABLE
  • PCT_FREE bigint(20) NO The minimum percentage of free space in a block.
    PCT_USED bigint(0) NO At present, this column is not supported and is NULL by default.
    INI_TRANS bigint(0) NO At present, this column is not supported and is NULL by default.
    MAX_TRANS bigint(0) NO At present, this column is not supported and is NULL by default.
    INITIAL_EXTENT bigint(0) NO At present, this column is not supported and is NULL by default.
    NEXT_EXTENT bigint(0) NO At present, this column is not supported and is NULL by default.
    MIN_EXTENTS bigint(0) NO At present, this column is not supported and is NULL by default.
    MAX_EXTENTS bigint(0) NO At present, this column is not supported and is NULL by default.
    PCT_INCREASE bigint(0) NO At present, this column is not supported and is NULL by default.
    FREELISTS bigint(0) NO At present, this column is not supported and is NULL by default.
    FREELIST_GROUPS bigint(0) NO At present, this column is not supported and is NULL by default.
    LOGGING varchar(3) NO At present, this column is not supported and is NULL by default.
    BACKED_UP varchar(1) NO At present, this column is not supported and is NULL by default.
    NUM_ROWS BIGINT(21) NO The number of rows in the table.
    BLOCKS bigint(0) NO At present, this column is not supported and is NULL by default.
    EMPTY_BLOCKS bigint(0) NO At present, this column is not supported and is NULL by default.
    AVG_SPACE bigint(0) NO At present, this column is not supported and is NULL by default.
    CHAIN_CNT bigint(0) NO At present, this column is not supported and is NULL by default.
    AVG_ROW_LEN bigint(0) NO At present, this column is not supported and is NULL by default.
    AVG_SPACE_FREELIST_BLOCKS bigint(0) NO At present, this column is not supported and is NULL by default.
    NUM_FREELIST_BLOCKS bigint(0) NO At present, this column is not supported and is NULL by default.
    DEGREE varchar(10) NO At present, this column is not supported and is NULL by default.
    INSTANCES varchar(10) NO At present, this column is not supported and is NULL by default.
    CACHE varchar(5) NO At present, this column is not supported and is NULL by default.
    TABLE_LOCK varchar(8) NO At present, this column is not supported and is NULL by default.
    SAMPLE_SIZE bigint(0) NO At present, this column is not supported and is NULL by default.
    LAST_ANALYZED date NO At present, this column is not supported and is NULL by default.
    PARTITIONED varchar(3) NO Indicates whether the table is partitioned. Valid values:
  • YES
  • NO
  • IOT_TYPE varchar(12) NO At present, this column is not supported and is NULL by default.
    TEMPORARY varchar(1) NO Indicates whether the table is a temporary table.
    SECONDARY varchar(1) NO At present, this column is not supported and is NULL by default.
    NESTED varchar(3) NO Indicates whether the table is a nested table. Valid values:
  • YES
  • NO
  • BUFFER_POOL varchar(7) NO At present, this column is not supported and is NULL by default.
    FLASH_CACHE varchar(7) NO At present, this column is not supported and is NULL by default.
    CELL_FLASH_CACHE varchar(7) NO At present, this column is not supported and is NULL by default.
    ROW_MOVEMENT varchar(8) NO At present, this column is not supported and is NULL by default.
    GLOBAL_STATS varchar(3) NO At present, this column is not supported and is NULL by default.
    USER_STATS varchar(3) NO At present, this column is not supported and is NULL by default.
    DURATION varchar(15) NO The duration of a temporary table.
    SKIP_CORRUPT varchar(8) NO At present, this column is not supported and is NULL by default.
    MONITORING varchar(3) NO At present, this column is not supported and is NULL by default.
    CLUSTER_OWNER varchar(128) NO At present, this column is not supported and is NULL by default.
    DEPENDENCIES varchar(8) NO At present, this column is not supported and is NULL by default.
    COMPRESSION varchar(8) NO At present, this column is not supported and is NULL by default.
    COMPRESS_FOR varchar(30) NO At present, this column is not supported and is NULL by default.
    DROPPED varchar(3) NO Indicates whether the table has been dropped and moved to the recycle bin.
    READ_ONLY varchar(3) NO At present, this column is not supported and is NULL by default.
    SEGMENT_CREATED varchar(3) NO At present, this column is not supported and is NULL by default.
    RESULT_CACHE varchar(7) NO At present, this column is not supported and is NULL by default.
    CLUSTERING varchar(3) NO Indicates whether the table has attribute clustering clauses. Valid values:
  • YES
  • NO
  • ACTIVITY_TRACKING varchar(23) NO Indicates whether heatmap tracking is enabled on the table.
    DML_TIMESTAMP varchar(25) NO The time when the automatic data optimization policy was created or modified.
    HAS_IDENTITY varchar(3) NO Indicates whether the table has an identifier column. Valid values:
  • YES
  • NO
  • CONTAINER_DATA varchar(3) NO Indicates whether the table contains container-specific data. Valid values:
  • YES
  • NO
  • INMEMORY varchar(8) NO Indicates whether in-memory column store is enabled for the table. Valid values:
  • ENABLED
  • DISABLED
  • INMEMORY_PRIORITY varchar(8) NO The padding priority of the in-memory column store. Valid values:
  • LOW
  • MEDIUM
  • HIGH
  • CRITICAL
  • NONE
  • NULL
  • INMEMORY_DISTRIBUTE varchar(15) NO The distribution of in-memory column store in a Real Application Clusters (RAC) environment. Valid values:
  • AUTO
  • BY ROWID RANGE
  • DUPLICATE
  • NONE
  • NULL
  • INMEMORY_COMPRESSION varchar(17) NO The compression level for in-memory column store. Valid values:
  • NO MEMCOMPRESS
  • FOR DML
  • FOR QUERY [ LOW | HIGH ]
  • FOR CAPACITY [ LOW | HIGH ]
  • AUTO
  • NULL
    This value is based on the location of the middle section of the table. For example, if the table is partitioned and in-memory column store is enabled, the value for ALL_TABLES is NULL and the value for ALL_TAB_SUBPARTITIONS is not NULL.
  • INMEMORY_DUPLICATE varchar(13) NO The duplicate settings for in-memory column store in the RAC environment. Valid values:
  • DUPLICATE
  • NO DUPLICATE
  • DUPLICATE ALL
  • DEFAULT_COLLATION varchar(100) NO The default sorting rule of the table.
    DUPLICATED varchar(1) NO Indicates whether the table is duplicated on this shard. Valid values:
  • YES
  • NO
  • SHARDED varchar(1) NO Indicates whether the table is sharded. Valid values:
  • YES
  • NO
  • EXTERNALLY_SHARDED varchar(1) NO Indicates whether the table involves an external shard. Valid values:
  • YES
  • NO
  • EXTERNALLY_DUPLICATED varchar(1) NO Indicates whether the table involves an external duplicate. Valid values:
  • YES
  • NO
  • EXTERNAL varchar(3) NO Indicates whether the table is an external table. Valid values:
  • YES
  • NO
  • HYBRID varchar(3) NO Indicates whether the table is a hybrid partitioned table. Valid values:
  • YES
  • NO
    A hybrid partition table can contain both partitions stored in a segment and partitions stored externally.
  • CELLMEMORY varchar(24) NO The column compression value in the flash cache of the storage unit. Valid values:
  • ENABLED: Oracle Exadata Storage will automatically determine whether to cache data as a column.
  • DISABLED: Oracle Exadata Storage is prevented from caching data as a column.
  • NO CACHECOMPRESS: Oracle Exadata Storage will cache data in HCC format (where no re-compression is required).
  • FOR QUERY: Oracle Exadata Storage will recompress and cache data in high INMEMORY query format.
  • FOR CAPACITY: Exadata Storage will recompress and cache data in low INMEMORY capacity format.
    This column is mainly used with Exadata.
  • CONTAINERS_DEFAULT varchar(3) NO Indicates whether CONTAINERS() is enabled for the table by default. Valid values:
  • YES
  • NO
  • CONTAINER_MAP varchar(3) NO Indicates whether the table is enabled and used together with the database attribute container_map. Valid values:
  • YES
  • NO
  • EXTENDED_DATA_LINK varchar(3) NO Indicates whether obtaining extended data links from the root is enabled for the table. Valid values:
  • YES
  • NO
  • EXTENDED_DATA_LINK_MAP varchar(3) NO For internal use only.
    INMEMORY_SERVICE varchar(12) NO The way that in-memory column store is padded on various instances. Valid values:
  • DEFAULTPARALLEL_INSTANCE_GROUP: Data is padded on all instances specified by the initialization parameter. This is the default value. If this parameter is not set, data is padded for all instances.
  • NONE: Data is not padded for any instance.
  • ALL: Data is padded for all instances regardless of the settings of the initialization parameter PARALLEL_INSTANCE_GROUP.
  • USER_DEFINED: Data is padded only for instances where the user-defined service is active. The service name is saved in the INMEMORY_SERVICE_NAME column.
  • INMEMORY_SERVICE_NAME varchar(1000) NO The name of the service on which in-memory column store is padded. This column has values only when INMEMORY_SERVICE is set to USER_DEFINED, and is empty in other cases.
    CONTAINER_MAP_OBJECT varchar(3) NO Indicates whether the table is used as the value of the database container_map property. Valid values:
  • YES
  • NO
  • MEMOPTIMIZE_READ varchar(8) NO Indicates whether shortcut-based access is enabled for the table. Valid values:
  • ENABLED
  • DISABLED
  • MEMOPTIMIZE_WRITE varchar(8) NO For internal use only.
    HAS_SENSITIVE_COLUMN varchar(3) NO Indicates whether the table has one or more sensitive columns. Valid values:
  • YES
  • NO
  • ADMIT_NULL varchar(3) NO Indicates whether the table accepts empty CON_ID data. Valid values:
  • YES
  • NO
  • DATA_LINK_DML_ENABLED varchar(3) NO Indicates whether DML is allowed on the data link table. Valid values:
  • YES
  • NO
  • LOGICAL_REPLICATION varchar(8) NO Indicates whether logical replication is enabled for the table. Valid values:
  • ENABLED
  • DISABLED
    This value is ignored if the log entry of column data replenishment is enabled across the database.
  • Contact Us