时间:2021-07-01 10:21:17 帮助过:16人阅读
或者
SELECT b.owner, b.object_name, a.session_id, a.locked_mode FROM v$locked_object a, dba_objects b WHERE b.object_id = a.object_id;
---查看锁表进程SQL语句2:
SELECT * FROM v$session t1, v$locked_object t2 WHERE t1.sid = t2.SESSION_ID;
或者
SELECT b.username, b.sid, b.serial#, logon_time FROM v$locked_object a, v$session b WHERE a.session_id = b.sid ORDER BY b.logon_time;
--查看数据库连接进程
SELECT sid, serial#, username,osuser FROM v$session;
--杀掉锁的进程 sid,serial#
ALTER SYSTEM KILL SESSION ‘sid,serial‘;
Oracle锁表处理操作笔记
标签:Owner 语句 oracle锁 数据库 name ssi dba pre blog