电信运营商Oracle

返回sunwei3的回答

sunwei3sunwei3数据库管理员EBSCN

查询v$active_session_history
类似这种:
select a.session_id,

   a.BLOCKING_SESSION,
   a.sql_Id,
   to_char(sample_time, 'yyyy-mm-dd hh24:mi:ss'),
   a.time_waited

from v$active_session_history a
where a.EVENT = 'enq: TX - row lock contention'
and to_char(sample_time, 'yyyy-mm-dd hh24:mi:ss') between

   '2018-01-04 10:00:00' and '2018-01-04 11:00:00'

and a.BLOCKING_SESSION_STATUS = 'VALID'
ORDER BY to_char(sample_time, 'yyyy-mm-dd hh24:mi:ss') DESC

证券 · 2018-01-04
浏览2802

回答者

sunwei3
数据库管理员EBSCN
擅长领域: 服务器虚拟化云计算

sunwei3 最近回答过的问题

回答状态

  • 发布时间:2018-01-04
  • 关注会员:2 人
  • 回答浏览:2802
  • X社区推广