当前位置:Gxlcms > 数据库问题 > Oracle 查看表空间的大小

Oracle 查看表空间的大小

时间:2021-07-01 10:21:17 帮助过:2人阅读

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;

Oracle 查看表空间的大小

标签:

人气教程排行