Search notes:

Oracle: DBA_TAB_STATISTICS

dba_tab_statistics displays optimizier statistic values for tables.
This view comes in the three variants user_tab_statistics, all_tab_statistics and dba_tab_statistics.
A possibility to populate the data dictionary with such statistics is to use dbms_stats.
--
-- Make sure statistics are up to date for a schema:
--
exec dbms_stats.gather_schema_stats('RENE');

--
-- Select statistics
--
select
-- tst.owner                      ,
   tst.table_name                 ,
   tst.num_rows                   ,
   tst.blocks                     ,
   tst.avg_row_len                ,
   tst.sample_size                , -- Number or rows sampled
   tst.empty_blocks               ,
   tst.chain_cnt                  ,
   tst.avg_space                  ,
   tst.partition_name             ,
   tst.partition_position         ,
   tst.subpartition_name          ,
   tst.subpartition_position      ,
   tst.object_type                ,
   tst.avg_space_freelist_blocks  ,
   tst.num_freelist_blocks        ,
   tst.avg_cached_blocks          ,
   tst.avg_cache_hit_ratio        ,
   tst.im_imcu_count              ,
   tst.im_block_count             ,
   tst.im_stat_update_time        ,
   tst.scan_rate                  ,
   tst.last_analyzed              ,
   tst.global_stats               , -- YES: incrementally gathered or maintained
   tst.user_stats                 , -- YES: statistics were entered by a user
   tst.stattype_locked            ,
   tst.stale_stats                , -- YES: Oracle thinks statistics are stale
   tst.notes                      ,
   tst.scope
from
   all_tab_statistics tst
where
   tst.owner      = 'RENE'     and
   tst.num_rows   is not  null and
   tst.table_name not like 'BIN$%' -- Exclude recycle bin tables
order by
   tst.blocks desc nulls last
;
Github repository oracle-patterns, path: /Installed/data-dictionary/tab/statistics/select.sql

See also

Use explain plan to find objects whose statistics weren't taken for a certain amount of time.
The column stale_stats allows to find tables that have no or stale optimizer statistics.

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758199735, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/installed/data-dictionary/tab/statistics/index(96): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78