ORACLE查看表占用空間的大小


查詢object的大小,按照降序排序

select  * from user_segments s  where s.BYTES  is not null  order by s.BYTES desc 

 

 

select a.segment_name,

a.segment_type,

a.bytes,

a.bytes / 1024 / 1024 byte_m,

b.created

from dba_segments a

inner join all_objects b

on b.object_type = 'TABLE'

and a.owner = b.owner

and a.segment_name = b.object_name

where a.owner = '用戶名'

and a.segment_type = 'TABLE' /* and a.bytes>50000000*/

order by a.bytes desc;

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM