SQL Based Metric Extension Oem12c1
SQL Based Metric Extension Oem12c1
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:
5.) TEST :
U U
Add the desired Target (Target Type: ‘Cluster Database’ for RAC or Database Instance for non RAC DB) by
clicking “Add”
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.
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.
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.
= = = = THANKS = = = =