读书人

ORACLE中查看表空间大小跟未使用表空间

发布时间: 2012-08-01 17:53:40 作者: rapoo

ORACLE中查看表空间大小和未使用表空间大小
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;

读书人网 >其他数据库

热点推荐