dbTalk Databases Forums  

Oracle Trace

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Oracle Trace in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mtek
 
Posts: n/a

Default Oracle Trace - 02-07-2009 , 11:41 AM







Ok, dumb question.

I am running Oracle trace. I want to suppress the query's output and
just see the explain plan.......

Can't seem to find it in the manual or on any other sites......

If I would say select * from <table>, I do not want to see all the
data, just the explain plan.....


Reply With Quote
  #2  
Old   
Charles Hooper
 
Posts: n/a

Default Re: Oracle Trace - 02-08-2009 , 08:12 AM






On Feb 7, 12:41*pm, Mtek <m... (AT) mtekusa (DOT) com> wrote:
Quote:
Ok, dumb question.

I am running Oracle trace. *I want to suppress the query's output and
just see the explain plan.......

Can't seem to find it in the manual or on any other sites......

If I would say select * from <table>, I do not want to see all the
data, just the explain plan.....
Paraphrased from "Mastering Oracle SQL and SQL*Plus":
SET AUTOTRACE TRACEONLY EXPLAIN displays explain plans without
executing the query.
SET AUTOTRACE TRACEONLY STATISTICS suppresses the output from the
query and displays the statistics from the execution.
SET AUTOTRACE ON EXPLAIN shows the explain plan after the query
executes.

You will want to use the second of the above to see the statistics
without outputting the rows, or use the first of the above to output
the expected execution plan without executing the query. To output
the expected execution plan and the runtime statistics without the
intermediate output from the SQL statement, you should be able to use
the following:
SET AUTOTRACE TRACEONLY EXPLAIN STATISTICS

Charles Hooper
IT Manager/Oracle DBA
K&M Machine-Fabricating, Inc.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.