2 Star 0 Fork 0

mirrors_ReneNyffenegger/fatdba-Oracle-Database-Scripts

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
p_ash_blockers.sql 914 Bytes
一键复制 编辑 原始数据 按行查看 历史
Prashant Dixit 提交于 2022-03-03 13:25 . Update p_ash_blockers.sql
col sid format 99999
col cnt format 99
col objid format 99999999
col event format a32
col module format a25 trunc
col machine format a35 trunc
col program format a35 trunc
break on stime on pdt on bsid skip 1
select to_char(sample_time,'MM/DD HH24:MI') stime
,to_char(new_time(sample_time,'GMT','PDT'),'MM/DD HH24:MI') PDT
,BLOCKING_SESSION bsid
,count(*)
,SQL_ID
,CURRENT_OBJ# objid
,event event
,module
from DBA_HIST_ACTIVE_SESS_HISTORY
where to_char(new_time(sample_time,'GMT','PDT'),'MM/DD HH24:MI') between '07/25 02:50:00'
and '07/25 03:10:00'
and BLOCKING_SESSION is not null
and event not like 'log file %'
group by to_char(sample_time,'MM/DD HH24:MI')
,to_char(new_time(sample_time,'GMT','PDT'),'MM/DD HH24:MI')
,BLOCKING_SESSION
,SQL_ID
,CURRENT_OBJ#
,event
,module
order by to_char(sample_time,'MM/DD HH24:MI')
,BLOCKING_SESSION
,event
,SQL_ID
;
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_ReneNyffenegger/fatdba-Oracle-Database-Scripts.git
git@gitee.com:mirrors_ReneNyffenegger/fatdba-Oracle-Database-Scripts.git
mirrors_ReneNyffenegger
fatdba-Oracle-Database-Scripts
fatdba-Oracle-Database-Scripts
main

搜索帮助