码迷,mamicode.com
首页 > 数据库 > 详细

oracle数据库解锁

时间:2014-05-14 17:43:54      阅读:331      评论:0      收藏:0      [点我收藏+]

标签:oracle   数据库   system   

数据库解锁
SELECT A.OWNER,
A.OBJECT_NAME,
B.XIDUSN,
B.XIDSLOT,
B.XIDSQN,
B.SESSION_ID,
B.ORACLE_USERNAME,
B.OS_USER_NAME,
B.PROCESS,
B.LOCKED_MODE,
C.MACHINE,
C.STATUS,
C.SERVER,
C.SID,
C.SERIAL#,
C.PROGRAM
FROM ALL_OBJECTS A,
V$LOCKED_OBJECT B,
SYS.GV_$SESSION C
WHERE ( A.OBJECT_ID = B.OBJECT_ID )
AND (B.PROCESS = C.PROCESS )
ORDER BY 1,2
alter system kill session ‘sid, serial#‘
alter system kill session ‘154, 1798‘
alter system kill session ‘139, 8118‘


oracle数据库解锁,布布扣,bubuko.com

oracle数据库解锁

标签:oracle   数据库   system   

原文地址:http://yangleitse.blog.51cto.com/2336747/1410785

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!