Skip Headers
Oracle® Database Reference
12c Release 1 (12.1)

E17615-24
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub

ALL_TAB_STATISTICS

ALL_TAB_STATISTICS displays optimizer statistics for the tables accessible to the current user.

Related Views

Column Datatype NULL Description
OWNER VARCHAR2(128)   Owner of the object
TABLE_NAME VARCHAR2(128)   Name of the table
PARTITION_NAME VARCHAR2(128)   Name of the partition
PARTITION_POSITION NUMBER   Position of the partition within the table
SUBPARTITION_NAME VARCHAR2(128)   Name of the subpartition
SUBPARTITION_POSITION NUMBER   Position of the subpartition within the partition
OBJECT_TYPE VARCHAR2(12)   Type of the object:
  • TABLE

  • PARTITION

  • SUBPARTITION

NUM_ROWS NUMBER   Number of rows in the object
BLOCKS NUMBER   Number of used blocks in the object
EMPTY_BLOCKS NUMBER   Number of empty blocks in the object
AVG_SPACE NUMBER   Average available free space in the object
CHAIN_CNT NUMBER   Number of chained rows in the object
AVG_ROW_LEN NUMBER   Average row length, including row overhead
AVG_SPACE_FREELIST_BLOCKS NUMBER   Average freespace of all blocks on a freelist
NUM_FREELIST_BLOCKS NUMBER   Number of blocks on the freelist
AVG_CACHED_BLOCKS NUMBER   Average number of blocks in the buffer cache
AVG_CACHE_HIT_RATIO NUMBER   Average cache hit ratio for the object
SAMPLE_SIZE NUMBER   Sample size used in analyzing the table
LAST_ANALYZED DATE   Date of the most recent time the table was analyzed
GLOBAL_STATS VARCHAR2(3)   Indicates whether statistics were gathered for the table as a whole (global statistics) (YES) or they were not gathered (NO). Note that for partitioned tables, global statistics and partition statistics are estimated from underlying partition and subpartition statistics, respectively, when set to NO.
USER_STATS VARCHAR2(3)   Indicates whether statistics were entered directly by the user (YES) or not (NO)
STATTYPE_LOCKED VARCHAR2(5)   Type of statistics lock:
  • DATA

  • CACHE

  • ALL

STALE_STATS VARCHAR2(3)   Indicates whether statistics for the object are stale (YES) or not (NO)
SCOPE VARCHAR2(7)   The value is SHARED for statistics gathered on any table other than global temporary tables.

For a global tempoary table, the possible values are:

  • SESSION - Indicates that the statistics are session-specific

  • SHARED - Indicates that the statistics are shared across all sessions

See Oracle Database PL/SQL Packages and Types Reference for information about using the GLOBAL_TEMP_TABLE_STATS preference of the DBMS_STATS package to control whether to gather session or shared statistics for global temporary tables.


See Also: