利用V$session,dba_objects和V$locked_Object找到谁给你的对象加了锁

V$locked_Object和dba_objects用object_id可以关联起来,找到dba_objects.object_name,

V$session的Sid和V$locked_object的session_id内联起来,可以从V$session中的machine找到机器名。进而找到机器。

使用alter system kill session 'sid,serial#'


select V$session.sid,V$session.machine,dba_objects.object_Name

from V$session.sid inner join V$locked_object on V$session.sid=V$locked_object.session_id

inner join dba_objects on dba_objects.object_id = V$locked_object.object_id;

你可能感兴趣的:(session)