1, according to the table name query locked session
select p.spid, c.object_name,
b.session_id,a.serial#,b.oracle_username,b.os_user_name
from v$process p, v$session a,
v$locked_object b,all_objects c
where p.ADDR = a.PADDR
and a.PROCESS = b.PROCESS
and c.OBJECT_ID = b.OBJECT_ID
and c.object_name = '表名'
2, kill the locked session
alter system kill session 'sid,serial#';
3 , when using the manual "alter system kill session 'sid, serial #';" command to kill the database session after
The session information may also reside in the database for some time.
4 , from the operating system, a direct killing of an exception session.
Dos prompt :> Use orakill sid thread
: Description sid ----- Oracle 's sid (SESSION_ID) No.
thread ----- Oracle thread id (spid) No.
Use this orakill command can be in an operating system can be completely clear of;