本篇记录一些oracle表访问操作 oracle显示执行计划的存储过程请参考 http://www.linuxidc.com/linux/2013-03/80322.htm (1)tab
首页 → 数据库技术
背景:
阅读新闻
oracle 执行计划之表访问操作
[日期:2013-03-04]来源:linux社区 作者:laoshangxyc[字体:]
本篇记录一些oracle表访问操作
oracle显示执行计划的存储过程请参考
(1)table access full
全表扫表,,使用全表扫描的方式访问表。示例:
sql> exec sql_explain('select * from t1');
plan hash value: 3617692013
--------------------------------------------------------------------------
| id | operation | name | rows | bytes | cost (%cpu)| time |
--------------------------------------------------------------------------
| 0 | select statement | | 10 | 80 | 3 (0)| 00:00:01 |
| 1 | table access full| t1 | 10 | 80 | 3 (0)| 00:00:01 |
--------------------------------------------------------------------------
pl/sql procedure successfully completed.
(2)table access by index rowid
通过索引获得的rowid访问表。示例:
sql> exec sql_explain('select * from t1 where id=1');
plan hash value: 2347959165
-------------------------------------------------------------------------------------
| id | operation | name | rows | bytes | cost (%cpu)| time |
-------------------------------------------------------------------------------------
| 0 | select statement | | 1 | 8 | 1 (0)| 00:00:01 |
| 1 | table access by index rowid| t1 | 1 | 8 | 1 (0)| 00:00:01 |
|* 2 | index unique scan | t1_pk | 1 | | 0 (0)| 00:00:01 |
-------------------------------------------------------------------------------------
predicate information (identified by operation id):
---------------------------------------------------
2 - access(id=1)
pl/sql procedure successfully completed.
0
为快捷显示oracle执行计划创建存储过程
oracle redo 原理
相关资讯 oracle执行计划
图片资讯
oracle 获取执行计划
用二叉树的中序遍历来
本文评论查看全部评论 (0)
评论声明
最新资讯
本周热门
linux公社简介 - 广告服务 - 网站地图 - 帮助信息 - 联系我们
本站(linuxidc)所刊载文章不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。
copyright © 2006-2011 linux公社 all rights reserved 浙icp备06018118号