latch_holders.sql

来自「oracle dba 常用的管理脚本, 覆盖日常的系统管理.」· SQL 代码 · 共 25 行

SQL
25
字号
--* File Name    : Latch_Holders.sql
--* Author       : DR Timothy S Hall
--* Description  : Displays information about all current latch holders.
--* Requirements : Access to the V$ views.
--* Call Syntax  : @Latch_Holders
--* Last Modified: 15/07/2000
SET LINESIZE 500
SET PAGESIZE 1000
SET VERIFY OFF

SELECT a.name "Latch Name",
       b.pid "PID",
       b.sid "SID",
       a.gets "Gets (Wait)",
       a.misses "Misses (Wait)",
       a.sleeps "Sleeps (Wait)",
       a.immediate_gets "Gets (No Wait)",
       a.immediate_misses "Misses (Wait)"
FROM   v$latch a,
       v$latchholder b
WHERE  a.addr = b.laddr
ORDER BY 1;

SET PAGESIZE 14
SET VERIFY ON

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?