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: Link procedure to sql statement in v$sqlarea

RE: Link procedure to sql statement in v$sqlarea

From: Alvaro Jose Fernandez <alvaro.fernandez_at_sivsa.com>
Date: Tue, 2 Oct 2007 22:02:15 +0200
Message-ID: <607D6181D9919041BE792D70EF2AEC48243397@LIMENS.sivsa.int>


Apart of checking v$sqlarea.module for any differences, I only could think of of joining the addr and hash_value with v$session, to obtain v$session.prev_sql_addr and v$session.prev_hash_value, and using them, checking the sql from v$sqlarea if it matches the 'BEGIN PQR; END' ..  

I have a procedure named 'XYZ' and inside this procedure I have select statement. When I execute this procedure I can see a entry for procedure 'XYZ' and also a entry for select statement (which is actually inside procedure). How do I know if this select statement has come from this procedure or somebody else fired this statement as standalone (not using procedure)

--
http://www.freelists.org/webpage/oracle-l
Received on Tue Oct 02 2007 - 15:02:15 CDT

Original text of this message

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