Cache Hit Ratio per user

SET LINESIZE 500
COLUMN “Hit Ratio %” FORMAT 999.99

SELECT a.username “Username”,
b.consistent_gets “Consistent Gets”,
b.block_gets “DB Block Gets”,
b.physical_reads “Physical Reads”,
Round(100* (b.consistent_gets + b.block_gets – b.physical_reads) /
(b.consistent_gets + b.block_gets),2) “Hit Ratio %”
FROM v$session a,
v$sess_io b
WHERE a.sid = b.sid
AND (b.consistent_gets + b.block_gets) > 0
AND a.username IS NOT NULL;

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: