Oracle Database 10g helps to reduce the time spent by the DBA on routine database-monitoring tasks by automatically sending messages with information about performance or resources-allocation issues and suggesting remedial actions. A server-generated alert from the Oracle Database 10g server is a perfect example of a notification message about an impending problem. This message contains details about the error/alert condition and may contain recommendations for fixing the problem. Server-based alerts can also be based on threshold levels of different metrics, as explained earlier in this chapter. MMON schedules the database-monitoring actions as explained earlier in this chapter. If the database detects any unusual conditions, it invokes the MMON to take immediate action and sends an alert. Along with the database alerts, many database components perform self-tuning on their own by using the history of metric values in the AWR. OEM used to collect many of these alerts in earlier editions. OEM alerts differ from server-generated alerts in that metrics computation and threshold validations are done by the Oracle Database 10g and not by the OEM agent. There are two kinds of server generated alerts:
Whenever an alert is generated, it is sent to a predefined persistence queue called alert_que (owned by SYS). OEM reads this queue and provides notifications on outstanding alerts along with suggestions for any corrective actions. These alerts are displayed on the OEM console. As discussed in Chapter 3, "Customizing Installation Options," in the section titled "Setup, Response, and Clearing of Alerts," OEM can send these messages to pager numbers or to email addresses. If the alert cannot be written to the alert_que, Oracle will record a message about the alert to the database alert log.
|