Index Use Ratio

Submitted by UMBRO
on August 13, 2007 - 5:39pm


SELECT 'Index to Table Ratio ' "Ratio",
ROUND ( (SELECT SUM (VALUE)
FROM v$sysstat
WHERE NAME LIKE 'index fast full%'
OR NAME = 'index fetch by key'
OR NAME = 'table fetch by rowid')
/ (SELECT SUM (VALUE)
FROM v$sysstat
WHERE NAME IN
('table scans (short tables)',
'table scans (long tables)'
)),
0
)
|| ':1' "Result"
FROM DUAL;

Excerpted from

UMBRO
on
August 13, 2007 - 5:54pm

Excerpted from Digital.Press.Oracle.Performance.Tuning.for.10gR2.2nd.Edition.Sep.2006

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.