<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to display the explain plan of a query using dbms_xplan table funtion?</title>
	<atom:link href="http://oraqa.com/2006/01/16/how-to-display-the-explain-plan-of-a-query-using-dbms_xplan-table-funtion/feed/" rel="self" type="application/rss+xml" />
	<link>http://oraqa.com/2006/01/16/how-to-display-the-explain-plan-of-a-query-using-dbms_xplan-table-funtion/</link>
	<description>Oracle Question and Answer</description>
	<lastBuildDate>Mon, 19 Dec 2011 14:21:07 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: stbu</title>
		<link>http://oraqa.com/2006/01/16/how-to-display-the-explain-plan-of-a-query-using-dbms_xplan-table-funtion/comment-page-1/#comment-113</link>
		<dc:creator>stbu</dc:creator>
		<pubDate>Wed, 08 Feb 2006 20:32:17 +0000</pubDate>
		<guid isPermaLink="false">http://oraqa.com/2006/01/16/how-to-display-the-explain-plan-of-a-query-using-dbms_xplan-table-funtion/#comment-113</guid>
		<description>A new feature of Oracle 10g Release 2 is that
&lt;pre&gt;set autotrace traceonly explain&lt;/pre&gt;
is using DBMS_XPLAN now.

Quote from &lt;i&gt;http://www.oracle.com/technology/oramag/oracle/05-sep/o55asktom.html&lt;/i&gt;

&lt;pre&gt;SQL&gt; set autotrace traceonly explain

SQL&gt; select *
2  from emp, dept
3  where emp.deptno = dept.deptno
4  and emp.job = &#039;CLERK&#039;;


Execution Plan
- - - - - - - - - - - - - - - - -  - -  - - - - - - - - - - - - - - - - - - - - - - - - - - -  - - -


Plan hash value: 877088642
 
- - - - - - - - - - - - - - - - -  - -  - - - - - - - - - - - - - - - - - - - - - - - - - - -  - - -
&#124; Id &#124;   Operation              &#124; Name  &#124; Rows  &#124; Bytes         &#124; Cost (%CPU)           &#124; Time     &#124;
- - - - - - - - - - - - - - - - -  - -  - - - - - - - - - - - - - - - - - - - - - - - - - - -  - - -
&#124;  0 &#124;  SELECT STATEMENT        &#124;       &#124;     4 &#124;   468         &#124;     7     (15)        &#124; 00:00:01 &#124; 
&#124;* 1 &#124;  HASH JOIN               &#124;       &#124;     4 &#124;   468         &#124;     7     (15)        &#124; 00:00:01 &#124;
&#124;* 2 &#124;  TABLE ACCESS FULL       &#124; EMP   &#124;     4 &#124;   348         &#124;     3      (0)        &#124; 00:00:01 &#124;
&#124;  3 &#124;  TABLE ACCESS FULL       &#124; DEPT  &#124;     4 &#124;   120         &#124;     3      (0)        &#124; 00:00:01 &#124;
- - - - - - - - - - - - - - - - -  - -  - - - - - - - - - - - - - - - - - - - - - - - - - - -  - - -
Predicate Information (identified by operation id):
- - - - - - - - - - - - - - - - -  - -  - - - - - - - - - - - - - - - - - - - - - - - - - - -  - - -
   1 - access(&quot;EMP&quot;.&quot;DEPTNO&quot;=&quot;DEPT&quot;.&quot;DEPTNO&quot;)
   2 - filter(&quot;EMP&quot;.&quot;JOB&quot;=&#039;CLERK&#039;)
Note
- - - - - - - - - - - - - - - - -  - -  - - - - - - - - - - - - - - - - - - - - - - - - - - -  - - -
   - dynamic sampling used for this statement&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>A new feature of Oracle 10g Release 2 is that</p>
<pre>set autotrace traceonly explain</pre>
<p>is using DBMS_XPLAN now.</p>
<p>Quote from <i><a href="http://www.oracle.com/technology/oramag/oracle/05-sep/o55asktom.html" rel="nofollow">http://www.oracle.com/technology/oramag/oracle/05-sep/o55asktom.html</a></i></p>
<pre>SQL&gt; set autotrace traceonly explain

SQL&gt; select *
2  from emp, dept
3  where emp.deptno = dept.deptno
4  and emp.job = 'CLERK';

Execution Plan
- - - - - - - - - - - - - - - - -  - -  - - - - - - - - - - - - - - - - - - - - - - - - - - -  - - -

Plan hash value: 877088642

- - - - - - - - - - - - - - - - -  - -  - - - - - - - - - - - - - - - - - - - - - - - - - - -  - - -
| Id |   Operation              | Name  | Rows  | Bytes         | Cost (%CPU)           | Time     |
- - - - - - - - - - - - - - - - -  - -  - - - - - - - - - - - - - - - - - - - - - - - - - - -  - - -
|  0 |  SELECT STATEMENT        |       |     4 |   468         |     7     (15)        | 00:00:01 |
|* 1 |  HASH JOIN               |       |     4 |   468         |     7     (15)        | 00:00:01 |
|* 2 |  TABLE ACCESS FULL       | EMP   |     4 |   348         |     3      (0)        | 00:00:01 |
|  3 |  TABLE ACCESS FULL       | DEPT  |     4 |   120         |     3      (0)        | 00:00:01 |
- - - - - - - - - - - - - - - - -  - -  - - - - - - - - - - - - - - - - - - - - - - - - - - -  - - -
Predicate Information (identified by operation id):
- - - - - - - - - - - - - - - - -  - -  - - - - - - - - - - - - - - - - - - - - - - - - - - -  - - -
   1 - access("EMP"."DEPTNO"="DEPT"."DEPTNO")
   2 - filter("EMP"."JOB"='CLERK')
Note
- - - - - - - - - - - - - - - - -  - -  - - - - - - - - - - - - - - - - - - - - - - - - - - -  - - -
   - dynamic sampling used for this statement</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Aldridge</title>
		<link>http://oraqa.com/2006/01/16/how-to-display-the-explain-plan-of-a-query-using-dbms_xplan-table-funtion/comment-page-1/#comment-20</link>
		<dc:creator>David Aldridge</dc:creator>
		<pubDate>Tue, 17 Jan 2006 05:47:12 +0000</pubDate>
		<guid isPermaLink="false">http://oraqa.com/2006/01/16/how-to-display-the-explain-plan-of-a-query-using-dbms_xplan-table-funtion/#comment-20</guid>
		<description>I could see this as a more general point -- &quot;How to see the execution plan of a query&quot; followed by a list of this technique, &quot;set autotrace ...&quot;, SQL Trace, OEM etc. -- but this is a little _too_ specific for my taste</description>
		<content:encoded><![CDATA[<p>I could see this as a more general point &#8212; &#8220;How to see the execution plan of a query&#8221; followed by a list of this technique, &#8220;set autotrace &#8230;&#8221;, SQL Trace, OEM etc. &#8212; but this is a little _too_ specific for my taste</p>
]]></content:encoded>
	</item>
</channel>
</rss>

