to find the last executed statement [message #329616] |
Thu, 26 June 2008 00:50  |
srini_thiru
Messages: 133 Registered: May 2008
|
Senior Member |
|
|
HI,
I like to know the last executed statement of a user. How can i get this.
For example, i have logged on using dba_user and another person is logged on using test_user. dba_user has dba privileges. Whether can i know the last statement executed by test_user.
thanks in Advance,
Seenu
|
|
|
|
Re: to find the last executed statement [message #329625 is a reply to message #329616] |
Thu, 26 June 2008 01:17  |
 |
Michel Cadot
Messages: 68737 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
The following column of v$session (joining with v$sql) may help (but not sure, depending on the case):
SQL_ADDRESS
SQL_HASH_VALUE
SQL_ID
SQL_CHILD_NUMBER
PREV_SQL_ADDR
PREV_HASH_VALUE
PREV_SQL_ID
PREV_CHILD_NUMBER
Regards
Michel
|
|
|