2012年12月27日

Oracle中查询正锁表的用户及释放被锁的表的方法

摘要: 查询oracle锁定的表及杀掉锁表的进程,注意查看的时候要用sys/sys 管理员的身份登录1、首先查看锁定的表太进程:SELECT substr(v$lock.sid,1,4) "SID", serial#, V$SESSION.sid, substr(username,1,12) "UserName", substr(object_name,1,25) "ObjectName", v$lock.type "LockType", www.2cto.com decode(rtrim(substr(lmode,1,4 阅读全文

posted @ 2012-12-27 14:43 Code changes life 阅读(2959) 评论(0) 推荐(0) 编辑

导航