Oracle - How do I get the actual size of a specific ROW?

danboh picture danboh · May 3, 2011 · Viewed 50k times · Source

Is this possible? Or at least I'm looking to have a list of the size of all rows in a table.

Answer

bpgergo picture bpgergo · May 3, 2011
select vsize(col1) + vsize(col2) + vsize(col3) + 
long_raw_length_function(long_col) + DBMS_LOB.GETLENGTH(blob_col) 
from table 
where id_col = id_val;

for the long_raw_length_function, see this Get the LENGTH of a LONG RAW