lru_latch_ratio.sql

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

SQL
22
字号
--* File Name    : LRU_Latch_Ratio.sql
--* Author       : DR Timothy S Hall
--* Description  : Displays current LRU latch ratios.
--* Requirements : Access to the V$ views.
--* Call Syntax  : @LRU_Latch_Hit_Ratio
--* Last Modified: 15/07/2000
SET LINESIZE 500
SET PAGESIZE 1000
COLUMN "Ratio %" FORMAT 990.00
 
PROMPT
PROMPT Values greater than 3% indicate contention.

SELECT a.child#,
       (a.SLEEPS / a.GETS) * 100 "Ratio %"
FROM   v$latch_children a
WHERE  a.name      = 'cache buffers lru chain'
ORDER BY 1;


SET PAGESIZE 14

⌨️ 快捷键说明

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