oracle 锁表、解锁的语句


--1.以下的语句用来查询哪些对象被锁:
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;
 --2.以下的语句用来杀死一个进程:
alter system kill session '24,111'; (当中24,111各自是上面查询出的sid,serial#)

原文地址:https://www.cnblogs.com/bhlsheji/p/5082715.html