1.查看所有表空间大小:
Sql代码
select tablespace_name,sum(bytes)/1024/1024 from dba_data_files group by tablespace_name;
2.已经使用的表空间大小:
Sql代码
select tablespace_name,sum(bytes)/1024/1024 from dba_free_space group by tablespace_name;
Sql代码
select tablespace_name,sum(bytes)/1024/1024 from dba_data_files group by tablespace_name;
2.已经使用的表空间大小:
Sql代码
select tablespace_name,sum(bytes)/1024/1024 from dba_free_space group by tablespace_name;
本文介绍如何使用SQL查询语句来查看数据库中所有表空间的大小以及已使用的表空间大小,帮助用户更好地理解并管理数据库资源。
920

被折叠的 条评论
为什么被折叠?



