Quantcast
Channel: Administration Archives - Oracle CKPT
Viewing all articles
Browse latest Browse all 60

Table Fragmentation

$
0
0

Table Fragmentation To get Actual, Optimal, Reclaimable Size from the tables of a specific user. set linesize 200 trimspool on col owner for a22 col table_name for a30 col tablespace_name for a20 select t.owner,t.table_name, s.tablespace_name, round(s.bytes/1024/1024) actual_MB, round((t.num_rows+1) * t.avg_row_len/1024/1024) optimal_MB, round(s.bytes/1024/1024) - round((t.num_rows+1) * t.avg_row_len/1024/1024) CLAIMABLE_MB from dba_tables t, dba_segments s where t.owner =

The post Table Fragmentation appeared first on www.ORACLE-CKPT.com.


Viewing all articles
Browse latest Browse all 60

Trending Articles