日期:2014-05-16  浏览次数:20453 次

解决ora数据库锁表问题

//查询锁表

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;

//删除锁表记录

alter system kill session 'sid,serial#'