您现在的位置是:首页 >

查看数据库表空间使用情况 显示表空间的使用情况的SQL语句

火烧 2023-03-27 05:32:56 1066
显示表空间的使用情况的SQL语句   col t ame format a ju tify c headi g Ta le ace   col frag format ju tify c headi
查看数据库表空间使用情况 显示表空间的使用情况的SQL语句

显示表空间的使用情况的SQL语句  

  col tsname format a justify c heading Tablespace   col nfrags format justify c heading Free|Frags   col mxfrag format justify c heading Largest|Frag (KB)   col totsiz format justify c heading Total|(KB)   col avasiz format justify c heading Available|(KB)   col pctusd format justify c heading Pct|Used   select   total tablespace_name tsname   count(free bytes) nfrags   nvl(max(free bytes)/ ) mxfrag   total bytes/ totsiz   nvl(sum(free bytes)/ ) avasiz   ( nvl(sum(free bytes) )/total bytes)* pctusd   from   dba_data_files total   dba_free_space free   where   total tablespace_name = free tablespace_name(+)   group by   total tablespace_name   total bytes; lishixinzhi/Article/program/Oracle/201311/18135  
永远跟党走
  • 如果你觉得本站很棒,可以通过扫码支付打赏哦!

    • 微信收款码
    • 支付宝收款码