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: Parallel Query Parent Statement explain plan extraction

RE: Parallel Query Parent Statement explain plan extraction

From: Freeman Robert - IL <FREEMANR_at_tusc.com>
Date: Tue, 21 Jan 2003 12:49:27 -0800
Message-ID: <F001.005368D3.20030121124927@fatcity.com>


Thanks Arup.... You code works great... and I was befuddled because mine looks pretty much like yours... until I noticed *gasp* a typo on my part...I was linking the sid to sid in
v$pq_session instead of qcsid.... ($)#$)(#$*)@#(*)...

Your code was so helpful because once it worked and I cussed and said I'M DOING THAT.... I looked at my code and said, oh.... yea.... thats not right.

Thanks a million.

RF

Robert G. Freeman
Technical Management Consultant
TUSC - The Oracle Experts www.tusc.com
904.708.5076 Cell (it's everywhere that I am!) Author of several books you can find on Amazon.com!

-----Original Message-----
Sent: Tuesday, January 21, 2003 2:27 PM
To: Multiple recipients of list ORACLE-L

Robert,

You can try

select sql_text
from v$sql t, v$session s, v$px_session p where t.address=s.sql_address

and s.sid = p.sid
and s.serial# = p.serial#
and p.sid = p.qcsid

/

HTH. Arup
----- Original Message -----
To: "Multiple recipients of list ORACLE-L" <ORACLE-L_at_fatcity.com> Sent: Tuesday, January 21, 2003 1:54 PM

> Has anyone got a handy bit of 9iSQL to extract the parent SQL statement
from
> v$sqlarea that has kicked off several parallel slaves? I have some code
that
> is supposed to be doing that, but there is this one statement that it
> extracts and then tries to perform an explain plan on that keeps
crashing...
> So I can only think that somehow I'm not getting the right statement or
it's
> somehow coming across corrupted. I've also tried to lookup this SQL in the
> v$sql_plan table and extract the plan from there and I get disconnected
from
> the session when I try. This is application generated code, so I don't
have
> access to the original SQL.
>
> Help please :-))
>
> RF
>
> Robert G. Freeman
> Technical Management Consultant
> TUSC - The Oracle Experts www.tusc.com
> 904.708.5076 Cell (it's everywhere that I am!)
> Author of several books you can find on Amazon.com!
>
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author: Freeman Robert - IL
> INET: FREEMANR_at_tusc.com
>
> Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> San Diego, California -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> 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).
>

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Arup Nanda
  INET: arupnanda_at_hotmail.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Freeman Robert - IL
  INET: FREEMANR_at_tusc.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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 Jan 21 2003 - 14:49:27 CST

Original text of this message

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