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: Question about analyzing SQL statements

Re: Question about analyzing SQL statements

From: DA Morgan <damorgan_at_psoug.org>
Date: Wed, 31 Oct 2007 08:26:45 -0700
Message-ID: <1193844403.71711@bubbleator.drizzle.com>


Adam Sandler wrote:
> Hello,
>
> Quite some time ago, a former colleague introduced a feature/
> capability of Oracle to me where a developer can see how their SQL
> statements are processed by the DB... which clauses are evaluated
> first, how things are run, orders of operations, etc. He mentioned
> there was even a whole book (I'm sure there's more than one; I just
> don't know where to start searching) about this capability.
>
> The problem is, I don't know what specifically this capability is
> called. And since I'm not using the correct jargon, Google searches
> aren't panning out (understandably so).
>
> I've got a rather involved SQL statement which is running very slow.
> I'd like to see how the DB is processing it and see if I can modify
> the SQL to increase performance.
>
> Thanks!

Explain Plan will do it:
http://www.psoug.org/reference/explain_plan.html

Autotrace will do it:
http://www.psoug.org/reference/autotrace.html

DBMS_XPLAN will do it:
http://www.psoug.org/reference/dbms_xplan.html

Tracing will do it:

http://www.psoug.org/reference/trace_tkprof.html#trtk
http://www.psoug.org/reference/dbms_support.html
http://www.psoug.org/reference/dbms_trace.html
http://www.psoug.org/reference/dbms_monitor.html
-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Received on Wed Oct 31 2007 - 10:26:45 CDT

Original text of this message

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