That query was perfect. But I need some more info. What I need to do is run this query every five minutes and store the data in a table and flat file. But I do not want the data over written every time the script is executed. So can you please help me to create a script which can do this on OS and DB level.
Main Topics
Browse All Topics





by: adixitPosted on 2004-02-06 at 21:58:27ID: 10296946
select s.username, s.sid, s.status, q.sql_text
from v$session s, v$sql q
where q.address (+) = s.sql_address
and q.hash_value (+) = s.sql_hash_value
order by 1,2
/