Sunteți pe pagina 1din 8

Basic Definition of Oracle Alert is :

1. To Monitor Activity of Business Needs. e.g Sending Email ,calling Concurrent Program,SQL Scripts and
Operating System Scripts.

Types of Oracle Alerts


Periodic Alert: Periodic Alert Fires at pre defined set of Time.e.g suppose you want to Email all Order Booked today
We can Use Periodic Alerts.
Event Alerts: Event Alerts Fires when particular database activity occurs e.g inserting record and updating record of
tables.

How to Design Periodic Alerts:


Design of Periodic Alert is explained from scratch with the help of Test Alert
Items with zero weight .
We have to design periodic alert Items with zero weight for our Client.Basic
Business need of this alerts is for Email to MIS User for List of item having Zero
Weight saved in Oracle Inventory.

STEP1: Navigate To Alert Manager Form ..


NAlert ManagerAlertsDefine

Application Field: Name of Application e.g Oracle Payable

Name : User defined Name of Alerts.

Choose Period tab

Frequency :Choose Frequency Accordingly.

Days: Choose days according to Frequency. Suppose you Chosse Frequency Every N Business Days
Then Enter Value 1 in Day Field.

Start Time: Time You want to Fire periodic alerts suppose you want to fire at 6:30 A.M Write 06:30:00
in Start Time Field.

Keep: How many days You Want to Mainitain History.

Select Statement: Write Query in select Statement . Here is an Exapmle of Select Statement for Test
Periodic Alert Items with zero weight. Select statement must include an INTO clause that contains one
output for each column selected by your Select statement.In Example all input Column like
Orgaization_code,tem_number(segment1),Description,Creation_date have Output Variable
ORG,ITEM,DESCR,Create_date preceded by Amperstand(&).
Query is: Test Query for Items with zero weight Alert is

SELECT
distinct p.organization_code ,
substr(i.segment1,1,20) ,
substr(i.description,1,50),
i.creation_date,
INTO
&org
, &item
, &descr
, &create_date
FROM
mtl_system_items i,
mtl_parameters p

where i.organization_id = p.organization_id


and p.organization_code in ('INF','ENF')
and i.INVENTORY_ITEM_STATUS_CODE||'' = 'Active'
and i.unit_weight is null
and I.ITEM_TYPE = 'P'
order by 1,2

Verify: Click on Verify Button to Verify your Query. This message will populate if Query is Right.

Run: To Check Record Count of Your Query Click on Run Button. Suppose Your Query Written Zero
Rows This Message will populate.

STEP2 : Define Action:


Click on Action Button(Marked With Circle). This Form (Action Window 1.0) Will Poulate..
Explaination of Field on this Form :

Action Name:Specify Name of your Action. For Example Our Alert Items with zero weight. is for
Email.we specify name EMAIL in Action Name.

Action Level: Action level should be Summary.

Three are three Action Level

Detail - action is performed for each exception returned.


Summary - action performed once for each exception.
No Exception - action performed when no exceptions returned.

(Action Window 1.0)


Action Detail: By Click on Action Detail Button this Window (Action Detail Window 1.1)

Action Detail Window 1.1


Action Type: Four Action type.

Message - send message


Concurrent Program Request - submit concurrent program
SQL script - execute a SQL script
OS script - execute an OS script

We Choose Action Type Message because Items with zero weight Alert is for Email Purpose.

Enter Email Addrees in To Field.

Text : In Text field design Layout of your Periodic Alerts. Items with zero weight Alert Layout is this:
Important thing is that Output Variable &org,&item etc should be placed with in template like this

=**= Enter summary template below this line =**=


**&org &item &descr &create_date
=**= Enter summary template above this line =**=

Layout Sample of Test Periodic Alert Items with zero weight:

The following items currently have no weight maintained against them in the system.

Org Item Description Creation Date


=== ==================== ============================== =============
=**= Enter summary template below this line =**=
**&org &item &descr &create_date
=**= Enter summary template above this line =**=
Column OverFlow: Wrap

Max Width: Choose According to Requirments.

80 Characters

132 Characters

180 Characters

STEP3 : Define Action Sets:


Enter the groups of action to be run. Click on Action Sets Button.
Action Set Window (Shown in Pictiure Action set Window 1.2) will populate.

Action set Name: Enter Action Set Name. In our Test Alert we enter Action set Name EMAIL.

Note : Action set Name should be same as in Action Name. Otherwise Periodic Alert will not Fire.

Action Set Window 1.2

Action set Name: Enter Action Set Name. In our Test Alert we enter Action set Name EMAIl.
Output Tab: Output tab Contain List of Output Variable defoen in select Statement as shown in Window
1.4.Note that if you Output tab is Blank Requery the Alert then it will show output Variable.
This problem we generally faced when designing periodic Alerts.

(Window 1.4)

Member Tab: Enter Name of Action .

Related Articles to Read

S-ar putea să vă placă și