Thanks for that, the problem is that it dosn't give very much information, I was thinking more of a script which tells me if the lock type is
RS - Row Share
RX - Row Exclusive
S - Share
SRX - Share Row Exclusive
X - Exclusive
I found the following script on the internet but was wondering if anyone had any other suggestions - preferably something simpler.
select o.name "TABLE", s.username, l.type, l.id1 dummy, l.id2 dummy,
decode(l.lmode,
0, '',
1, '*NULL',
2, '*RS',
3, '*RX',
4, '*S',
5, '*SRX',
6, '*X',
'*' || to_char(l.lmode)) ||
decode(l.request,
0, '',
1, ' NULL',
2, ' RS',
3, ' RX',
4, ' S',
5, ' SRX',
6, ' X',
' ' || to_char(l.request)) "MODE",
a.sql_text
from v$session s, v$sqlarea a, sys.obj$ o, v$lock l
where l.sid = s.sid
and l.id1 = o.obj# (+)
and s.sql_address = a.address
and s.sql_hash_value = a.hash_value
and s.username is not null
Many thanks [sig][/sig]