Sunteți pe pagina 1din 11

Introduction: 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 ! "eriodic Alert 2! #vent Alert Periodic Alerts: These alerts are trigger periodically, hourly, daily, $ee%ly, monthly etc based upon ho$ it is setup to be triggered. &hen alert runs and the condition'()* )uery etc.! in the alerts fetches record, then the events specified in the alert are triggered. #+. ! ,aily alert to send notification on the sales order on $hich credit chec% hold is applied for a day 2! -ourly alert to send notification on all the concurrent request that completed $ith error .//f you $ant to %no$ list of items created on that day at the end of day you can use periodic alerts repeating periodically by single day.This alert is not based on any chages to database.this alert $ill notify you everyday regardless of data e+ists or not that means even if no items are created you $il get a blan% notification. Event Alerts: These Alerts are fired/triggered based on some change in data in the database. This is very similar to the triggers $ritten on the table. 0nli%ely, event alerts can only fire on After /nsert or After 0pdate. #+. ! An alert that sends notification $hen ne$ item is created. #+: /f u $ant to notify your manager $hen you create an item in the inventory you can use event based alerts. &hen you create an item in the inventory it $ill cretae a ne$ record in mtl1system1items1b, here inserting a record in the table is an event so $hen ever a ne$ record is inserted it $ill send the alert./n same alert you can also send the information related to that particular item. &hat can be done $ith Alerts : .2ou can send notifications 2.2ou can send log files as attachments to notifications ..2ou can call "*/()* stores procedures 3.2ou can send approval emails and get the results 4."rint some content dynamically -o$ to create an Alert5 .(tudy your 6usiness requirement and decide $hat type of alert you need either periodic alert or event based alert. 2. /f you are going for periodic alert decide the frequency.

