12
Oracle Alerts Oracle Alerts is something that can be used to Notify/Alert to one or multiple persons about an activity or change that occurs in the system. The alerts can also be used to call a procedure, run some SQL script etc. There are 2 types of alert 1) Periodic Alert 2) Event Alert Periodic Alerts: These alerts are trigger periodically, hourly, daily, weekly, monthly etc based upon how it is setup to be triggered. When alert runs and the condition(SQL Query etc.) in the alerts fetches record, then the events specified in the alert are triggered. Ex. 1) Daily alert to send notification on the sales order on which credit check hold is applied for a day 2) Hourly alert to send notification on all the concurrent request that completed with error Event Alerts: These Alerts are fired/triggered based on some change in data in the database. This is very similar to the triggers written on the table. Unlikely, event alerts can only fire on After Insert or After Update. Ex. 1) An alert that sends notification when new item is created. The steps to create Event based Oracle Alert are as follows: 1) Responsibility : Alert Manager 2) Alert - > Define Oracle Alerts – Bijoy Joseph

Alert Creation Demo Bijoy Joseph

Embed Size (px)

Citation preview

Page 1: Alert Creation Demo Bijoy Joseph

Oracle Alerts

Oracle Alerts is something that can be used to Notify/Alert to one or multiple persons about an activity or change that occurs in the system. The alerts can also be used to call a procedure, run some SQL script etc.There are 2 types of alert1) Periodic Alert2) Event Alert

Periodic Alerts:These alerts are trigger periodically, hourly, daily, weekly, monthly etc based upon how it is setup to be triggered. When alert runs and the condition(SQL Query etc.) in the alerts fetches record, then the events specified in the alert are triggered.Ex. 1) Daily alert to send notification on the sales order on which credit check hold is applied for a day2) Hourly alert to send notification on all the concurrent request that completed with error

Event Alerts: These Alerts are fired/triggered based on some change in data in the database. This is very similar to the triggers written on the table. Unlikely, event alerts can only fire on After Insert or After Update.Ex. 1) An alert that sends notification when new item is created.

The steps to create Event based Oracle Alert are as follows:

1) Responsibility : Alert Manager2) Alert - > Define

Oracle Alerts – Bijoy Joseph

Page 2: Alert Creation Demo Bijoy Joseph

3) We shall create Event Based Alert as shown below. Select the Event Tab to create Event Based Alert.

Oracle Alerts – Bijoy Joseph

Page 3: Alert Creation Demo Bijoy Joseph

4) Alert -> Event Name: Give Meaning full names depending upon the requirement of the alert Description: Give proper description, pertaining to the alert Table: Alert to be generated on Action: After Insert/After Update Query: Core Logic of the alert Verify: Verify the Query before saving the alert Run: Run to see if the query is working fine.

5) Action: Define the action of the alert

Oracle Alerts – Bijoy Joseph

Page 4: Alert Creation Demo Bijoy Joseph

6) Action NameAction Detail – Perform Action with the help of SQL Query

7) Action Detail Action Type -> SQL Statement ScriptApplication -> Human ResourceText (B) -> Query

Oracle Alerts – Bijoy Joseph

Page 5: Alert Creation Demo Bijoy Joseph

8) Action Sets:

9) Action Set Name: Name of the action set name should be same as of the Action Name

Oracle Alerts – Bijoy Joseph

Page 6: Alert Creation Demo Bijoy Joseph

10) Action Set Details:Outputs: Parameters Defined will be displayed here

11) Action Set Details:Members: Define the Sequence and the name of the action defined for the alert

Oracle Alerts – Bijoy Joseph

Page 7: Alert Creation Demo Bijoy Joseph

12) Alert Details: Define the Operating Units

13) Alert Details: Outputs

Oracle Alerts – Bijoy Joseph

Page 8: Alert Creation Demo Bijoy Joseph

14) Alert Details: Operating Units

15) Check History of the Alert:Responsibility: Alert Manger -> History

Oracle Alerts – Bijoy Joseph

Page 9: Alert Creation Demo Bijoy Joseph

16) Find Actions: Gets the History of the alert fired.

17) Example: Name has been changed from Bijoys to Bijoy....Alert has to fire on update

18) KFSH_TEMP_ASSIGNEMT_TABLE: Alert has been fired and record has been inserted.

Oracle Alerts – Bijoy Joseph

Page 10: Alert Creation Demo Bijoy Joseph

Important Alert Tables:

ALR_ALERTS ALR_ACTIONS ALR_ACTION_SETS ALR_ACTION_SET_INPUTS ALR_ACTION_SET_OUTPUTS ALR_ACTION_SET_MEMBERS ALR_ALERT_CHECKS ALR_ALERT_INPUTS ALR_ALERT_OUTPUTS ALR_ACTION_SET_CHECKS ALR_RESPONSE_SETS ALR_RESPONSE_ACTIONS ALR_VALID_RESONSES

Oracle Alert uses the following internal views:

 ALR_ALERT_ACTIONS_VIEW  ALR_ALERT_HISTORY_VIEW  ALR_CHECK_ACTION_HISTORY_VIEW  ALR_INSTALLATIONS_VIEW  ALR_PERIODIC_ALERTS_VIEW  ALR_RESPONSE_ACTIONS_VIEW  ALR_SCHEDULED_PROGRAMS  ALR_VARIABLES_AND_OUTPUTS

Oracle Alerts – Bijoy Joseph