to find actual size of a table:
select count (distinct substr(rowid,1,15)) from schema.table_name
each rowid references a block. Sum of all the distinct blocks give you the actual table size.
so hows is a COUNT = to a SUM
you query wil return the number of rows
Migrated and chained rows?
Originally Posted by newbie
The method I presented is the table size in Oracle blocks -- that would exclude all empty blocks below the HWM. IMHO, I would consider any block that contains the pointer or the actual migrated/chained rows as non-empty data blocks.
Originally Posted by slimdave
Sorry for my poor usage. SUM in this context is the result of the query presented not the function SUM in oracle.
Originally Posted by davey23uk
Last edited by newbie; 11-17-2006 at 10:10 PM.
Click Here to Expand Forum to Full Width