zhm1985

查询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;

 

 

分类:

技术点:

相关文章:

  • 2021-12-22
  • 2021-12-23
  • 2021-12-13
  • 2021-11-19
  • 2022-12-23
  • 2022-01-02
猜你喜欢
  • 2021-05-27
  • 2022-01-18
  • 2021-12-04
  • 2021-11-29
相关资源
相似解决方案