http://blog.youkuaiyun.com/vinsonshen/archive/2007/04/24/1577125.aspx
常用SQL查询:
1、查看表空间的名称及大小
select t.tablespace_name, round(sum(bytes/(1024*1024)),0) ts_size
from dba_tablespaces t, dba_data_files d
where t.tablespace_name = d.tablespace_name
group by t.tablespace_name;
2、查看表空间物理文件的名称及大小
select tablespace_name, file_id, file_name,
round(bytes/(1024*1024),0) total_space
from dba_data_files
order by tablespace_name;
常用SQL查询:
更多参见:
http://blog.youkuaiyun.com/vinsonshen/archive/2007/04/24/1577125.aspx
本文提供了两种实用的SQL查询语句:一是用于查看表空间的名称及其大小;二是用于检查表空间物理文件的名称和大小。这些查询对于数据库管理员进行日常维护非常有用。
1609

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



