Try this in SQL*Plus, given to me by most excellent Oracle DBA, Ping
Zhang
ttitle CENTER "Current active SQL statements" skip 1 -
CENTER "=========================" skip 1
set pagesize 30
set linesize 80
set feedback off
col sid format 999
col username format A8
break on sid on username skip 1
select a.sid, a.username, b.sql_text from v$session a,
v$sqltext b
where a.sql_address = b.address and a.sql_hash_value=b.hash_value
and a.username is not null and a.status = 'ACTIVE' and a.user# != uid
order by a.sid, b.piece
/
set feedback on
set pagesize 14
Any typos are my own and not Ping's!
Hope this helps.
Mary Travis
BellSouth Telecommunications
Mary Travis
BellSouth Telecommunications
email: Mary.B...@bridge.bellsouth.com