ORACLE表空间使用情况
SQL
SELECT a.tablespace_name, round(a.bytes / 1024 / 1024, 2) "TOTAL (M)",
round(b.bytes / 1024 / 1024, 2) "USED (M)", round(c.bytes / 1024 / 1024, 2) "FREE (M)",
round((b.bytes * 100) / a.bytes, 2) "% USED ", round((c.bytes * 100) / a.bytes, 2) "% 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;
查询结果