Metrics Monitoring and Customization


Oracle Database 10g metrics are tracked using AWR. Each metric has threshold values associated with them. Whenever a metric value reaches its threshold, an alert is generated. Alerts are also generated when a previous alert is cleared, when a change in the availability of a monitored service occurs, or when a specific error condition or database action occurs. MMON wakes up every minute to check the metric values. For metrics with thresholds, MMON verifies those values and generates alerts as needed.

The database-usage metrics are divided into two broad categories: database feature usage and high watermark (HWM) value of certain database attributes. These metrics are useful for getting an idea of any resource usage within the database and for determining how often a particular feature is used. MMON tracks and records both these usage metrics on a weekly basis. The tracking is based on a sampling mechanism of the data dictionary. These statistics are recorded in AWR snapshots and can be viewed with queries on DBA_FEATURE_USAGE_STATISTICS and DBA_HIGH_WATER_MARK_STATISTICS. The OEM can also be used to view the recorded statistics. The following query is just a sample code for listing the currently used database features:

[View full width]

select dbid, name, sample_interval, first_usage_date, last_usage_date from dba_feature_usage_statistics where currently_used='TRUE';

Oracle Enterprise Manager can be used to view and customize the threshold values for metrics with the following steps:

1.

Start Oracle Enterprise Manager and connect to the target database.

2.

On the database Home page, click the Manage Metrics link at the bottom.

3.

On the Thresholds page, click the Edit Thresholds link.

4.

On the Edit Thresholds page, shown in Figure 6.6, select the metric to be customized and edit its values. Add entries in the Response Action field, if any.

Figure 6.6. Using the OEM to customize threshold values for metrics.


5.

Click OK to save the changes made to the metrics.



    Oracle Database 10g Insider Solutions
    SUSE LINUX Enterprise Server 9 Administrators Handbook
    ISBN: 672327910
    EAN: 2147483647
    Year: 2006
    Pages: 214

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net