查询锁表语句:
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#';
转载于:https://www.cnblogs.com/g253187360/p/8110695.html