Professional Documents
Culture Documents
5-2 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.
Metrics and Alerts
5-3 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.
Limitation of Base Statistics
2M
High rate
V$SYSSTAT
I/O
Physical reads 30 minutes
Time
2M
Low rate
30 minutes
I/O
Statistics just keep
growing.
Time
5-4 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.
Typical Delta Tools
5-5 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.
Oracle Database 11g Solution: Metrics
V$SYSMETRIC V$FILEMETRIC
V$METRICNAME
V$SESSMETRIC V$EVENTMETRIC
V$SERVICEMETRIC V$WAITCLASSMETRIC
Base statistic 1
5-6 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.
Benefits of Metrics
DBA
Query a metric.
Analyze differences.
5-7 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.
Viewing Metric History Information
• In memory:
– V$SYSMETRIC_HISTORY (last hour)
– V$FILEMETRIC_HISTORY
– V$WAITCLASSMETRIC_HISTORY (last hour)
– V$SERVICEMETRIC_HISTORY
– V$SESSION_WAIT_HISTORY (last 10 events)
• On disk:
– DBA_HIST_SYSMETRIC_SUMMARY
– DBA_HIST_SYSMETRIC_HISTORY
– DBA_HIST_SESSMETRIC_HISTORY
– DBA_HIST_SYSTEM_EVENT (cumulative)
– DBA_HIST_FILEMETRIC_HISTORY (alerts only)
– DBA_HIST_FILESTATXS (cumulative)
– DBA_HIST_WAITCLASSMET_HISTORY (alert)
5-8 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.
Using EM to View Metric Details
5-9 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.
Statistic Histograms
High rate
V$SYSSTAT
I/O
Physical reads 30 minutes
Time Is it a
real
5500 problem?
V$FILE_HISTOGRAM
Number
of
waits
Time
1 2 4 8 16 32 64 128 256 512 … 222 period
Enterprise Manager
Alert
queue
Oracle
instance
Metric exceeds
threshold.
AWR
Receive notification.
1. Specify a threshold.
2. Create a test case.
3. Check for an alert.
DBA_HIST_SYSMETRIC_HISTORY
...
DBA_OUTSTANDING_ALERTS
V$SYSMETRIC_HISTORY
DBA_ALERT_HISTORY
V$SYSMETRIC
DBA_THRESHOLDS
V$SERVICEMETRIC
V$ALERT_TYPES
V$METRICNAME
...
...