手机版
你好,游客 登录 注册
背景:
阅读新闻

Oracle构建索引index后table的10046数据块读取测试

[日期:2013-03-17] 来源:Linux社区  作者:wisdomone1 [字体:大 中 小]

逻辑读为2,我分析因为分子块和叶子块各为两次;故为2;如果索引的高度增高,这样逻辑读次数就会变大了;所以重构索引很重要
SQL> /


Execution Plan
----------------------------------------------------------
Plan hash value: 1976055679

--------------------------------------------------------------------------------

--

| Id  | Operation        | Name        | Rows  | Bytes | Cost (%CPU)| Time
 |

--------------------------------------------------------------------------------

--

|  0 | SELECT STATEMENT  |              |    1 |    13 |    1  (0)| 00:00:01

 |

|  1 |  SORT AGGREGATE  |              |    1 |    13 |            |
 |

|*  2 |  INDEX RANGE SCAN| IDX_T_DETAIL |    1 |    13 |    1  (0)| 00:00:01

 |

--------------------------------------------------------------------------------

--


Predicate Information (identified by operation id):
---------------------------------------------------

  2 - access("A"=2000)

Note
-----
  - dynamic sampling used for this statement (level=2)


Statistics
----------------------------------------------------------
          0  recursive calls
          0  db block gets
          2  consistent gets
          0  physical reads
          0  redo size
        544  bytes sent via SQL*Net to client
        523  bytes received via SQL*Net from client
          2  SQL*Net roundtrips to/from client
          0  sorts (memory)
          0  sorts (disk)
          1  rows processed

更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12

linux
相关资讯       Oracle索引 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款