你好,游客 登录 注册 搜索
背景:
阅读新闻

Oracle是如何进行全表扫描实验

[日期:2012-10-25] 来源:Linux社区  作者:guogang [字体:大 中 小]

第二次实验:

SQL> select count(1) from test;
  COUNT(1)
----------
    51255
第二次实验查看10046文件:

EXEC #1:c=0,e=39,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,tim=3795357981
WAIT #1: nam='SQL*Net message to client' ela= 0 driver id=1413697536 #bytes=1 p3=0 obj#=95737 tim=3795358011
WAIT #1: nam='SQL*Net message from client' ela= 87 driver id=1413697536 #bytes=1 p3=0 obj#=95737 tim=3795358132
WAIT #1: nam='SQL*Net message to client' ela= 2 driver id=1413697536 #bytes=1 p3=0 obj#=95737 tim=3795363085
FETCH #1:c=0,e=4976,p=0,cr=709,cu=0,mis=0,r=1,dep=0,og=1,tim=3795363141
WAIT #1: nam='SQL*Net message from client' ela= 41357 driver id=1413697536 #bytes=1 p3=0 obj#=95737 tim=3795404560
STAT #1 id=1 cnt=1 pid=0 pos=1 obj=0 op='SORT AGGREGATE (cr=709 pr=0 pw=0 time=4918 us)'
STAT #1 id=2 cnt=51255 pid=1 pos=1 obj=95737 op='TABLE ACCESS FULL TEST (cr=709 pr=0 pw=0 time=35 us)'

linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

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