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