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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: {9i New Features: V$SQL_PLAN}

Re: {9i New Features: V$SQL_PLAN}

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Tue, 07 May 2002 10:48:51 -0800
Message-ID: <F001.0045A2A7.20020507104851@fatcity.com>

It's probably best to stick with

    Address,hash_value and child_number join to v$sql

otherwise you'll get into cases where the same SQL text is used by different users under different conditions and get a complete mess.

Also look at the DEPTH column - this is a built-in evaluation of the LEVEL that you would normally use in a CONNECT BY query, but you don't need to do this with v$sql_plan.

(There are a couple of columns, like INSTANCE,
still missing from v$sql_plan if you get into really complex SQL, though, and it doesn't cater for recursive actions such as subquery factoring).

Question: How hard is it to write a good manual Answer: Damn near impossible. The 9i tuning guide on page "N" points out that you don't need to use a CONNECT BY with v$sql_plan because of the DEPTH column, and on page "N+1" lists a sample query against v$sql_plan ... using a CONNECT BY and LEVEL :(

Jonathan Lewis
http://www.jlcomp.demon.co.uk

Author of:
Practical Oracle 8i: Building Efficient Databases

Next Seminar - Australia - July/August
http://www.jlcomp.demon.co.uk/seminar.html

Host to The Co-Operative Oracle Users' FAQ http://www.jlcomp.demon.co.uk/faq/ind_faq.html

-----Original Message-----
So of the columns in this view, which one are most useful????

Address and hash_value join to v$sqlarea. Address,hash_value and child_number join to v$sql Address and hash_value join to v$sqltext

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Jonathan Lewis
  INET: jonathan_at_jlcomp.demon.co.uk

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L

(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
Received on Tue May 07 2002 - 13:48:51 CDT

Original text of this message

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