.. /f you have chosen event based alert then find out on $hst event'insert,update,delete! you $ant to fire the alert. 3. ,ecide $hat data need to be included in the alert. 4. 6ased on the data you $ant in the alert $rite a (#*#7T ()* statement to pull the data. 8. 7reate a distribution list grouping all the people to $hom you $ant to send the alert. Navigation : . 9o to :Alert ;anager: <esponsibility. 2. Alert == ,efine 6usiness <equirement >>>>>>>>>>>>>>>>>>>>>>>>>>> Notify when sales order is booked or new line is entered on booked order &e can do this through triggers. Alternative $ay is Alerts Query SELECT ooh.order_number , ool.line_number||'.'||ool.shi ment_number line_number , ordered_item, ordered_!uantity, ool.flow_Status_"ode #NT$ %order_num, %line_num,%#tem_num, %Quantity, %line_Status &'$( oe_order_headers_all ooh, oe_order_lines_all ool )*E'E ooh.header_id + ool.header_id ,N. ooh.booked_date /+ to_date.Sysdate,'--0($N0'''' **123(#3SS'4 $' .ool."reation_-ate /+ to_date.Sysdate,'--0($N0'''' **123(#3SS'4 ,N- ool."reation_date / ooh.booked_date4 4 2/,efine Actions 7lic% on the actions button and then actions ,etail button and define message as sho$n in screenshot. Note that the message type is summary.

.! ,efine Action (ets 7lic% on action sets and then action set details and in the members tab enter the action

3! (chedule the <equest Navigate to <equest >>= 7hec% and submit the alert. 6ased on the definition of alert it $ill be scheduled to run.

(econd #+ample >>>>>>>>>>>>>>>>>>>>>> )e ha5e to desi6n eriodi" alert 7#tems with 8ero wei6ht9 for our Client.:asi" :usiness need of this alerts is for Email to (#S ;ser for List of item ha5in6 <ero )ei6ht sa5ed in $ra"le #n5entory. ,lert (ana6er+/,lerts+/-efine

li"ation &ield3 Name of ,

li"ation e.6 $ra"le =ayable

Name 3 ;ser defined Name of ,lerts. Choose =eriod tab &re!uen"y 3Choose &re!uen"y ,""ordin6ly. -ays3 Choose days a""ordin6 to &re!uen"y. Su ose you Chosse &re!uen"y 7E5ery N :usiness -ays9 Then Enter >alue 7?9 in -ay &ield. Start Time3 Time @ou want to &ire eriodi" alerts su )rite 7CA3BC3CC9 in Start Time &ield. ose you want to fire at A3BC ,.(

Dee 3 *ow many days @ou )ant to (ainitain *istory. Sele"t Statement3 )rite Query in sele"t Statement . *ere is an EEa mle of Sele"t Statement for Test =eriodi" ,lert 7#tems with 8ero wei6ht9. Sele"t statement must in"lude an #NT$ "lause that "ontains one out ut for ea"h "olumn sele"ted by your Sele"t statement.#n EEam le all in ut Column like $r6ai8ation_"ode,tem_number.se6ment?4,-es"ri tion,Creation_date ha5e $ut ut >ariable $'F,#TE(,-ESC',Create_date re"eded by ,m erstand.%4. Query is3 Test Query for 7#tems with 8ero wei6ht9 ,lert is

SELECT distin"t .or6ani8ation_"ode , substr.i.se6ment?,?,1C4 , substr.i.des"ri tion,?,GC4, i."reation_date, #NT$ %or6 , %item , %des"r , %"reate_date &'$( mtl_system_items i, mtl_ arameters where i.or6ani8ation_id + .or6ani8ation_id and .or6ani8ation_"ode in .'#N&','EN&'4 and i.#N>ENT$'@_#TE(_ST,T;S_C$-E||'' + ',"ti5e' and i.unit_wei6ht is null and #.#TE(_T@=E + '=' order by ?,1
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 !ero Rows This "essage will populate.

ritten

ST#$% : &efine 'ction: Click on 'ction Button("arked

ith Circle). This *orm ('ction

indow +.,)

ill $oulate..

#-plaination of *ield on this *orm : 'ction .ame:Specify .ame of your 'ction. *or #-ample /ur 'lert 001tems with 2ero weight3. is for #mail.we specify name 0#"'143 in 'ction .ame. 'ction 4e5el: 'ction le5el should 6e Summary. Three are three 'ction 4e5el &etail 7 action is performed for each e-ception returned. Summary 7 action performed once for each e-ception. .o #-ception 7 action performed when no e-ceptions returned.

Cli"k on ,"tion -etails

,"tion Ty e3 &our ,"tion ty e. (essa6e 0 send messa6e Con"urrent =ro6ram 'e!uest 0 submit "on"urrent ro6ram SQL s"ri t 0 eEe"ute a SQL s"ri t $S s"ri t 0 eEe"ute an $S s"ri t )e Choose ,"tion Ty e 7(essa6e9 be"ause 7#tems with 8ero wei6ht9 ,lert is for Email =ur ose. Enter Email ,ddrees in To &ield. TeEt 3 #n TeEt field desi6n Layout of your =eriodi" ,lerts. 7#tems with 8ero wei6ht9 ,lert Layout is this3 #m ortant thin6 is that $ut ut >ariable %or6,%item et" should be la"ed with in tem late like thisH

+II+ Enter summary tem late below this line +II+

II%or6 %item %des"r %"reate_date +II+ Enter summary tem late abo5e this line +II+ Layout Sam le of Test =eriodi" ,lert 7#tems with 8ero wei6ht93

The followin6 items "urrently ha5e no wei6ht maintained a6ainst them in the system. $r6 #tem -es"ri tion Creation -ate +++ ++++++++++++++++++++ ++++++++++++++++++++++++++++++ +++++++++++++ +II+ Enter summary tem late below this line +II+ II%or6 %item %des"r %"reate_date +II+ Enter summary tem late abo5e this line +II+ Column $5er&low3 J)ra K (aE )idth3 Choose ,""ordin6 to 'e!uirments. LC Chara"ters ?B1 Chara"ters ?LC Chara"ters STE=B 3 -efine ,"tion Sets3 Enter the 6rou s of a"tion to be run. Cli"k on ,"tion Sets :utton. ,"tion Set )indow .Shown in =i"tiure 7,"tion set )indow ?.194 will o ulate. ,"tion set Name3 Enter ,"tion Set Name. #n our Test ,lert we enter ,"tion set Name 7E(,#L9. Note 3 ,"tion set Name should be same as in ,"tion Name. $therwise =eriodi" ,lert will not &ire.

,"tion set Name3 Enter ,"tion Set Name. #n our Test ,lert we enter ,"tion set Name 7E(,#l9. $ut ut Tab3 $ut ut tab Contain List of $ut ut >ariable defoen in sele"t Statement as shown in )indow ?.2.Note that if you $ut ut tab is :lank 'e!uery the ,lert then it will show out ut >ariable. This roblem we 6enerally fa"ed when desi6nin6 eriodi" ,lerts.

"em6er Ta6: #nter .ame of 'ction .

,Lert :,"k end tables 00000000000000000000000000 ,L'_,CT#$NS ,L'_,CT#$N_SETS ,L'_,CT#$N_*#ST$'@ ,L'_,LE'TS ,L'_-#ST'#:;T#$N_L#STS ,L'_='$&#LE_$=T#$NS

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