\\ query is locked object, source, sid and serial
select object_name, machine, s.sid, s.serial# from v$locked_object l, dba_objects o, v$session s where l.object_id = o.object_id and l.session_id = s.sid
\\ kill session link, SID and SERIAL correspond to the
alter system kill session '333,9767';
\\ If the error, do the following:
Despite the error, but certainly the state has become a state KILLED
select a.spid,b.sid,b.serial#,b.username from v$process a,v$session b where a.addr=b.paddr and b.status='KILLED';
\\ inquiry system thread ID, a spid, to query spid
select b.spid,a.osuser,b.program
from v$session a,v$process b
where a.paddr=b.addr
and a.sid=SID
\\ Log database system OS, execute the following command
kill -9 SPID
Reference website: