介绍
DBA_FREE_SPACE视图让我们能够查询数据库中所有表空间的空闲区(区,又叫范围),我们可以使用该视图查询数据库中的表空间剩余可用空间。
注意,该视图仅能查询出当前数据库的剩余可用空间,并不表示表空间只剩下这么多,因为当前空间剩余不足时,如果表空间有可扩展的空间,则会分配扩展空间至空闲区。
视图详情
字段名 | 字段类型 | 描述 | 译 | 备注 |
TABLESPACE_NAME | VARCHAR2(30) | Name of the tablespace containing the extent | 区(范围)所属的表空间名称 | |
FILE_ID | NUMBER | File identifier number of the file containing the extent | 区(范围)所属的文件编号 | |
BLOCK_ID | NUMBER | Starting block number of the extent | 起始块的数量 | |
BYTES | NUMBER | Size of the extent (in bytes) | 区(范围)的大小,以字节(bytes)为单位 | |
BLOCKS | NUMBER | Size of the extent (in Oracle blocks) | 区(范围)的大小,以数据块为单位 | |
RELATIVE_FNO | NUMBER | Relative file number of the file containing the extent | 包含区(范围)的相对文件编号 | 与FILE_ID一致 |
评论区