oracle杀掉表锁住的会话
//查询锁住的会话
SELECT l.session_id sid, s.serial#, l.locked_mode,l.oracle_username,
l.os_user_name,s.machine, s.terminal, o.object_name, s.logon_time
FROM v
l
o
c
k
e
d
o
b
j
e
c
t
l
,
a
l
l
o
b
j
e
c
t
s
o
,
v
locked_object l, all_objects o, v
lockedobjectl,allobjectso,vsession s
WHERE l.object_id = o.object_id
AND l.session_id = s.sid
ORDER BY sid, s.serial# ;
//杀掉会话 ‘sid,serial#’替换为查询出来id和serial
alter system kill session ‘68,4858’