ITPub博客

首页 > 数据库 > Oracle > dba_tables 和 dba_segments 表中 blocks 的区别

dba_tables 和 dba_segments 表中 blocks 的区别

原创 Oracle 作者:不一样的天空w 时间:2017-07-18 17:06:38 0 删除 编辑

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/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2016-09-22

  • 博文量
    916
  • 访问量
    1409314