Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> How to watch another connection
Hallo !
I have got the folowing problem:
I want to get the SQL-Statement, another connection is currently working on. I tried to do this with the following statement:
select
SID
, USERNAME
, LOCKWAIT
, SQL_ADDRESS
, SQL_HASH_VALUE
, SQL_TEXT
from v$session a
, V$SQLTEXT b
where sid = xxx and b.ADDRESS = a.SQL_ADDRESS and b.HASH_VALUE = a.SQL_HASH_VALUE
But the statement I get doesn't seem to be the right one !
Can anybody help me ?
Thank You
Marcus Received on Wed Jul 11 2001 - 10:41:11 CDT