<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: dbms_xplan in 10g</title>
	<atom:link href="http://jonathanlewis.wordpress.com/2006/11/09/dbms_xplan-in-10g/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonathanlewis.wordpress.com/2006/11/09/dbms_xplan-in-10g/</link>
	<description>Just another Oracle weblog</description>
	<lastBuildDate>Fri, 24 May 2013 13:27:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2006/11/09/dbms_xplan-in-10g/#comment-37667</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Mon, 08 Nov 2010 18:26:53 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2006/11/09/dbms_xplan-in-10g/#comment-37667</guid>
		<description><![CDATA[Abhinav,

Consider this analogy:

It takes 67 minutes to drive from Heathrow to Gatwick when travelling at the legal limit during off-peak hours. During peak periods in bad weather it can take more than two hours; at 3 a.m. on a clear night and driving dangerously all the way it takes 42 minutes.

How long does it take to drive from Heathrow to Gatwick - you are only allowed to give me one answer in minutes ?

Oracle has a model - it is rarely a perfect match for the real world.]]></description>
		<content:encoded><![CDATA[<p>Abhinav,</p>
<p>Consider this analogy:</p>
<p>It takes 67 minutes to drive from Heathrow to Gatwick when travelling at the legal limit during off-peak hours. During peak periods in bad weather it can take more than two hours; at 3 a.m. on a clear night and driving dangerously all the way it takes 42 minutes.</p>
<p>How long does it take to drive from Heathrow to Gatwick &#8211; you are only allowed to give me one answer in minutes ?</p>
<p>Oracle has a model &#8211; it is rarely a perfect match for the real world.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abhinav</title>
		<link>http://jonathanlewis.wordpress.com/2006/11/09/dbms_xplan-in-10g/#comment-37662</link>
		<dc:creator><![CDATA[abhinav]]></dc:creator>
		<pubDate>Thu, 04 Nov 2010 21:16:23 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2006/11/09/dbms_xplan-in-10g/#comment-37662</guid>
		<description><![CDATA[the below query took 34 min, but why the execution  plan is showing different timings, stats are upto date on the tables::::
[sourcecode]
PLAN_TABLE_OUTPUT
Plan hash value: 1046889487
 
----------------------------------------------------------------------------------------------------------------------
&#124; Id  &#124; Operation                    &#124; Name             &#124; Rows  &#124; Cost (%CPU)&#124; Time     &#124;    TQ  &#124;IN-OUT&#124; PQ Distrib &#124;
----------------------------------------------------------------------------------------------------------------------
&#124;   0 &#124; SELECT STATEMENT             &#124;                  &#124;  2758K&#124;   607K  (1)&#124; 02:01:30 &#124;        &#124;      &#124;            &#124;
&#124;   1 &#124;  PX COORDINATOR              &#124;                  &#124;       &#124;            &#124;          &#124;        &#124;      &#124;            &#124;
&#124;   2 &#124;   PX SEND QC (RANDOM)        &#124; :TQ10002         &#124;  2758K&#124;   607K  (1)&#124; 02:01:30 &#124;  Q1,02 &#124; P-&gt;S &#124; QC (RAND)  &#124;
&#124;*  3 &#124;    HASH JOIN                 &#124;                  &#124;  2758K&#124;   607K  (1)&#124; 02:01:30 &#124;  Q1,02 &#124; PCWP &#124;            &#124;
&#124;   4 &#124;     PX RECEIVE               &#124;                  &#124;  2758K&#124; 44053   (2)&#124; 00:08:49 &#124;  Q1,02 &#124; PCWP &#124;            &#124;
&#124;   5 &#124;      PX SEND HASH            &#124; :TQ10001         &#124;  2758K&#124; 44053   (2)&#124; 00:08:49 &#124;  Q1,01 &#124; P-&gt;P &#124; HASH       &#124;
&#124;   6 &#124;       PX BLOCK ITERATOR      &#124;                  &#124;  2758K&#124; 44053   (2)&#124; 00:08:49 &#124;  Q1,01 &#124; PCWC &#124;            &#124;
&#124;*  7 &#124;        TABLE ACCESS FULL     &#124; OI_PAYMENT       &#124;  2758K&#124; 44053   (2)&#124; 00:08:49 &#124;  Q1,01 &#124; PCWP &#124;            &#124;
&#124;   8 &#124;     BUFFER SORT              &#124;                  &#124;       &#124;            &#124;          &#124;  Q1,02 &#124; PCWC &#124;            &#124;
&#124;   9 &#124;      PX RECEIVE              &#124;                  &#124;    31M&#124;   563K  (1)&#124; 01:52:41 &#124;  Q1,02 &#124; PCWP &#124;            &#124;
&#124;  10 &#124;       PX SEND HASH           &#124; :TQ10000         &#124;    31M&#124;   563K  (1)&#124; 01:52:41 &#124;        &#124; S-&gt;P &#124; HASH       &#124;
&#124;* 11 &#124;        VIEW                  &#124; index$_join$_003 &#124;    31M&#124;   563K  (1)&#124; 01:52:41 &#124;        &#124;      &#124;            &#124;
&#124;* 12 &#124;         HASH JOIN            &#124;                  &#124;       &#124;            &#124;          &#124;        &#124;      &#124;            &#124;
&#124;  13 &#124;          INLIST ITERATOR     &#124;                  &#124;       &#124;            &#124;          &#124;        &#124;      &#124;            &#124;
&#124;* 14 &#124;           INDEX RANGE SCAN   &#124; TC_OICASE1       &#124;    31M&#124;   505M (87)&#124;999:59:59 &#124;        &#124;      &#124;            &#124;
&#124;  15 &#124;          INDEX FAST FULL SCAN&#124; PK_OI_CASE       &#124;    31M&#124;   369K  (1)&#124; 01:13:59 &#124;        &#124;      &#124;            &#124;
----------------------------------------------------------------------------------------------------------------------
 
Predicate Information (identified by operation id):
---------------------------------------------------
 
   3 - access(&quot;OI_PAYMENT&quot;.&quot;ACCOUNTNUMBER&quot;=&quot;OI_CASE&quot;.&quot;ACCOUNTNUMBER&quot;)
   7 - filter(&quot;OI_PAYMENT&quot;.&quot;DATEOFRECORD&quot;&gt;=TO_DATE(&#039; 2010-10-26 05:00:00&#039;, &#039;syyyy-mm-dd hh24:mi:ss&#039;) AND 
              &quot;OI_PAYMENT&quot;.&quot;DATEOFRECORD&quot;&lt;TO_DATE(&#039; 2010-10-29 04:53:00&#039;, &#039;syyyy-mm-dd hh24:mi:ss&#039;))
  11 - filter(&quot;CCI&quot;=&#039;1&#039; OR &quot;CCI&quot;=&#039;2&#039;)
  12 - access(ROWID=ROWID)
  14 - access(&quot;CCI&quot;=&#039;1&#039; OR &quot;CCI&quot;=&#039;2&#039;)
[/sourcecode]]]></description>
		<content:encoded><![CDATA[<p>the below query took 34 min, but why the execution  plan is showing different timings, stats are upto date on the tables::::</p>
<pre class="brush: plain; title: ; notranslate">
PLAN_TABLE_OUTPUT
Plan hash value: 1046889487
 
----------------------------------------------------------------------------------------------------------------------
| Id  | Operation                    | Name             | Rows  | Cost (%CPU)| Time     |    TQ  |IN-OUT| PQ Distrib |
----------------------------------------------------------------------------------------------------------------------
|   0 | SELECT STATEMENT             |                  |  2758K|   607K  (1)| 02:01:30 |        |      |            |
|   1 |  PX COORDINATOR              |                  |       |            |          |        |      |            |
|   2 |   PX SEND QC (RANDOM)        | :TQ10002         |  2758K|   607K  (1)| 02:01:30 |  Q1,02 | P-&amp;gt;S | QC (RAND)  |
|*  3 |    HASH JOIN                 |                  |  2758K|   607K  (1)| 02:01:30 |  Q1,02 | PCWP |            |
|   4 |     PX RECEIVE               |                  |  2758K| 44053   (2)| 00:08:49 |  Q1,02 | PCWP |            |
|   5 |      PX SEND HASH            | :TQ10001         |  2758K| 44053   (2)| 00:08:49 |  Q1,01 | P-&amp;gt;P | HASH       |
|   6 |       PX BLOCK ITERATOR      |                  |  2758K| 44053   (2)| 00:08:49 |  Q1,01 | PCWC |            |
|*  7 |        TABLE ACCESS FULL     | OI_PAYMENT       |  2758K| 44053   (2)| 00:08:49 |  Q1,01 | PCWP |            |
|   8 |     BUFFER SORT              |                  |       |            |          |  Q1,02 | PCWC |            |
|   9 |      PX RECEIVE              |                  |    31M|   563K  (1)| 01:52:41 |  Q1,02 | PCWP |            |
|  10 |       PX SEND HASH           | :TQ10000         |    31M|   563K  (1)| 01:52:41 |        | S-&amp;gt;P | HASH       |
|* 11 |        VIEW                  | index$_join$_003 |    31M|   563K  (1)| 01:52:41 |        |      |            |
|* 12 |         HASH JOIN            |                  |       |            |          |        |      |            |
|  13 |          INLIST ITERATOR     |                  |       |            |          |        |      |            |
|* 14 |           INDEX RANGE SCAN   | TC_OICASE1       |    31M|   505M (87)|999:59:59 |        |      |            |
|  15 |          INDEX FAST FULL SCAN| PK_OI_CASE       |    31M|   369K  (1)| 01:13:59 |        |      |            |
----------------------------------------------------------------------------------------------------------------------
 
Predicate Information (identified by operation id):
---------------------------------------------------
 
   3 - access(&quot;OI_PAYMENT&quot;.&quot;ACCOUNTNUMBER&quot;=&quot;OI_CASE&quot;.&quot;ACCOUNTNUMBER&quot;)
   7 - filter(&quot;OI_PAYMENT&quot;.&quot;DATEOFRECORD&quot;&amp;gt;=TO_DATE(' 2010-10-26 05:00:00', 'syyyy-mm-dd hh24:mi:ss') AND 
              &quot;OI_PAYMENT&quot;.&quot;DATEOFRECORD&quot;&amp;lt;TO_DATE(' 2010-10-29 04:53:00', 'syyyy-mm-dd hh24:mi:ss'))
  11 - filter(&amp;quot;CCI&amp;quot;='1' OR &amp;quot;CCI&amp;quot;='2')
  12 - access(ROWID=ROWID)
  14 - access(&amp;quot;CCI&amp;quot;='1' OR &amp;quot;CCI&amp;quot;='2')
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kyle Hailey</title>
		<link>http://jonathanlewis.wordpress.com/2006/11/09/dbms_xplan-in-10g/#comment-36366</link>
		<dc:creator><![CDATA[Kyle Hailey]]></dc:creator>
		<pubDate>Sun, 30 May 2010 12:42:03 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2006/11/09/dbms_xplan-in-10g/#comment-36366</guid>
		<description><![CDATA[For a minute or two this confused me

&gt;&gt;The estimated values are estimates for each execution of a rowsource, the actual values are the cumulative counts.

Then I realized you meant &quot;cumulative&quot; across the loops of that line. When I think cumulative, I think the columns
   cr_buffer_gets
   cu_buffer_gets
   disk_reads 
   disk_writes
   elapsed_time
which are cumulative across the children, ie the parent rows include the sum of the children, which makes it hard to scan for say which line we spent the most time on.
Ex:
[sourcecode]
-----------------------------------------------------------
&#124;Operation                  &#124;Starts&#124;E-Rows&#124;A-Rows&#124; A-Time &#124;
-----------------------------------------------------------
&#124;HASH GROUP BY              &#124;    1 &#124;    1 &#124;    1 &#124;0:04.13 &#124;
&#124; FILTER                    &#124;    1 &#124;      &#124; 1909 &#124;0:04.12 &#124;
&#124;  HASH JOIN                &#124;    1 &#124;  406 &#124; 3413 &#124;0:03.95 &#124;
&#124;   TABLE ACCESS FULL       &#124;    1 &#124;   15 &#124;   15 &#124;0:00.01 &#124;
&#124;   HASH JOIN               &#124;    1 &#124;  812 &#124; 3413 &#124;0:03.90 &#124;
&#124;    TABLE ACCESS BY INDEX R&#124;    1 &#124;    5 &#124;    1 &#124;0:00.01 &#124;
&#124;     INDEX RANGE SCAN      &#124;    1 &#124;    5 &#124;    1 &#124;0:00.01 &#124;
&#124;    HASH JOIN              &#124;    1 &#124;28213 &#124;  111K&#124;0:03.12 &#124;
&#124;     HASH JOIN             &#124;    1 &#124;27456 &#124;  115K&#124;0:01.58 &#124;
&#124;      TABLE ACCESS FULL    &#124;    1 &#124;13679 &#124;13679 &#124;0:00.03 &#124;
&#124;      TABLE ACCESS FULL    &#124;    1 &#124;27456 &#124;  122K&#124;0:00.37 &#124;
&#124;     TABLE ACCESS FULL     &#124;    1 &#124;40000 &#124;40000 &#124;0:00.12 &#124;
&#124;  SORT AGGREGATE           &#124; 1831 &#124;    1 &#124; 1831 &#124;0:00.07 &#124;
&#124;   FIRST ROW               &#124; 1831 &#124;    1 &#124; 1617 &#124;0:00.04 &#124;
&#124;    INDEX RANGE SCAN (MIN/M&#124; 1831 &#124;    1 &#124; 1617 &#124;0:00.02 &#124;
&#124;     SORT AGGREGATE        &#124; 1593 &#124;    1 &#124; 1593 &#124;0:00.06 &#124;
&#124;      FIRST ROW            &#124; 1593 &#124;    1 &#124; 1593 &#124;0:00.04 &#124;
&#124;       INDEX RANGE SCAN (MI&#124; 1593 &#124;    1 &#124; 1593 &#124;0:00.02 &#124;
[/sourcecode]
Which it makes it easy to see that the &quot;A-time&quot; includes the sum of the time for the children, ie the cumulative time of the children. Put a script up to show Wolfgang&#039;s TCF ratios and Christian Antognini&#039;s LIO per row as well as the per row elapsed time: http://sites.google.com/site/embtdbo/tuner/oracle-tcf-query-and-lios-per-row]]></description>
		<content:encoded><![CDATA[<p>For a minute or two this confused me</p>
<p>&gt;&gt;The estimated values are estimates for each execution of a rowsource, the actual values are the cumulative counts.</p>
<p>Then I realized you meant &#8220;cumulative&#8221; across the loops of that line. When I think cumulative, I think the columns<br />
   cr_buffer_gets<br />
   cu_buffer_gets<br />
   disk_reads<br />
   disk_writes<br />
   elapsed_time<br />
which are cumulative across the children, ie the parent rows include the sum of the children, which makes it hard to scan for say which line we spent the most time on.<br />
Ex:</p>
<pre class="brush: plain; title: ; notranslate">
-----------------------------------------------------------
|Operation                  |Starts|E-Rows|A-Rows| A-Time |
-----------------------------------------------------------
|HASH GROUP BY              |    1 |    1 |    1 |0:04.13 |
| FILTER                    |    1 |      | 1909 |0:04.12 |
|  HASH JOIN                |    1 |  406 | 3413 |0:03.95 |
|   TABLE ACCESS FULL       |    1 |   15 |   15 |0:00.01 |
|   HASH JOIN               |    1 |  812 | 3413 |0:03.90 |
|    TABLE ACCESS BY INDEX R|    1 |    5 |    1 |0:00.01 |
|     INDEX RANGE SCAN      |    1 |    5 |    1 |0:00.01 |
|    HASH JOIN              |    1 |28213 |  111K|0:03.12 |
|     HASH JOIN             |    1 |27456 |  115K|0:01.58 |
|      TABLE ACCESS FULL    |    1 |13679 |13679 |0:00.03 |
|      TABLE ACCESS FULL    |    1 |27456 |  122K|0:00.37 |
|     TABLE ACCESS FULL     |    1 |40000 |40000 |0:00.12 |
|  SORT AGGREGATE           | 1831 |    1 | 1831 |0:00.07 |
|   FIRST ROW               | 1831 |    1 | 1617 |0:00.04 |
|    INDEX RANGE SCAN (MIN/M| 1831 |    1 | 1617 |0:00.02 |
|     SORT AGGREGATE        | 1593 |    1 | 1593 |0:00.06 |
|      FIRST ROW            | 1593 |    1 | 1593 |0:00.04 |
|       INDEX RANGE SCAN (MI| 1593 |    1 | 1593 |0:00.02 |
</pre>
<p>Which it makes it easy to see that the &#8220;A-time&#8221; includes the sum of the time for the children, ie the cumulative time of the children. Put a script up to show Wolfgang&#8217;s TCF ratios and Christian Antognini&#8217;s LIO per row as well as the per row elapsed time: <a href="http://sites.google.com/site/embtdbo/tuner/oracle-tcf-query-and-lios-per-row" rel="nofollow">http://sites.google.com/site/embtdbo/tuner/oracle-tcf-query-and-lios-per-row</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2006/11/09/dbms_xplan-in-10g/#comment-35905</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Fri, 26 Mar 2010 21:50:04 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2006/11/09/dbms_xplan-in-10g/#comment-35905</guid>
		<description><![CDATA[Starts * E-rows can only match A-rows where the optimizer has predicted the cardinality correctly.

The first place (in order of execution) where the values are significantly different from each other is the first place where something is likely to be going wrong.

In your case the first execution step is the index skip scan of S_ORG_EXT_M61 at line 27 where Oracle predicts one row and find 509,000.

Notice that the 509,000 rows drops to 120 thanks to the access into S_ORG_BU at line 34. This suggests that it &lt;i&gt;may&lt;/i&gt; be possible to find a different join order that avoids collecting 509,000 rows. 

Note, as a general rule, OUTER JOINs will never eliminate data from the accumulated data set, so it&#039;s nice to postpone the nested loop outer joins until AFTER the &quot;inner&quot; joins that have managed to eliminate lots of data.]]></description>
		<content:encoded><![CDATA[<p>Starts * E-rows can only match A-rows where the optimizer has predicted the cardinality correctly.</p>
<p>The first place (in order of execution) where the values are significantly different from each other is the first place where something is likely to be going wrong.</p>
<p>In your case the first execution step is the index skip scan of S_ORG_EXT_M61 at line 27 where Oracle predicts one row and find 509,000.</p>
<p>Notice that the 509,000 rows drops to 120 thanks to the access into S_ORG_BU at line 34. This suggests that it <i>may</i> be possible to find a different join order that avoids collecting 509,000 rows. </p>
<p>Note, as a general rule, OUTER JOINs will never eliminate data from the accumulated data set, so it&#8217;s nice to postpone the nested loop outer joins until AFTER the &#8220;inner&#8221; joins that have managed to eliminate lots of data.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://jonathanlewis.wordpress.com/2006/11/09/dbms_xplan-in-10g/#comment-35882</link>
		<dc:creator><![CDATA[Frank]]></dc:creator>
		<pubDate>Thu, 25 Mar 2010 22:29:54 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2006/11/09/dbms_xplan-in-10g/#comment-35882</guid>
		<description><![CDATA[Continuation from previous post ...

From line #4 to #39, could you shed some light why Starts * E-Rows is not equal to A-Rows? Is it a potential stats related issue?

Appreciate it!]]></description>
		<content:encoded><![CDATA[<p>Continuation from previous post &#8230;</p>
<p>From line #4 to #39, could you shed some light why Starts * E-Rows is not equal to A-Rows? Is it a potential stats related issue?</p>
<p>Appreciate it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://jonathanlewis.wordpress.com/2006/11/09/dbms_xplan-in-10g/#comment-35881</link>
		<dc:creator><![CDATA[Frank]]></dc:creator>
		<pubDate>Thu, 25 Mar 2010 22:19:50 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2006/11/09/dbms_xplan-in-10g/#comment-35881</guid>
		<description><![CDATA[Jonathan, your blog is so vital to help me get the insight of Oracle. Sorry for the long output. Did you anything wrong this explain plan? and why?

[sourcecode]
----------------------------------------------------------------------------------------------------------------------------------------------
&#124; Id  &#124; Operation                                            &#124; Name               &#124; Starts &#124; E-Rows &#124; A-Rows &#124;   A-Time   &#124; Buffers &#124; Reads  &#124;
----------------------------------------------------------------------------------------------------------------------------------------------
&#124;   1 &#124;  NESTED LOOPS OUTER                                  &#124;                    &#124;      1 &#124;      1 &#124;     65 &#124;00:02:48.23 &#124;    3122K&#124;    128K&#124;
&#124;   2 &#124;   NESTED LOOPS OUTER                                 &#124;                    &#124;      1 &#124;      1 &#124;     65 &#124;00:02:48.23 &#124;    3121K&#124;    128K&#124;
&#124;   3 &#124;    NESTED LOOPS OUTER                                &#124;                    &#124;      1 &#124;      1 &#124;     65 &#124;00:02:48.23 &#124;    3121K&#124;    128K&#124;
&#124;   4 &#124;     NESTED LOOPS OUTER                               &#124;                    &#124;      1 &#124;      1 &#124;     65 &#124;00:02:48.23 &#124;    3121K&#124;    128K&#124;
&#124;   5 &#124;      NESTED LOOPS OUTER                              &#124;                    &#124;      1 &#124;      1 &#124;     65 &#124;00:02:48.22 &#124;    3121K&#124;    128K&#124;
&#124;   6 &#124;       NESTED LOOPS                                   &#124;                    &#124;      1 &#124;      1 &#124;     65 &#124;00:02:47.80 &#124;    3121K&#124;    128K&#124;
&#124;   7 &#124;        NESTED LOOPS OUTER                            &#124;                    &#124;      1 &#124;      1 &#124;     65 &#124;00:02:47.80 &#124;    3120K&#124;    128K&#124;
&#124;   8 &#124;         NESTED LOOPS OUTER                           &#124;                    &#124;      1 &#124;      1 &#124;     65 &#124;00:02:47.80 &#124;    3120K&#124;    128K&#124;
&#124;   9 &#124;          NESTED LOOPS                                &#124;                    &#124;      1 &#124;      1 &#124;     65 &#124;00:02:47.80 &#124;    3120K&#124;    128K&#124;
&#124;  10 &#124;           NESTED LOOPS                               &#124;                    &#124;      1 &#124;      1 &#124;     65 &#124;00:02:47.13 &#124;    3120K&#124;    128K&#124;
&#124;  11 &#124;            NESTED LOOPS OUTER                        &#124;                    &#124;      1 &#124;      1 &#124;     65 &#124;00:02:47.13 &#124;    3120K&#124;    128K&#124;
&#124;  12 &#124;             NESTED LOOPS OUTER                       &#124;                    &#124;      1 &#124;      1 &#124;     65 &#124;00:02:47.12 &#124;    3120K&#124;    128K&#124;
&#124;  13 &#124;              NESTED LOOPS OUTER                      &#124;                    &#124;      1 &#124;      1 &#124;     65 &#124;00:02:47.12 &#124;    3120K&#124;    128K&#124;
&#124;  14 &#124;               NESTED LOOPS                           &#124;                    &#124;      1 &#124;      1 &#124;     65 &#124;00:02:47.12 &#124;    3120K&#124;    128K&#124;
&#124;  15 &#124;                NESTED LOOPS OUTER                    &#124;                    &#124;      1 &#124;      1 &#124;     65 &#124;00:02:46.67 &#124;    3119K&#124;    128K&#124;
&#124;  16 &#124;                 NESTED LOOPS OUTER                   &#124;                    &#124;      1 &#124;      1 &#124;     65 &#124;00:02:46.67 &#124;    3119K&#124;    128K&#124;
&#124;  17 &#124;                  NESTED LOOPS OUTER                  &#124;                    &#124;      1 &#124;      1 &#124;     65 &#124;00:02:46.67 &#124;    3119K&#124;    128K&#124;
&#124;  18 &#124;                   NESTED LOOPS OUTER                 &#124;                    &#124;      1 &#124;      1 &#124;     65 &#124;00:02:46.66 &#124;    3119K&#124;    128K&#124;
&#124;  19 &#124;                    NESTED LOOPS OUTER                &#124;                    &#124;      1 &#124;      1 &#124;     65 &#124;00:02:46.09 &#124;    3119K&#124;    128K&#124;
&#124;  20 &#124;                     NESTED LOOPS                     &#124;                    &#124;      1 &#124;      1 &#124;     65 &#124;00:02:46.08 &#124;    3118K&#124;    128K&#124;
&#124;  21 &#124;                      NESTED LOOPS                    &#124;                    &#124;      1 &#124;      1 &#124;     65 &#124;00:02:45.90 &#124;    3118K&#124;    127K&#124;
&#124;  22 &#124;                       NESTED LOOPS                   &#124;                    &#124;      1 &#124;      1 &#124;    120 &#124;00:02:45.89 &#124;    3118K&#124;    127K&#124;
&#124;  23 &#124;                        NESTED LOOPS OUTER            &#124;                    &#124;      1 &#124;      1 &#124;    509K&#124;00:02:07.89 &#124;    1439K&#124;    105K&#124;
&#124;  24 &#124;                         NESTED LOOPS OUTER           &#124;                    &#124;      1 &#124;      1 &#124;    509K&#124;00:02:05.85 &#124;    1439K&#124;    105K&#124;
&#124;  25 &#124;                          NESTED LOOPS OUTER          &#124;                    &#124;      1 &#124;      1 &#124;    509K&#124;00:02:04.32 &#124;    1439K&#124;    105K&#124;
&#124;  26 &#124;                           TABLE ACCESS BY INDEX ROWID&#124; S_ORG_EXT          &#124;      1 &#124;      1 &#124;    509K&#124;00:02:02.29 &#124;    1439K&#124;    105K&#124;
&#124;* 27 &#124;                            INDEX SKIP SCAN           &#124; S_ORG_EXT_M61      &#124;      1 &#124;      1 &#124;    509K&#124;00:00:03.74 &#124;     229K&#124;   5040 &#124;
&#124;  28 &#124;                           TABLE ACCESS BY INDEX ROWID&#124; S_PRI_LST          &#124;    509K&#124;      1 &#124;      0 &#124;00:00:01.13 &#124;       0 &#124;      0 &#124;
&#124;* 29 &#124;                            INDEX UNIQUE SCAN         &#124; S_PRI_LST_P1       &#124;    509K&#124;      1 &#124;      0 &#124;00:00:00.48 &#124;       0 &#124;      0 &#124;
&#124;  30 &#124;                          TABLE ACCESS BY INDEX ROWID &#124; S_PRI_LST          &#124;    509K&#124;      1 &#124;      0 &#124;00:00:00.94 &#124;       0 &#124;      0 &#124;
&#124;* 31 &#124;                           INDEX UNIQUE SCAN          &#124; S_PRI_LST_P1       &#124;    509K&#124;      1 &#124;      0 &#124;00:00:00.39 &#124;       0 &#124;      0 &#124;
&#124;  32 &#124;                         TABLE ACCESS BY INDEX ROWID  &#124; S_INDUST           &#124;    509K&#124;      1 &#124;      0 &#124;00:00:01.60 &#124;       7 &#124;      1 &#124;
&#124;* 33 &#124;                          INDEX UNIQUE SCAN           &#124; S_INDUST_P1        &#124;    509K&#124;      1 &#124;      0 &#124;00:00:01.06 &#124;       7 &#124;      1 &#124;
&#124;* 34 &#124;                        TABLE ACCESS BY INDEX ROWID   &#124; S_ORG_BU           &#124;    509K&#124;      1 &#124;    120 &#124;00:00:37.45 &#124;    1678K&#124;  22662 &#124;
&#124;* 35 &#124;                         INDEX RANGE SCAN             &#124; S_ORG_BU_U1        &#124;    509K&#124;      1 &#124;    508K&#124;00:00:09.04 &#124;    1170K&#124;   2392 &#124;
&#124;* 36 &#124;                       INDEX RANGE SCAN               &#124; S_PARTY_RPT_REL_U1 &#124;    120 &#124;      1 &#124;     65 &#124;00:00:00.01 &#124;     134 &#124;      4 &#124;
&#124;  37 &#124;                      TABLE ACCESS BY INDEX ROWID     &#124; S_ORG_EXT          &#124;     65 &#124;      1 &#124;     65 &#124;00:00:00.18 &#124;     202 &#124;     55 &#124;
&#124;* 38 &#124;                       INDEX UNIQUE SCAN              &#124; S_ORG_EXT_U3       &#124;     65 &#124;      1 &#124;     65 &#124;00:00:00.18 &#124;     137 &#124;     55 &#124;
&#124;  39 &#124;                     TABLE ACCESS BY INDEX ROWID      &#124; S_ORG_EXT          &#124;     65 &#124;      1 &#124;     65 &#124;00:00:00.01 &#124;     202 &#124;      0 &#124;
&#124;* 40 &#124;                      INDEX UNIQUE SCAN               &#124; S_ORG_EXT_U3       &#124;     65 &#124;      1 &#124;     65 &#124;00:00:00.01 &#124;     137 &#124;      0 &#124;
&#124;  41 &#124;                    TABLE ACCESS BY INDEX ROWID       &#124; S_CON_ADDR         &#124;     65 &#124;      1 &#124;     65 &#124;00:00:00.58 &#124;     208 &#124;    111 &#124;
&#124;* 42 &#124;                     INDEX RANGE SCAN                 &#124; S_CON_ADDR_M1      &#124;     65 &#124;      1 &#124;     65 &#124;00:00:00.25 &#124;     143 &#124;     53 &#124;
&#124;  43 &#124;                   TABLE ACCESS BY INDEX ROWID        &#124; S_CON_ADDR         &#124;     65 &#124;      1 &#124;     65 &#124;00:00:00.01 &#124;     208 &#124;      0 &#124;
&#124;* 44 &#124;                    INDEX RANGE SCAN                  &#124; S_CON_ADDR_M1      &#124;     65 &#124;      1 &#124;     65 &#124;00:00:00.01 &#124;     143 &#124;      0 &#124;
&#124;  45 &#124;                  TABLE ACCESS BY INDEX ROWID         &#124; S_CON_ADDR         &#124;     65 &#124;      1 &#124;     65 &#124;00:00:00.01 &#124;     208 &#124;      0 &#124;
&#124;* 46 &#124;                   INDEX RANGE SCAN                   &#124; S_CON_ADDR_M1      &#124;     65 &#124;      1 &#124;     65 &#124;00:00:00.01 &#124;     143 &#124;      0 &#124;
&#124;  47 &#124;                 TABLE ACCESS BY INDEX ROWID          &#124; S_CON_ADDR         &#124;     65 &#124;      1 &#124;     65 &#124;00:00:00.01 &#124;     208 &#124;      0 &#124;
&#124;* 48 &#124;                  INDEX RANGE SCAN                    &#124; S_CON_ADDR_M1      &#124;     65 &#124;      1 &#124;     65 &#124;00:00:00.01 &#124;     143 &#124;      0 &#124;
&#124;  49 &#124;                TABLE ACCESS BY INDEX ROWID           &#124; S_PARTY            &#124;     65 &#124;      1 &#124;     65 &#124;00:00:00.45 &#124;     202 &#124;    101 &#124;
&#124;* 50 &#124;                 INDEX UNIQUE SCAN                    &#124; S_PARTY_P1         &#124;     65 &#124;      1 &#124;     65 &#124;00:00:00.12 &#124;     137 &#124;     45 &#124;
&#124;  51 &#124;               TABLE ACCESS BY INDEX ROWID            &#124; S_ORG_EXT_X        &#124;     65 &#124;      1 &#124;      0 &#124;00:00:00.01 &#124;       6 &#124;      0 &#124;
&#124;* 52 &#124;                INDEX RANGE SCAN                      &#124; S_ORG_EXT_X_U1     &#124;     65 &#124;      1 &#124;      0 &#124;00:00:00.01 &#124;       6 &#124;      0 &#124;
&#124;  53 &#124;              TABLE ACCESS BY INDEX ROWID             &#124; S_ORG_EXT_SS       &#124;     65 &#124;      1 &#124;      0 &#124;00:00:00.01 &#124;       6 &#124;      0 &#124;
&#124;* 54 &#124;               INDEX RANGE SCAN                       &#124; S_ORG_EXT_SS_U1    &#124;     65 &#124;      1 &#124;      0 &#124;00:00:00.01 &#124;       6 &#124;      0 &#124;
&#124;  55 &#124;             TABLE ACCESS BY INDEX ROWID              &#124; S_ORG_EXT_LSX      &#124;     65 &#124;      1 &#124;      0 &#124;00:00:00.01 &#124;      71 &#124;      0 &#124;
&#124;* 56 &#124;              INDEX RANGE SCAN                        &#124; S_ORG_EXT_LSX_U1   &#124;     65 &#124;      1 &#124;      0 &#124;00:00:00.01 &#124;      71 &#124;      0 &#124;
&#124;  57 &#124;            TABLE ACCESS BY INDEX ROWID               &#124; S_PARTY            &#124;     65 &#124;      1 &#124;     65 &#124;00:00:00.01 &#124;     201 &#124;      0 &#124;
&#124;* 58 &#124;             INDEX UNIQUE SCAN                        &#124; S_PARTY_P1         &#124;     65 &#124;      1 &#124;     65 &#124;00:00:00.01 &#124;     136 &#124;      0 &#124;
&#124;  59 &#124;           TABLE ACCESS BY INDEX ROWID                &#124; S_ACCNT_POSTN      &#124;     65 &#124;      9 &#124;     65 &#124;00:00:00.67 &#124;     207 &#124;    133 &#124;
&#124;* 60 &#124;            INDEX RANGE SCAN                          &#124; S_ACCNT_POSTN_U1   &#124;     65 &#124;      1 &#124;     65 &#124;00:00:00.35 &#124;     142 &#124;     74 &#124;
&#124;  61 &#124;          TABLE ACCESS BY INDEX ROWID                 &#124; S_POSTN            &#124;     65 &#124;      1 &#124;     65 &#124;00:00:00.01 &#124;     136 &#124;      0 &#124;
&#124;* 62 &#124;           INDEX UNIQUE SCAN                          &#124; S_POSTN_U2         &#124;     65 &#124;      1 &#124;     65 &#124;00:00:00.01 &#124;      71 &#124;      0 &#124;
&#124;  63 &#124;         TABLE ACCESS BY INDEX ROWID                  &#124; S_USER             &#124;     65 &#124;      1 &#124;     65 &#124;00:00:00.01 &#124;     201 &#124;      0 &#124;
&#124;* 64 &#124;          INDEX UNIQUE SCAN                           &#124; S_USER_U2          &#124;     65 &#124;      1 &#124;     65 &#124;00:00:00.01 &#124;      71 &#124;      0 &#124;
&#124;* 65 &#124;        INDEX UNIQUE SCAN                             &#124; S_PARTY_P1         &#124;     65 &#124;      1 &#124;     65 &#124;00:00:00.01 &#124;     136 &#124;      0 &#124;
&#124;  66 &#124;       TABLE ACCESS BY INDEX ROWID                    &#124; S_ADDR_PER         &#124;     65 &#124;      1 &#124;     65 &#124;00:00:00.42 &#124;     201 &#124;    105 &#124;
&#124;* 67 &#124;        INDEX UNIQUE SCAN                             &#124; S_ADDR_PER_P1      &#124;     65 &#124;      1 &#124;     65 &#124;00:00:00.13 &#124;     136 &#124;     46 &#124;
&#124;  68 &#124;      TABLE ACCESS BY INDEX ROWID                     &#124; S_ADDR_PER         &#124;     65 &#124;      1 &#124;     65 &#124;00:00:00.01 &#124;     201 &#124;      0 &#124;
&#124;* 69 &#124;       INDEX UNIQUE SCAN                              &#124; S_ADDR_PER_P1      &#124;     65 &#124;      1 &#124;     65 &#124;00:00:00.01 &#124;     136 &#124;      0 &#124;
&#124;  70 &#124;     TABLE ACCESS BY INDEX ROWID                      &#124; S_ADDR_PER         &#124;     65 &#124;      1 &#124;     65 &#124;00:00:00.01 &#124;     201 &#124;      0 &#124;
&#124;* 71 &#124;      INDEX UNIQUE SCAN                               &#124; S_ADDR_PER_P1      &#124;     65 &#124;      1 &#124;     65 &#124;00:00:00.01 &#124;     136 &#124;      0 &#124;
&#124;  72 &#124;    TABLE ACCESS BY INDEX ROWID                       &#124; S_ADDR_PER         &#124;     65 &#124;      1 &#124;     65 &#124;00:00:00.01 &#124;     201 &#124;      0 &#124;
&#124;* 73 &#124;     INDEX UNIQUE SCAN                                &#124; S_ADDR_PER_P1      &#124;     65 &#124;      1 &#124;     65 &#124;00:00:00.01 &#124;     136 &#124;      0 &#124;
&#124;  74 &#124;   TABLE ACCESS BY INDEX ROWID                        &#124; S_ADDR_PER         &#124;     65 &#124;      1 &#124;     65 &#124;00:00:00.01 &#124;     201 &#124;      0 &#124;
&#124;* 75 &#124;    INDEX UNIQUE SCAN                                 &#124; S_ADDR_PER_P1      &#124;     65 &#124;      1 &#124;     65 &#124;00:00:00.01 &#124;     136 &#124;      0 &#124;
----------------------------------------------------------------------------------------------------------------------------------------------
[/sourcecode]]]></description>
		<content:encoded><![CDATA[<p>Jonathan, your blog is so vital to help me get the insight of Oracle. Sorry for the long output. Did you anything wrong this explain plan? and why?</p>
<pre class="brush: plain; title: ; notranslate">
----------------------------------------------------------------------------------------------------------------------------------------------
| Id  | Operation                                            | Name               | Starts | E-Rows | A-Rows |   A-Time   | Buffers | Reads  |
----------------------------------------------------------------------------------------------------------------------------------------------
|   1 |  NESTED LOOPS OUTER                                  |                    |      1 |      1 |     65 |00:02:48.23 |    3122K|    128K|
|   2 |   NESTED LOOPS OUTER                                 |                    |      1 |      1 |     65 |00:02:48.23 |    3121K|    128K|
|   3 |    NESTED LOOPS OUTER                                |                    |      1 |      1 |     65 |00:02:48.23 |    3121K|    128K|
|   4 |     NESTED LOOPS OUTER                               |                    |      1 |      1 |     65 |00:02:48.23 |    3121K|    128K|
|   5 |      NESTED LOOPS OUTER                              |                    |      1 |      1 |     65 |00:02:48.22 |    3121K|    128K|
|   6 |       NESTED LOOPS                                   |                    |      1 |      1 |     65 |00:02:47.80 |    3121K|    128K|
|   7 |        NESTED LOOPS OUTER                            |                    |      1 |      1 |     65 |00:02:47.80 |    3120K|    128K|
|   8 |         NESTED LOOPS OUTER                           |                    |      1 |      1 |     65 |00:02:47.80 |    3120K|    128K|
|   9 |          NESTED LOOPS                                |                    |      1 |      1 |     65 |00:02:47.80 |    3120K|    128K|
|  10 |           NESTED LOOPS                               |                    |      1 |      1 |     65 |00:02:47.13 |    3120K|    128K|
|  11 |            NESTED LOOPS OUTER                        |                    |      1 |      1 |     65 |00:02:47.13 |    3120K|    128K|
|  12 |             NESTED LOOPS OUTER                       |                    |      1 |      1 |     65 |00:02:47.12 |    3120K|    128K|
|  13 |              NESTED LOOPS OUTER                      |                    |      1 |      1 |     65 |00:02:47.12 |    3120K|    128K|
|  14 |               NESTED LOOPS                           |                    |      1 |      1 |     65 |00:02:47.12 |    3120K|    128K|
|  15 |                NESTED LOOPS OUTER                    |                    |      1 |      1 |     65 |00:02:46.67 |    3119K|    128K|
|  16 |                 NESTED LOOPS OUTER                   |                    |      1 |      1 |     65 |00:02:46.67 |    3119K|    128K|
|  17 |                  NESTED LOOPS OUTER                  |                    |      1 |      1 |     65 |00:02:46.67 |    3119K|    128K|
|  18 |                   NESTED LOOPS OUTER                 |                    |      1 |      1 |     65 |00:02:46.66 |    3119K|    128K|
|  19 |                    NESTED LOOPS OUTER                |                    |      1 |      1 |     65 |00:02:46.09 |    3119K|    128K|
|  20 |                     NESTED LOOPS                     |                    |      1 |      1 |     65 |00:02:46.08 |    3118K|    128K|
|  21 |                      NESTED LOOPS                    |                    |      1 |      1 |     65 |00:02:45.90 |    3118K|    127K|
|  22 |                       NESTED LOOPS                   |                    |      1 |      1 |    120 |00:02:45.89 |    3118K|    127K|
|  23 |                        NESTED LOOPS OUTER            |                    |      1 |      1 |    509K|00:02:07.89 |    1439K|    105K|
|  24 |                         NESTED LOOPS OUTER           |                    |      1 |      1 |    509K|00:02:05.85 |    1439K|    105K|
|  25 |                          NESTED LOOPS OUTER          |                    |      1 |      1 |    509K|00:02:04.32 |    1439K|    105K|
|  26 |                           TABLE ACCESS BY INDEX ROWID| S_ORG_EXT          |      1 |      1 |    509K|00:02:02.29 |    1439K|    105K|
|* 27 |                            INDEX SKIP SCAN           | S_ORG_EXT_M61      |      1 |      1 |    509K|00:00:03.74 |     229K|   5040 |
|  28 |                           TABLE ACCESS BY INDEX ROWID| S_PRI_LST          |    509K|      1 |      0 |00:00:01.13 |       0 |      0 |
|* 29 |                            INDEX UNIQUE SCAN         | S_PRI_LST_P1       |    509K|      1 |      0 |00:00:00.48 |       0 |      0 |
|  30 |                          TABLE ACCESS BY INDEX ROWID | S_PRI_LST          |    509K|      1 |      0 |00:00:00.94 |       0 |      0 |
|* 31 |                           INDEX UNIQUE SCAN          | S_PRI_LST_P1       |    509K|      1 |      0 |00:00:00.39 |       0 |      0 |
|  32 |                         TABLE ACCESS BY INDEX ROWID  | S_INDUST           |    509K|      1 |      0 |00:00:01.60 |       7 |      1 |
|* 33 |                          INDEX UNIQUE SCAN           | S_INDUST_P1        |    509K|      1 |      0 |00:00:01.06 |       7 |      1 |
|* 34 |                        TABLE ACCESS BY INDEX ROWID   | S_ORG_BU           |    509K|      1 |    120 |00:00:37.45 |    1678K|  22662 |
|* 35 |                         INDEX RANGE SCAN             | S_ORG_BU_U1        |    509K|      1 |    508K|00:00:09.04 |    1170K|   2392 |
|* 36 |                       INDEX RANGE SCAN               | S_PARTY_RPT_REL_U1 |    120 |      1 |     65 |00:00:00.01 |     134 |      4 |
|  37 |                      TABLE ACCESS BY INDEX ROWID     | S_ORG_EXT          |     65 |      1 |     65 |00:00:00.18 |     202 |     55 |
|* 38 |                       INDEX UNIQUE SCAN              | S_ORG_EXT_U3       |     65 |      1 |     65 |00:00:00.18 |     137 |     55 |
|  39 |                     TABLE ACCESS BY INDEX ROWID      | S_ORG_EXT          |     65 |      1 |     65 |00:00:00.01 |     202 |      0 |
|* 40 |                      INDEX UNIQUE SCAN               | S_ORG_EXT_U3       |     65 |      1 |     65 |00:00:00.01 |     137 |      0 |
|  41 |                    TABLE ACCESS BY INDEX ROWID       | S_CON_ADDR         |     65 |      1 |     65 |00:00:00.58 |     208 |    111 |
|* 42 |                     INDEX RANGE SCAN                 | S_CON_ADDR_M1      |     65 |      1 |     65 |00:00:00.25 |     143 |     53 |
|  43 |                   TABLE ACCESS BY INDEX ROWID        | S_CON_ADDR         |     65 |      1 |     65 |00:00:00.01 |     208 |      0 |
|* 44 |                    INDEX RANGE SCAN                  | S_CON_ADDR_M1      |     65 |      1 |     65 |00:00:00.01 |     143 |      0 |
|  45 |                  TABLE ACCESS BY INDEX ROWID         | S_CON_ADDR         |     65 |      1 |     65 |00:00:00.01 |     208 |      0 |
|* 46 |                   INDEX RANGE SCAN                   | S_CON_ADDR_M1      |     65 |      1 |     65 |00:00:00.01 |     143 |      0 |
|  47 |                 TABLE ACCESS BY INDEX ROWID          | S_CON_ADDR         |     65 |      1 |     65 |00:00:00.01 |     208 |      0 |
|* 48 |                  INDEX RANGE SCAN                    | S_CON_ADDR_M1      |     65 |      1 |     65 |00:00:00.01 |     143 |      0 |
|  49 |                TABLE ACCESS BY INDEX ROWID           | S_PARTY            |     65 |      1 |     65 |00:00:00.45 |     202 |    101 |
|* 50 |                 INDEX UNIQUE SCAN                    | S_PARTY_P1         |     65 |      1 |     65 |00:00:00.12 |     137 |     45 |
|  51 |               TABLE ACCESS BY INDEX ROWID            | S_ORG_EXT_X        |     65 |      1 |      0 |00:00:00.01 |       6 |      0 |
|* 52 |                INDEX RANGE SCAN                      | S_ORG_EXT_X_U1     |     65 |      1 |      0 |00:00:00.01 |       6 |      0 |
|  53 |              TABLE ACCESS BY INDEX ROWID             | S_ORG_EXT_SS       |     65 |      1 |      0 |00:00:00.01 |       6 |      0 |
|* 54 |               INDEX RANGE SCAN                       | S_ORG_EXT_SS_U1    |     65 |      1 |      0 |00:00:00.01 |       6 |      0 |
|  55 |             TABLE ACCESS BY INDEX ROWID              | S_ORG_EXT_LSX      |     65 |      1 |      0 |00:00:00.01 |      71 |      0 |
|* 56 |              INDEX RANGE SCAN                        | S_ORG_EXT_LSX_U1   |     65 |      1 |      0 |00:00:00.01 |      71 |      0 |
|  57 |            TABLE ACCESS BY INDEX ROWID               | S_PARTY            |     65 |      1 |     65 |00:00:00.01 |     201 |      0 |
|* 58 |             INDEX UNIQUE SCAN                        | S_PARTY_P1         |     65 |      1 |     65 |00:00:00.01 |     136 |      0 |
|  59 |           TABLE ACCESS BY INDEX ROWID                | S_ACCNT_POSTN      |     65 |      9 |     65 |00:00:00.67 |     207 |    133 |
|* 60 |            INDEX RANGE SCAN                          | S_ACCNT_POSTN_U1   |     65 |      1 |     65 |00:00:00.35 |     142 |     74 |
|  61 |          TABLE ACCESS BY INDEX ROWID                 | S_POSTN            |     65 |      1 |     65 |00:00:00.01 |     136 |      0 |
|* 62 |           INDEX UNIQUE SCAN                          | S_POSTN_U2         |     65 |      1 |     65 |00:00:00.01 |      71 |      0 |
|  63 |         TABLE ACCESS BY INDEX ROWID                  | S_USER             |     65 |      1 |     65 |00:00:00.01 |     201 |      0 |
|* 64 |          INDEX UNIQUE SCAN                           | S_USER_U2          |     65 |      1 |     65 |00:00:00.01 |      71 |      0 |
|* 65 |        INDEX UNIQUE SCAN                             | S_PARTY_P1         |     65 |      1 |     65 |00:00:00.01 |     136 |      0 |
|  66 |       TABLE ACCESS BY INDEX ROWID                    | S_ADDR_PER         |     65 |      1 |     65 |00:00:00.42 |     201 |    105 |
|* 67 |        INDEX UNIQUE SCAN                             | S_ADDR_PER_P1      |     65 |      1 |     65 |00:00:00.13 |     136 |     46 |
|  68 |      TABLE ACCESS BY INDEX ROWID                     | S_ADDR_PER         |     65 |      1 |     65 |00:00:00.01 |     201 |      0 |
|* 69 |       INDEX UNIQUE SCAN                              | S_ADDR_PER_P1      |     65 |      1 |     65 |00:00:00.01 |     136 |      0 |
|  70 |     TABLE ACCESS BY INDEX ROWID                      | S_ADDR_PER         |     65 |      1 |     65 |00:00:00.01 |     201 |      0 |
|* 71 |      INDEX UNIQUE SCAN                               | S_ADDR_PER_P1      |     65 |      1 |     65 |00:00:00.01 |     136 |      0 |
|  72 |    TABLE ACCESS BY INDEX ROWID                       | S_ADDR_PER         |     65 |      1 |     65 |00:00:00.01 |     201 |      0 |
|* 73 |     INDEX UNIQUE SCAN                                | S_ADDR_PER_P1      |     65 |      1 |     65 |00:00:00.01 |     136 |      0 |
|  74 |   TABLE ACCESS BY INDEX ROWID                        | S_ADDR_PER         |     65 |      1 |     65 |00:00:00.01 |     201 |      0 |
|* 75 |    INDEX UNIQUE SCAN                                 | S_ADDR_PER_P1      |     65 |      1 |     65 |00:00:00.01 |     136 |      0 |
----------------------------------------------------------------------------------------------------------------------------------------------
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2006/11/09/dbms_xplan-in-10g/#comment-35001</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Wed, 16 Dec 2009 13:52:19 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2006/11/09/dbms_xplan-in-10g/#comment-35001</guid>
		<description><![CDATA[Orlando,

If you want to see where the work is done you have to run the query, &quot;explain plan&quot; won&#039;t give you execution statistics.
11g has a new &lt;a href=&quot;http://structureddata.org/2008/01/06/oracle-11g-real-time-sql-monitoring-using-dbms_sqltunereport_sql_monitor/&quot; rel=&quot;nofollow&quot;&gt;&lt;em&gt;&lt;strong&gt;&quot;Real-time SQL monitoring&quot;&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt; feature that accumulates execution statistics every few seconds so that you don&#039;t necessarily have to run the query to completion to get a good idea of where the work is going - unfortunately that doesn&#039;t help you.]]></description>
		<content:encoded><![CDATA[<p>Orlando,</p>
<p>If you want to see where the work is done you have to run the query, &#8220;explain plan&#8221; won&#8217;t give you execution statistics.<br />
11g has a new <a href="http://structureddata.org/2008/01/06/oracle-11g-real-time-sql-monitoring-using-dbms_sqltunereport_sql_monitor/" rel="nofollow"><em><strong>&#8220;Real-time SQL monitoring&#8221;</strong></em></a> feature that accumulates execution statistics every few seconds so that you don&#8217;t necessarily have to run the query to completion to get a good idea of where the work is going &#8211; unfortunately that doesn&#8217;t help you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Orlando Reyes</title>
		<link>http://jonathanlewis.wordpress.com/2006/11/09/dbms_xplan-in-10g/#comment-34992</link>
		<dc:creator><![CDATA[Orlando Reyes]]></dc:creator>
		<pubDate>Tue, 15 Dec 2009 21:59:07 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2006/11/09/dbms_xplan-in-10g/#comment-34992</guid>
		<description><![CDATA[Jonathan, this is very handy, but it looks like we do need to totally execute the query to get the stats we need, so, what about using the “explain plan for select ….” method and generate the same info for those queries that would take too long to wait for execution ? I have a query that would take over 5 hours to run, so I don’t want to run it, I just want to see the explain plan and try to tune it form there, is there any way to use the “dbms_xplan.display_cursor(null, null, &#039;ALLSTATS LAST&#039;)” in this case? When I tried I get an error saying “cannot fetch plan for SQL_ID: 9b0mhpss56xhw, CHILD_NUMBER: 3 
Please verify value of SQL_ID and CHILD_NUMBER;
It could also be that the plan is no longer in cursor cache (check v$sql_plan)”]]></description>
		<content:encoded><![CDATA[<p>Jonathan, this is very handy, but it looks like we do need to totally execute the query to get the stats we need, so, what about using the “explain plan for select ….” method and generate the same info for those queries that would take too long to wait for execution ? I have a query that would take over 5 hours to run, so I don’t want to run it, I just want to see the explain plan and try to tune it form there, is there any way to use the “dbms_xplan.display_cursor(null, null, &#8216;ALLSTATS LAST&#8217;)” in this case? When I tried I get an error saying “cannot fetch plan for SQL_ID: 9b0mhpss56xhw, CHILD_NUMBER: 3<br />
Please verify value of SQL_ID and CHILD_NUMBER;<br />
It could also be that the plan is no longer in cursor cache (check v$sql_plan)”</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dependent Plans &#171; Oracle Scratchpad</title>
		<link>http://jonathanlewis.wordpress.com/2006/11/09/dbms_xplan-in-10g/#comment-32901</link>
		<dc:creator><![CDATA[Dependent Plans &#171; Oracle Scratchpad]]></dc:creator>
		<pubDate>Tue, 05 May 2009 18:11:18 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2006/11/09/dbms_xplan-in-10g/#comment-32901</guid>
		<description><![CDATA[[...] Lewis @ 6:09 pm UTC May 5,2009   I&#8217;ve written several posts about dbms_xplan, and the display_cursor function in 10g. One of the nice feature of this function is that it is a &#8220;pipelined&#8221; [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Lewis @ 6:09 pm UTC May 5,2009   I&#8217;ve written several posts about dbms_xplan, and the display_cursor function in 10g. One of the nice feature of this function is that it is a &#8220;pipelined&#8221; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Histogram change &#171; Oracle Scratchpad</title>
		<link>http://jonathanlewis.wordpress.com/2006/11/09/dbms_xplan-in-10g/#comment-32835</link>
		<dc:creator><![CDATA[Histogram change &#171; Oracle Scratchpad]]></dc:creator>
		<pubDate>Thu, 23 Apr 2009 21:25:11 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2006/11/09/dbms_xplan-in-10g/#comment-32835</guid>
		<description><![CDATA[[...] then the optimizer would calcualte a cardinality of one for this predicate (having recorded a density of 1/(2 * num_rows) in the data dictionary (see comments 21 and 22 of this note on dbms_xplan). [...]]]></description>
		<content:encoded><![CDATA[<p>[...] then the optimizer would calcualte a cardinality of one for this predicate (having recorded a density of 1/(2 * num_rows) in the data dictionary (see comments 21 and 22 of this note on dbms_xplan). [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
