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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Explain Plan Problem

Re: Explain Plan Problem

From: Andreas Michler <Andreas.Michler_at_adicom.de>
Date: Fri, 04 Feb 2000 07:49:52 +0100
Message-ID: <389A7690.98D84CC0@adicom.de>


This statement doesn't execute.
it write only the explain plan to the plan_table. Be sure you have created it.
truncate table plan_table;
EXPLAIN PLAN
   SET STATEMENT_ID = 'TEST'

   FOR select  ................;

SELECT LPAD(' ',2*(LEVEL-1))||operation||' '||options

   ||' '||object_name
   ||' '||DECODE(id, 0, 'Cost = '||position) "Query Plan"    FROM plan_table
   START WITH id = 0 AND statement_id = 'TEST'    CONNECT BY PRIOR id = parent_id AND statement_id = 'TEST';

Parvinder Singh wrote:

> Hi all
>
> can anyone tell me how to get the total explain plan of the query
> without practically executing it ???
>
> Regards
> ~Parvinder

--



ADICOM Informatik GmbH
Andreas Michler
Wiesfleckenstr. 34
72336 Balingen
Tel: 07433/9977-57,Fax: -90
E-Mail: Andreas.Michler_at_adicom.de
http:\\www.adicom.de
Received on Fri Feb 04 2000 - 00:49:52 CST

Original text of this message

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