Database Tuning (MOSC)

MOSC Banner

12.2.0.1 : Query to check performance

edited Feb 3, 2020 4:01AM in Database Tuning (MOSC) 3 commentsAnswered

Hi ,

I would like to check  database health  in order to decide whether to diagnose its performance.

The objective is to periodically pass a query on a database and the result of this query lets you know if the performance of this database is worth diagnosed.

For example : CACHE HIT RATIO

SELECT

    round(

        (1 - (phy.value / (cur.value + con.value) ) ) * 100,

        2

    ) "Cache Hit Ratio"

FROM

    v$sysstat cur,

    v$sysstat con,

    v$sysstat phy

WHERE

        cur.name = 'db block gets'

    AND

        con.name = 'consistent gets'

    AND

        phy.name = 'physical reads';

Best regards.

GD

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center