close

 

 

查看user下的表各種狀態

*****************************

select *
from user_segments 
where segment_type = 'TABLE'; 


或者
 Select Segment_Name,Sum(bytes)/1024/1024 From User_Extents Group By Segment_Name

查看表實際使用空間:

******************

analyze table emp compute statistics; 
select num_rows * avg_row_len 
from user_tables 

where table_name = 'EMP';

 

*表空間預設 block單位為8192 bytes(8K,1 Kilobyte (KB) = 1024 Bytes) (可改 2K 8K 16K..)

*一張表 預設一個extents(8個blocks)

arrow
arrow
    全站熱搜

    to52016 發表在 痞客邦 留言(0) 人氣()