Oracle查詢死鎖


select sample_time,session_id,sql_id,event,sql_plan_hash_value,blocking_session from dba_hist_active_sess_history where to_char(sample_time,'yyyy/mm/dd hh24:mi') between '2018/04/25 12:00' and '2018/04/25 14:30' and EVENT='enq: TX - row lock contention' order by sample_time desc;

select sample_time,program,machine,sql_id from dba_hist_active_sess_history where session_id=4 and to_char(sample_time,'yyyy/mm/dd hh24:mi') between '2018/04/25 12:00' and '2018/04/25 13:30'order by sample_time;

select * from v$session where sql_id='4t8gszqp02w68';

select * from table(dbms_xplan.display_awr('cx06324cr0dd4'));


免責聲明!

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



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