oracle pl sql 解锁表
2014-09-12 16:33 VinpleZhang 阅读(307) 评论(0) 编辑 收藏 举报select p.spid,a.serial#, c.object_name,b.session_id,b.oracle_username,b.os_user_name from v$process p,v$session a, v$locked_object b,all_objects c where p.addr=a.paddr and a.process=b.process and c.object_id=b.object_id ;
ALTER system KILL session 'SessionID,serial#';
如果有多个sid 和serial# 重复删除每条记录