Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Explain plan - is there a way to find order of join tables

Re: Explain plan - is there a way to find order of join tables

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Mon, 27 Mar 2006 20:34:22 +0200
Message-ID: <nubg22tf4mhdkreqhn5a9kbg3don8ve8vl@4ax.com>


On 27 Mar 2006 10:11:46 -0800, dbaplusplus_at_hotmail.com wrote:

>Orace 9i, HP UNX 11i
>
>I have gotten an explian plan using v$sql_plan using
>dbms_xplan.display table function (I also tried set autotrace on woith
>same results..).
>
> Plan shows me various nested loops (for vaious joins) but is there
>any way for me to find the order of join tables, i.e., which table was
>starting driving table (e.g., tablea), which table it was joined with
>(e.g, tableb), which table was tableb joined with (table c) etc.
>Without this information it is quite hard

You'll need to learn the explain plan output If you have

     nested loops
         full table scan dept
         full table scan emp

dept is the driving table.

--
Sybrand Bakker, Senior Oracle DBA
Received on Mon Mar 27 2006 - 12:34:22 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US