Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to Identify the used, free and fragmented space of a table including its lob segment?

User_ZB1C4Aug 15 2017 — edited Aug 15 2017

Hello,

I need to identify the fragmented space of a table including its lob segment.

Below query gives me the fragmented size of the table without LOB

select owner,table_name,blocks,num_rows,avg_row_len,round(((blocks*8/1024)),2)||'MB' "TOTAL_SIZE",

round((num_rows*avg_row_len/1024/1024),2)||'Mb' "ACTUAL_SIZE",

round(((blocks*8/1024)-(num_rows*avg_row_len/1024/1024)),2) ||'MB' "FRAGMENTED_SPACE"

from dba_tables

where owner='USR';

How can i find the actual fragmented space of a table (with CLOB)?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 12 2017
Added on Aug 15 2017
3 comments
1,115 views