计算指定表的数据与索引所占用硬盘大小

 

--计算指定表的数据与索引大小:


select segment_name,segment_type,bytes/1024/1024 MB,blocks*8/1024 MB from user_segments
where
segment_name = 'T_MESSAGE_INFO'
or
segment_name in (select index_name from user_indexes where table_name = 'T_MESSAGE_INFO')

 

 

你可能感兴趣的:(索引)