在Oracle 11g中获取实际的执行计划 [英] Getting Actual Execution Plan in Oracle 11g
本文介绍了在Oracle 11g中获取实际的执行计划的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已阅读此帖子和
I have read this post and this excellent article
我的问题是,如何在Oracle 11g中获得正式执行计划
My question is, how to get the acutual execution plan in Oracle 11g
没有系统特权和DBA特权. (您可以将我的情况视为只读用户)
without sys privilege and DBA privilege. (You can treat my case as a READ-ONLY user)
我可以使用TOAD
但是我的理解是解释计划=仅估计执行计划吗?
But my understanding is that explain plan = estimated execution plan only?
基于Oracle文档
由于以下原因,执行计划可能会有所不同:
Execution plans can differ due to the following:
-
-
不同的模式
Different Schemas
-
不同的费用
Different Costs
请给我任何您可以提供的帮助,以清除我的概念.
Please give me any help you can offer to clear my concepts.
推荐答案
如果要使用
dbms_xplan.display_cursor
,则需要您可能还需要V$SQL
来找到SQL_ID
:grant select on sys.v_$sql to larry;
这篇关于在Oracle 11g中获取实际的执行计划的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
-
查看全文