Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > SQL Language
|
SQL Language SQL Language discussions not specific to a particular RDBMS program or vendor.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Language section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 21st, 2006, 12:52 AM
Authorized User
 
Join Date: Jan 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to use v$sqlarea to see explain plan

Hi,
   Can any one tell me how to see the explain plan or any related features (for example whether it is going thro all created indexes or not) by using view v$sqlarea and its column sql_text.
   Please give me any other suggestions.


Regards,
ramanadyv



 
Old April 5th, 2006, 08:14 AM
Authorized User
 
Join Date: Mar 2006
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi
to use explan plan.. u should have right to create table plan table
Then run the script utlxplan (generally located at folowing location)
ORACLE_HOME\rdbms\admin\utlxplan.sql

execute one of the statement..

set autotrace on explain -- generally used (shows data of select stmt followed by plan)
set autotrace on statistics
set autotrace on explain statistics

set autotrace traceonly explain
set autotrace traceonly statistics
set autotrace traceonly explain statistics

set autotrace off explain
set autotrace off statistics
set autotrace off explain statistics


Regards
Milind






Similar Threads
Thread Thread Starter Forum Replies Last Post
Execution Plan of a Query asuni SQL Server 2005 0 August 6th, 2008 03:42 AM
How to delete a wizard plan... RinoDM SQL Server 2005 0 July 18th, 2007 10:13 AM
explain plan with bind variable ramanadyv SQL Language 0 March 2nd, 2006 05:06 AM
Maint Plan Optimization Failing dhay1999 SQL Server 2000 2 July 21st, 2004 02:24 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.