Oracle 查询表空间使用情况
2013-10-17 14:22
489 查看
摘自博客:http://wwwdd2315.blog.163.com/blog/static/66661889201182711442660/
感谢!
通过查询dba_free_space表可以了解一个tablespace的空间使用情况。
TABLESPACE_NAME:
Name of the tablespace containing the extent
FILE_ID:
ID number of the file containing the extent
BLOCK_ID:
Starting block number of the extent
BYTES:
Size of the extent in bytes
BLOCKS:
Size of the extent in ORACLE block
1。查询表空间的free space
Sql代码
SQL> select
2 tablespace_name,
3 count(*) as extends,
4 round(sum(bytes)/1024/1024, 2) as MB,
5 sum(blocks) as blocks
6 from dba_free_space group by tablespace_name;
TABLESPACE EXTENDS MB BLOCKS
---------- ---------- ---------- ----------
UNDOTBS1 16 771.69 49388
SYSAUX 46 8.44 540
BLOBS 375 805.63 51560
USERS 645 67.69 4332
SYSTEM 1 4.75 304
INDX 1871 1071.56 68580
WCAUDIT 1 499.94 31996
感谢!
通过查询dba_free_space表可以了解一个tablespace的空间使用情况。
TABLESPACE_NAME:
Name of the tablespace containing the extent
FILE_ID:
ID number of the file containing the extent
BLOCK_ID:
Starting block number of the extent
BYTES:
Size of the extent in bytes
BLOCKS:
Size of the extent in ORACLE block
1。查询表空间的free space
Sql代码
SQL> select
2 tablespace_name,
3 count(*) as extends,
4 round(sum(bytes)/1024/1024, 2) as MB,
5 sum(blocks) as blocks
6 from dba_free_space group by tablespace_name;
TABLESPACE EXTENDS MB BLOCKS
---------- ---------- ---------- ----------
UNDOTBS1 16 771.69 49388
SYSAUX 46 8.44 540
BLOBS 375 805.63 51560
USERS 645 67.69 4332
SYSTEM 1 4.75 304
INDX 1871 1071.56 68580
WCAUDIT 1 499.94 31996
相关文章推荐
- Oracle查询表空间使用情况
- Oracle查询表空间使用情况
- Oracle 查询表空间使用情况SQL
- Oracle查询表空间使用情况
- ORACLE ASM中查询表空间使用情况、数据文件路径、裸设备磁盘总大小剩余大小
- Oracle查询表空间使用情况
- Oracle查询表空间使用情况&扩充表空间大小
- oracle 查询表空间使用情况
- Oracle查询索引碎片及数据表空间使用情况
- Oracle查询表空间使用情况
- Oracle查询表空间使用情况
- Oracle查询表空间使用情况
- Oracle查询表空间使用情况(经典篇)
- Oracle查询表空间使用情况
- oracle查询表空间使用情况
- Oracle查询表空间使用情况
- Oracle查询表空间使用情况以及其他查询
- Oracle 查询表空间使用情况(转)
- Oracle查询表空间使用情况
- oracle关于查询空间使用情况的几个sql语句