当前位置: 代码迷 >> SQL >> Oracle SQL语句记要
  详细解决方案

Oracle SQL语句记要

热度:186   发布时间:2016-05-05 09:41:20.0
Oracle SQL语句记录

1、oracel 查看表空间使用情况。

SELECT SUM(bytes) / (1024 * 1024) AS free_space, tablespace_name FROM dba_free_space GROUP BY tablespace_name;
SELECT a.tablespace_name, a.bytes total, b.bytes used, c.bytes free, (b.bytes * 100) / a.bytes "% USED ", (c.bytes * 100) / a.bytes "% FREE " FROM sys.sm$ts_avail a, sys.sm$ts_used b, sys.sm$ts_free c WHERE a.tablespace_name = b.tablespace_name AND a.tablespace_name = c.tablespace_name;
  相关解决方案