Académique Documents
Professionnel Documents
Culture Documents
The following few queries are runned on the pcil database for assessment of the database
performance.
Miss ratio
----------
.001634153
Library Cache
The hit ratio should be at least 85% (i.e. 0.85). The reload percent should be very
low, 2% (i.e. 0.02) or less.
In our db, it is 86% and 2%, it is sufficient, therefore Tuning is not required.
Log Buffer
NAME VALUE
---------------------------------------------------------------- ----------
redo log space requests 49
NAME VALUE
---------------------------------------------------------------- ----------
redo log space requests 49
redo log space wait time 65
NAME VALUE
---------------------------------------------------------------- ----------
SQL> select 100*(1 - (v3.value / (v1.value + v2.value))) "Cache Hit Ratio [%]"
from v$sysstat v1, v$sysstat v2, v$sysstat v3 where
v1.name = 'db block gets' and
v2.name = 'consistent gets' and
v3.name = 'physical reads';
Tuning Sorts
SQL> Select name, value from v$sysstat
where name in ('sorts (memory)', 'sorts (disk)');
NAME VALUE
---------------------------------------------------------------- ----------
Less than 1% of the sorts being to disk is optimum. In our DB, it is 0%, therefore
tuning is not required.
CLASS COUNT
------------------ ----------
system undo header 0
system undo block 0
undo header 74
undo block 2
SUM(VALUE)
----------
2336618410
ROUND(SUM(WAITS)/SUM(GETS),2)
-----------------------------
0
SQL> Select segment_name, shrinks, aveshrink, aveactive "Avg.Active"
from v$rollstat v, dba_rollback_segs d where v.usn = d.segment_id; 2 3
16 rows selected.
ROUND((SUM(DECODE(W.CLASS,'FREELIST',COUNT,0))/
(SUM(DECODE(NAME,'DBBLOCKGETS',VA
--------------------------------------------------------------------------------
0
This ratio should be less than 1%. In our DB, it is 0%. Therefore Tuning is not
recommended.
EXECUTIONS SQL_TEXT
---------- ----------------------------------------------------------------
53033 DATE_FORMAT'
26380 TERRITORY='AMERICA'
This is sufficient. Tuning is not recommended, as there is no large no. of sql statements
are selected from the above query.