|
SQL> $HOME/rdbms/admin/utllockt.sql
select sid,type,id1,id2,lmode,request
from v$lock
where type in ('TX','TM')
/
SID TY ID1 ID2 LMODE REQUEST
---------- -- ---------- ---------- ---------- ----------
2 TM 4 0 4 0
12 TM 3 0 4 0
SQL> select holding_session,waiting_session
2 from dba_waiters;
HOLDING_SESSION WAITING_SESSION
------------------ ------------------
2 12
SQL> select sid,serial#,username from v$session
2 where sid='2';
SID SERIAL# USERNAME
---------- ---------- ------------------------------
2 1 NANU
SQL> alter system kill session '2,1';
|