⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 latch_holders.sql

📁 oracle dba 常用的管理脚本, 覆盖日常的系统管理.
💻 SQL
字号:
--* 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -