2 Star 0 Fork 0

mirrors_ReneNyffenegger/fatdba-Oracle-Database-Scripts

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ash_cachebufferchain.sql 989 Bytes
一键复制 编辑 原始数据 按行查看 历史
Prashant Dixit 提交于 2022-03-02 11:51 . Create ash_cachebufferchain.sql
col objn format a30
col sname format a30
col otype format a10 trunc
col obj format a40
col tbs format a25
col cnt format 9999
col p1 format 999999999999
col p2 format 9999
col p3 format 999999
col fno format 9999
col blkno format 9999999
break on obj on otype skip 1
select o.owner||'.'||nvl(object_name,CURRENT_OBJ#) obj
,o.object_type otype
,o.subobject_name sname
,ash.current_file# fno
,ash.current_block# blkno
,count(*) cnt
,ash.SQL_ID sql_id
,ash.p1 p1
,ash.p2 p2
from v$active_session_history ash
,all_objects o
where event ='latch: cache buffers chains'
and o.object_id (+) = ash.CURRENT_OBJ#
and ash.session_state ='WAITING'
and ash.sample_time > sysdate - &&last_x_mins/(60*24)
group by o.owner
,o.object_name
,ash.current_obj#
,o.object_type
,o.subobject_name
,ash.current_file#
,ash.current_block#
,ash.sql_id
,ash.p1
,ash.p2
order by 2,1
;
马建仓 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

搜索帮助