- 论坛徽章:
- 0
|
本帖最后由 194986 于 2013-11-04 15:36 编辑
dba_data_files里的blocks里可以找到USERS表空间的总block数。
select tablespace_name,blocks from dba_data_files where tablespace_name='USERS'; 设为A
dba_free_space里的blocks是USERS表空间剩余的block数。
select tablespace_name,blocks from dba_free_space where tablespace_name='USERS';设为B
那A-B是不是就是已使用的USERS表空间的block?
表空间又是由segments组成,那按理说
select tablespace_name,sum(blocks) from dba_segments where tablespace_name='USERS' group by tablespace_name;
查出来的block数会等于A-B的值啊。。。为什么不等。。。
那dba_segments中的blocks到底有什么意义?? |
|