Oracle表被锁无法问题处理

1:查出锁定表的信息
SELECT s.sid, s.serial#, s.username, s.schemaname, s.osuser, s.process, s.machine,
s.terminal, s.logon_time, l.type
FROM v$session s, v$lock l
WHERE s.sid = l.sid 
AND s.username IS NOT NULL
ORDER BY sid;


2:杀掉进程 sid,serial#
alter system kill session'161,5508';
alter system kill session'222,643';

posted @ 2018-12-13 11:27  yshy  阅读(361)  评论(0编辑  收藏  举报