AI智能
改变未来

Oracle锁表、表解锁

–查看被锁表ID

select object_name, machine, s.sid, s.serial#

from v$locked_object l, dba_objects o, v$session s

where l.object_id  =  o.object_id

and l.session_id = s.sid;

 

 

–查杀被锁进程

alter system kill session \’1020,52767\’;

赞(0) 打赏
未经允许不得转载:爱站程序员基地 » Oracle锁表、表解锁