SELECT 1 - (phy.value - lob.value - dir.value)
/ ses.value "CACHE HIT RATIO"
FROM v$sysstat ses, v$sysstat lob,
v$sysstat dir, v$sysstat phy
WHERE ses.name = 'session logical reads'
AND dir.name = 'physical reads direct'
AND lob.name = 'physical reads direct (lob)'
AND phy.name = 'physical reads'
/
/ ses.value "CACHE HIT RATIO"
FROM v$sysstat ses, v$sysstat lob,
v$sysstat dir, v$sysstat phy
WHERE ses.name = 'session logical reads'
AND dir.name = 'physical reads direct'
AND lob.name = 'physical reads direct (lob)'
AND phy.name = 'physical reads'
/
출저 : 싸구려코드 블로그 ( http://sarangsai.com/154 )
'[ Programing ] > Database' 카테고리의 다른 글
[Oracle] SharedServer 및 Dispatchers 확인 (0) | 2010.01.29 |
---|---|
[DB2] db2 lock 확인 (0) | 2010.01.29 |
[SQL] 기초 수정 관련 (0) | 2010.01.28 |
[SQL] 기초 삽입 관련 (0) | 2010.01.28 |
[SQL] 기초 검색 관련 (0) | 2010.01.27 |