Top Banner
Oracle Alerts …For the beginners only… By Ratan Banerjee
32

Oracle Alerts

Nov 18, 2014

Download

Documents

kchukkapalli
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Oracle Alerts

Oracle Alerts

…For the beginners only…

By Ratan Banerjee

Page 2: Oracle Alerts

Contents

• What is Oracle Alert?

• What are the difference types of Alert?

• How to set up an Alert? (Different components of Alert)

• How Alert Works?

• Limitations of Oracle Alert?

Page 3: Oracle Alerts

What is Oracle Alert?

• Complete exception control solution

• Easy electronic emailing

• Execution of process

• Schedule in regular interval

• Replacement of Database Trigger

• Take predefined actions

• Take actions depends on user response.

Page 4: Oracle Alerts

Alerts

• Periodic Alert– Variable frequency

• Event Alert– All possible events

• Customized Alert Frequency• Customized Alert Actions

(Details / Summary action, No exception, History, Duplicate Checking

• Action Escalation• Response Processing

Page 5: Oracle Alerts

Creating a Periodic Alert

• Set Frequency (On Demand, On day of …)

• Set time / interval

• Enter / import select statement

• Verify / Run select statement

Page 6: Oracle Alerts

Creating a Periodic Alert

Page 7: Oracle Alerts

Creating an Event Alert

• Application & Table name

• After Insert / Update on Table

• Enter / import select statement

• Verify / Run select statement

Caution : No event alert on FND_CONCURRENT_REQUESTS

Page 8: Oracle Alerts

Creating an Event Alert

Page 9: Oracle Alerts

Sample Select Statement

SELECT user_name, password_date, :THRESHOLD_DAYSINTO &USER, &LASTDATE, &NUMDAYSFROM fnd_userWHERE sysdate = NVL(password_date,sysdate) +

:THRESHOLD_DAYSORDER BY user_name

Page 10: Oracle Alerts

Specifying Alert Details (Input)

Reserved Inputs :- ROWID, MAILID, ORG_ID, DATE_LAST_CHECKED.

Page 11: Oracle Alerts

Specifying Alert Details (Output)

Page 12: Oracle Alerts

Specifying Alert Details (Installation)

Page 13: Oracle Alerts

Alert Actions

• Message actions• Concurrent program actions• Operating script actions• SQL statement script actions

Page 14: Oracle Alerts

Create Alert Action

Page 15: Oracle Alerts

Create Action Detail (email)

Page 16: Oracle Alerts

Define a Distribution List

Page 17: Oracle Alerts

Create Action Details (submit a concurrent Program)

Page 18: Oracle Alerts

Create Action Details (Operating System Script)

Page 19: Oracle Alerts

Create Action Details (SQL Statement Script)

Page 20: Oracle Alerts

Create a Action Set

Page 21: Oracle Alerts

Alert History & Escalation

• Keep No of days

• Check for Duplicates

• Tools Escalation Group

• Include Escalation Group to Action Set

Page 22: Oracle Alerts

Review Alert History

Page 23: Oracle Alerts

Response Processing Alert

• Define an alert• Create an alert message action that

solicits a response• Create response actions• Define an action set• Create a response set• Define possible responses• Attach the response set to the alert

message action

Page 24: Oracle Alerts

Response Processing Alert(Response Set)

Page 25: Oracle Alerts

Response Processing Alert(Response Variables)

Page 26: Oracle Alerts

Response Processing Alert(Valid Responses)

Page 27: Oracle Alerts

Response Processing Alert(Invalid Responses)

Page 28: Oracle Alerts

Response Processing Alert(No Responses)

Page 29: Oracle Alerts

How Alert Checks

• Periodic Alert Scheduler

• Check Periodic Alert

• Check Event Alert

• Response Processor

Page 30: Oracle Alerts

Manually submit Periodic alert

Page 31: Oracle Alerts

Manually submit Event Alert

• Update your table with specific action.

?

Page 32: Oracle Alerts

Setting up Oracle Alert

Will be covered in next session…