ORACLE锁表解表语句
查询锁表语句:
select object_name, machine, s.sid, s.serial# from gv$locked_object l, dba_objects o, gv$session s where l.object_id = o.object_id and l.session_id = s.sid;
解锁语句:
alter system kill session 'sid,serial#';
查询锁表语句:
select object_name, machine, s.sid, s.serial# from gv$locked_object l, dba_objects o, gv$session s where l.object_id = o.object_id and l.session_id = s.sid;
解锁语句:
alter system kill session 'sid,serial#';