解锁bai代码:
alter system kill session ‘sid, serial#’;
举例:ALTER system kill session ‘23, 1647’;
1、下面的语句用查询哪些对象被锁:
select object_name,machine,s.sid,s.serial#
from v
l
o
c
k
e
d
o
b
j
e
c
t
l
,
d
b
a
o
b
j
e
c
t
s
o
,
v
locked_object l , dba_objects o , v
lockedobjectl,dbaobjectso,vsession s
where l.object_id = o.object_id and l.session_id=s.sid;
2、下面的语句用shu杀死一个4102进程:
alter system kill session ‘24,111’; (其中24,111分别是上面查1653询出的sid,serial#)