oracle表解锁
oracle数据库,表/记录被其他事务加锁,如果要强制解锁的话,先找到锁表的会话,然后将其杀掉即可。
SELECT b.owner, b.object_name, l.session_id, l.locked_mode
FROM v$locked_object l, dba_objects b
WHERE b.object_id = l.object_id;
SELECT t2.username, t2.sid, t2.serial#, t2.logon_time
FROM v$locked_object t1, v$session t2
WHERE t1.session_id = t2.sid
ORDER BY t2.logon_time;
alter system kill session 'sid,serial#';