DBA_TABLES
This view lists all the tables in the database. There are the corresponding ALL_TABLES
and USER_TABLES
, showing, respectively, the tables which the current user can access and the tables the current user owns.
Fields
The most relevant view fields are as follows:
OWNER
: The owner of the tableTABLE_NAME
: The name of the tableTABLESPACE_NAME
: The name of the tablespace in which the table is storedSTATUS
: This can beVALID
orUNUSABLE
LOGGING
: This indicates whether changes to the table are logged or not (YES
/NO
)NUM_ROWS
: The number of rows in the tableBLOCKS
: The number of used database blocks in the tableEMPTY_BLOCKS
: The number of empty database blocks in the tableAVG_SPACE
: The average free space in bytes for allocated data blocksCHAIN_CNT
: The number of chained rows in the tableAVG_ROW_LEN
: The average length of a row in the tableAVG_SPACE_FREELIST_BLOCKS
: The average free space of all blocks on a freelistNUM_FREELIST_BLOCKS
: The number of blocks in a freelistSAMPLE_SIZE
: The sample size used when analyzing the tableGLOBAL_STATS
: For partitioned tables, this indicates whether the statistics were made on all the partitions (YES
) or estimated (NO
)USER_STATS
: This indicates whether the statistics were entered by the user (YES
/NO
)LAST_ANALYZED
: The date on which the table was last analyzed