0% found this document useful (0 votes)
80 views

SQL Based Metric Extension Oem12c1

The document provides steps to create a SQL-based metric extension in Oracle Enterprise Manager 12c to generate alerts if any or all concurrent managers are down. Key steps include selecting the target type as cluster database, writing an SQL query to check the concurrent manager status, setting the critical value to 0, and deploying the metric extension to targets. Once published, other users can see and use the new metric extension to monitor the concurrent manager availability.

Uploaded by

Huynh Tran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
80 views

SQL Based Metric Extension Oem12c1

The document provides steps to create a SQL-based metric extension in Oracle Enterprise Manager 12c to generate alerts if any or all concurrent managers are down. Key steps include selecting the target type as cluster database, writing an SQL query to check the concurrent manager status, setting the critical value to 0, and deploying the metric extension to targets. Once published, other users can see and use the new metric extension to monitor the concurrent manager availability.

Uploaded by

Huynh Tran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Author: Subir Paul

SQL based Metric Extensions:

Purpose: How to create SQL based Metric Extensions (ME) in OEM 12c
Ex: Here SQL based ME is used for generating alert if any/all of Concurrent Managers are down
Steps:
>>Log on to OEM 12c using sysman/ or any user with system administrator role /
user with atleast Resource Type Privileges: Create Metric Extension
>> Enterprise → Monitoring → Metric Extensions
1.) In General Properties:
Target Type: Cluster Database
Name: Conc_Manager_status_check
Display Name: Concurrent Manager Status Check
Adapter: SQL
Description: Concurrent Managers are up or not
U 2.) Adapter:

SQL Query:

Write the SQL statement in SQL query


U 3.) Columns:
Name: Concurrent_Manager_Status
Display Name: Concurrent Manager Services Status
Column Type: Data Type
Value Type: Number
Comparison Operator: !=
Critical: 0
Alert Message: All or some of the Concurrent Managers are down.
Metric Category: Availability
U 4.) Credentials:
You can choose “Use Default Monitoring Credentials” or “Specify Credential Set”. Here I have selected
“Specify Credential Set” myCustomDBCreds which is customized.

5.) TEST :
U U

Add the desired Target (Target Type: ‘Cluster Database’ for RAC or Database Instance for non RAC DB) by
clicking “Add”

Click on “Run Test”


The Desired Output will be displayed as shown above.
U 6.) Review :

Review once all the fields and then click “submit” if everything is OK else click on Back to make the
necessary changes.

A pop up as “Confirmation “appears which shows that means Metric Extension has been created
successfully.

The status of ME is now Editable


Select ME$Conc_Manager_status_check then go to Actions → Save as Deployable Draft

Again Select ME$Conc_Manager_status_check then goto Actions → Deploy to Targets

Click on “Add” and select Target Name: hostname.xxx.com and click on “Submit”

A popup as “Confirmation” appears which shows that the Metric Extension has been successfully
deployed for the selected target name.

Goto Enterprise → Monitoring → Metric Extensions


Select ME$Conc_Manager_status_check then goto Actions → Publish Metric Extension

once published, other users are able to see the created Metric Extension.
To Check ,goto Targets --> All Targets
select the Target type
go to “metric and policy settings” and check whether that ME is reflecting there or not.

Alert will be generated once the output of SQL query is not equal to zero.

A sample alert is shown below


Reference: http://docs.oracle.com/cd/E24628_01/doc.121/e24473/metric_extension.htm
2TU U2T

= = = = THANKS = = = =

You might also like