Alert Creation Demo Bijoy Joseph
Alert Creation Demo Bijoy Joseph
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
3) We shall create Event Based Alert as shown below. Select the Event Tab to create Event Based Alert.
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.
6) Action Name Action Detail Perform Action with the help of SQL Query
7) Action Detail Action Type -> SQL Statement Script Application -> Human Resource Text (B) -> Query
8) Action Sets:
9) Action Set Name: Name of the action set name should be same as of the Action Name
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
15) Check History of the Alert: Responsibility: Alert Manger -> History
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.
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