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

Home -> Community -> Mailing Lists -> Oracle-L -> v$sql.parsing_user_id=0 when parser was not SYS

v$sql.parsing_user_id=0 when parser was not SYS

From: Jeremiah Wilton <jeremiah_at_ora-600.net>
Date: Tue, 25 Jul 2006 17:10:30 -0700
Message-ID: <037301c6b047$e8884890$6c01a8c0@flbp7000a>


Looking at v$sql, I see that quite often a cursor that was actually originally parsed by some user other than SYS shows a PARSING_USER_ID of 0 (SYS). How can I tell who really parsed this cursor? Shouldn't there be a separate child cursor in v$sql for each user that uses the cursor?

I am in 8i, trying to automate SQL plan collection for the most executed queries (similar to v$sqlplan functionality in 10g). If I can't empirically determine the correct current_schema to set when running explain, I will have to fudge and create an "educated guess" algorithm.

Thanks,

Jeremiah Wilton
ORA-600 Consulting
http://www.ora-600.net

--
http://www.freelists.org/webpage/oracle-l
Received on Tue Jul 25 2006 - 19:10:30 CDT

Original text of this message

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