The Oracle (Advanced Metrics) service monitor provides checks on several internal Oracle performance statistics. To gather these statistics Uptime Infrastructure Monitor runs several queries directly against the Oracle database. Information on the exact queries and the required permissions for the Oracle (Advanced Metrics) monitor are outlined in this article.
Required Permissions
The Oracle (Advanced Metrics) service monitor selects from the following objects: v$sysstat
v$rowcache v$librarycache v$session dba_blockers
Metrics
Metric |
Explanation |
Query |
Buffer Cache Hits Ratio |
The number of buffer cache hits that are completed without accessing disk I |
column hit heading "HIT RATIO (%)" format 990.9
|
Data Dictionary Cache Hits Ratio |
The number of data dictionary cache hits that are completed without accessing disk I/O. |
column "HIT RATIO (%)" format 990.9 column "SHARED POOL" format A16 select 'DICTIONARY CACHE' "SHARED POOL", |
Library Cache Hits Ratio |
The rate at which library cache pin misses occur. |
column "HIT RATIO (%)" format 990.9 column "SHARED POOL" format A16 |
Redo Log Space Request Ratio |
The number of redo log space requests per minute that have been made since the server was started. |
column "Space requests (%)" format 990.9 select round(100 * sum(decode(name, 'redo log space requests', value, 0)) |
Disk Sort Rate |
The rate of Oracle sorts that are too large to be completed in memory and which are sorted using a temporary segment. |
select d.value * 100/(d.value + m.value) |
Active Sessions |
The number of active sessions based on the value of V$PARAMETER. PROCESSES in the file init.ora. |
set line 120 pagesize 1000 feed off; column "sid" format 999 |
|
|
program "prg" from v$session |
Oracle Blocking Sessions |
The number of sessions that are preventing other sessions from committing changes to the Oracle database. |
set line 120 pagesize 1000 feed off; select a.sid, a.username, a.program from v$session a, dba_blockers b where a.sid = b.holding_session |
Oracle Idle Sessions |
The number of Oracle sessions that are idle. |
set line 120 pagesize 1000 feed off; column "sid" format 999 |