解决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#'



你可能感兴趣的:(oracle)