Oracle 表锁与解锁

1. 查询 Oralce 被锁定的表信息

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#)
posted @ 2016-03-25 16:24 何旭 阅读(...) 评论(...) 编辑 收藏