sql - Viewing used data blocks in Oracle -


i have been trying figure out while. want know how many data blocks being used tables. tables have huge number of rows, around 200,000. when run following query:

select table_name, blocks all_tables owner='me'; 

i following output :

table1    0 table2    0 table3    0 

and on tables. why so? total used data blocks not being read properly, or there needs done correct it?

that information updated when gather statistics (using dbms_stats package). it's not dynamic view.

another way information via dba_segments view instead of dba_tables. rather expensive/slow though.


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -