Oracle query deadlock

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'));

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324864645&siteId=291194637