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: Last SQL Statement Executed By User

Re: Last SQL Statement Executed By User

From: <Juriy.Matey_at_bmo.com>
Date: Wed, 31 Mar 2004 12:44:18 -0500
Message-ID: <OF321C6BB0.BE6DEAB9-ON85256E68.00614233-85256E68.0061B48A@notes.bmo.com>


Dan,

all you need is V$SESSION view .
Here is an excerpt from documentation concerning fields from this view you need to have a look at:

....
SQL_HASH_VALUE NUMBER Used with SQL_ADDRESS to identify the SQL statement that is currently being executed PREV_HASH_VALUE NUMBER Used with SQL_HASH_VALUE to identify the last SQL statement executed

Regards,

Juriy Matey

Dan Looby <dan.looby_at_oit.gatech.edu>
Sent by: oracle-l-bounce_at_freelists.org
03/31/2004 11:01 AM
Please respond to oracle-l  

        To:     oracle-l_at_freelists.org
        cc: 
        Subject:        Last SQL Statement Executed By User


I'm looking for a script that shows the last (if still available) SQL statement executed by a user. I'm doing a presentation on VPD and want to

pull the SQL statement to show, hopefully, that the dynamic predicate was added to the statement. Possible?



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--

Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html


Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--

Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
Received on Wed Mar 31 2004 - 11:48:20 CST

Original text of this message

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