Dba_Segments .blocks = Dba_Tables.Blocks+Dba_Tables.Empty_Blocks +1(segment header block)
这个多加的1是,是segment header block.
如果查询的结果不是这样,可能是你没有分析表。 不妨分析表之后在查一下看看。
这两张表对blocks 的定义也不一样:
DBA_SEGMENTS.BLOCKS holds the total number of blocks allocated to the table.
USER_TABLES.BLOCKS holds the total number of blocks allocated for data.
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/31397003/viewspace-2142255/ ,如需转载,请注明出处,否则将追究法律责任。