Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Query to return all SQL statements ran for a particular user.

MarkVJul 29 2009 — edited Jul 29 2009
Good Morning,

Is it possible to find all the SQL statements run for a particular user using the v$ views? I can do it it 10g however I am currently using 9i and the query below does not work.
select a.username,a.logon_time,b.sql_fulltext 
from v$session a,v$sqlarea b 
where a.sql_id=b.sql_id
and a.username='USER'
order by a.logon_time desc
I assume some columns in these views do not exist in 9i. The release of 9 I am using is 9.2.0.1.0.

You help is much appreciated.

Thanks,
Mark.
This post has been answered by Florian W. on Jul 29 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 26 2009
Added on Jul 29 2009
3 comments
4,072 views