您现在的位置是:首页
>
查看数据库表空间使用情况 显示表空间的使用情况的SQL语句
显示表空间的使用情况的SQL语句 col t ame format a ju tify c headi g Ta le ace col frag format ju tify c headi

显示表空间的使用情况的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 很赞哦! (1066)