Professional Documents
Culture Documents
Database Metrics in
Enterprise Manager 12c
Section 1
Historical Purposes
Alerting Purposes
Historical Purposes
Alerting Purposes
The agent connects to the database and runs sql from the scripts or metadata
xml files which are defined in the database plugin directory.
<install home of agent>/plugins/oracle.sysman.db.agent.plugin_12.1.0.X.0
The agent connects using the monitoring credentials which were supplied at
the time that the database was discovered/added in Cloud Control. By default
the monitor username is dbsnmp.
The metrics which are currently being collected can be seen from the metric and
collection settings (from the target home page)
Running the command emctl status agent scheduler on the agent machine shows all
the metric collection sets which are scheduled.
Summary
Set Database metrics from :Database Home Page/Oracle database drop down menu/monitoring/metric and collection settings
Click on "all metrics" and expand all
Set Listener metrics from:Listener Home Page/Listener drop down menu/monitoring/metric and collection settings
Click on all metrics and expand all
From here you can:Change the metric thresholds
Enable/Disable metrics
Section 2
How else can we be notified about alerts (eg. different notification methods)?
Summary
Where will the Database Metric alerts be shown?
Critical and Fatal alerts are shown in "incidents and problems" on database home page
Database home page, and incident manager are controlled by incident rules
Warning alerts can be cleared from incident manager by the default incident rule
Check for active alerts in "all metrics" (will show all active alerts even if they are old)
To prevent alerts expiring create a new incident rule (can create a copy of the oracle default
rule and edit it). Disable the default rule.
OS Command Notification
PL/SQL Notification
If intending to use any of the above methods, a Notification Method must first be created
from:Setup/Notifications/Notification Methods
In addition:The default incident rule must be subscribed to.
or
Applying a monitoring template is a one-off operation in the sense that after the
monitoring template is applied, it does not stay in sync with the monitoring template It
just copies the metric collection settings of one database to another (or multiple)
database/(s).
Section 3
Metrics which are evaluated/generated by the database itself (server generated alerts)
which the agent subscribes to.
The agent may also collect similar data (to the server generated alerts) in order to save
for historical purposes but this is not used for alerting purposes.
Note:
There is an Enhancement Request (bug:17572849) to remove the usage of server
generated alerts for Enterprise Manager Metrics.
List of server generated alerts are given in Note:564260.1 "Supported RDBMS Metric on
Oracle Database 10.2 "
Can be tested using Note: 1541511.1 How to Test Whether the "Tablespace Space
Used (%)" Metric Alert is Working as Expected for a Database Instance or Cluster
Database Instance in Enterprise Manager 12c?
Test using Note:1600486.1 How to Check that Agent Evaluated Enterprise Manager Metric
Alerts are working as Expected in Enterprise Manager 12c Cloud Control