Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Last SQL Statement Executed By User
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?
![]() |
![]() |