Disk Sort Ratio

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


SELECT 'Sorts in Memory ' "Ratio",
ROUND ( (SELECT SUM (VALUE)
FROM v$sysstat
WHERE NAME = 'sorts (memory)')
/ (SELECT SUM (VALUE)
FROM v$sysstat
WHERE NAME IN ('sorts (memory)', 'sorts (disk)'))
* 100,
2
)
|| '%' "Percentage"
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.