Oracle查看哪些表被鎖住了


--查看哪些表被鎖住了
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;

--查詢引起死鎖的會話
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;

--查出sid和serial#
select sid,serial#,paddr from v$session where sid = 259;

--查v$process視圖,得到spid
select spid from v$process where addr= '00000003E32BDE28';

--殺死進程(sid,serial#)
alter system kill session '259,37152';


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM