Trigger which fire on a specific time ?

Hello expert,
my requirement is to automatically cancel requisition's which are older than 3 day's.
for this i have to create some trigger. i created a trigger on database startup , but if i do not restart my server than
it will not work.
i also have create dml trigger but may be it will fire unnecessarily. so suggest me some process which check on some specific time in database
and cancel the requisition.
Thanks
yash

>
i create procedure and create a job by scheduler. and its working.
but i did not understand the dbms_scheduler.create_schedule .
i used dbms_scheduler.create_job to create a job with procedure to called.
but how to attach procedure with dbms_scheduler.create_schedule ???
>
You don't need to. You can just specify the repeat_interval like the example in the link shows
BEGIN
  DBMS_SCHEDULER.create_job (
    job_name        => 'test_full_job_definition',
    job_type        => 'PLSQL_BLOCK',
    job_action      => 'BEGIN my_job_procedure; END;',
    start_date      => SYSTIMESTAMP,
    repeat_interval => 'freq=hourly; byminute=0; bysecond=0;',
    end_date        => NULL,
    enabled         => TRUE,
    comments        => 'Job defined entirely by the CREATE JOB procedure.');
END;
/That example shows that the job will run every hour on the hour. You need to decide how often your job and procedure should run. The procedure should check for cancellations.
You also need to start revisiting your previous 155 (81 unresolved) threads and mark them ANSWERED as appropriate.

Similar Messages

  • List of triggers which fire in enter query mode?

    hello experts , please tell me list of forms trigger which fire in enter query mode?
    thanks
    yash

    I don't believe there is a published list, but if you check the Forms help system the description of each trigger will tell you if it fires in "Enter Query" mode. Unfortunately, you will need to check each trigger in the help system and build your own list.
    Craig...

  • Trigger no fire on SuSe80

    My platform is SuSe Linux 80 and Developer Suite 9i.
    My forms compile fine, but triggers no fire.
    When I make : unset NLS_LANG - everything is fine - triggers fire.
    Where is problem ?
    NLS_LANG is my national setting, not AMERICAN_AMERICA...

    the actual requirement is like this:
    i have 2 tables one is having data about the total capacity of rooms in resort. that is refer by the one which is used to keep the record of booked rooms. and that trigger or scheduler is to reclaim the rooms capacity when time ends as you know room is booked for hourly basis. and this is just a simple example theres more of this type where one thing is booked and reclaimed again.Rahul,
    I according to this logic - i don't think job is useful in this regard.
    Question is why?
    Just follow your current proposed solution ->
    You say whenever room booked you will start the job though trigger to see whether you can reclaims that room or not.
    Now, how do you get to know - the room is free or not? For that there must some other transaction will be taken place by any front end (or by any other application) which is validating inside in your procedure and your job continuously check that value through procedure. Am i right?
    So, your job is not sufficient alone to decide that main issue whether it is ready to reclaim the room or not, except if you want to display this information to the owner about the probable available rooms after a specific time? In that case, you need this job. But, this will not show the actual available room. Correct me if i'm wrong - up to this explanation.
    As a result, if we can tap that transaction which will ultimately taken place by any front end (or some other application to ensure that) then we can reclaim the room, and can directly put our trigger into that transaction without the job, thus reducing the overhead and complexity of the current logic.
    I may be wrong - or not understood or missed some important place of your logic. So, please share your thought in this regard.
    Regards.
    Satyaki De.
    Edited by: Satyaki_De on Oct 12, 2008 1:46 AM

  • Quit an Application at a specific time each day.

    I know how to do something as simple as Quiting an application with AS, but what if I want to run it at say 7pm everyday. Not using iCal.
    Any Ideas?

    You can use the unix-side launchd application to trigger execution of an application at a specific time. In your case you'd want it to launch an AppleScript that tells your other app to quit.
    Programming launchd to do this is easy with an app like Lingon (http://lingon.sourceforge.net/), which provides a gui to set schedules in launchd.
    I use to run two applescripts every 30 seconds and a third one once an hour. Works a treat... and it's free.
    Robert

  • Siri Reminder Date fixes a specific time

    I have been fixing reminders in the morning for when I get to work, whenver I set a date, "Remind me to call Bill when I get to work on Wednesday morning," it fixes the reminder at either 7AM or when I get to the office, whichever comes first. This is because my alarm is set to 6AM, even though I don't go into work till 10. This is rather frustrating because I can't adjust the reminder by hand so I have to save it and then go into reminders to make the adjustment, which almost eliminates any efficiency to using Siri.
    It's interesting to note that if I say, "Remind me to call Bill when I get to work on Wednesday" it sets the time at 9AM,
    I still haven't figured out anyway to:
    1. Set a default time for reminders (by location)
    2. Set a default date, but not set a default time for reminders.
    Has anyone figured this out?

    What I have found is that if you want to create a location-based reminder using Siri such that it doesn't create a fixed time OR location trigger (e.g. the earlier of arriving at work or 9am) then you shouldn't specify a specific date.  For example, if I tell Siri to remind to call my wife when I leave work, it will create the reminder WITHOUT adding a specific time.  If I tell Siri to remind me to call my wife tomorrow when I leave work, it adds a time and the location, and then makes it conditional upon arriving at work or 9am.

  • Office specific time

    hi people,
    here is the script of a trigger......it is supposed to update a column called mod_date to the office specific time date and pull the latest row which was modified.......
    i am not able to understand the script completely can anyone guide me,i am not able to unserstand why we r declaring lv_sysdate as office_sysdate().can't we just capture the office specific time using TIMESTAMP with LOCAL TIME ZONE
    DECLARE
    lv_sysdate DATE;
    BEGIN
         IF USER = 'gkljhg ' THEN
              RETURN;
         END IF;
         lv_sysdate := Office_Sysdate('');
         :NEW.mod_datetime := lv_sysdate ;
         :NEW.mod_userid := USER;
         IF INSERTING OR UPDATING ('con_name') THEN
         :NEW.con_search := UPPER(:NEW.con_name);
         END IF;
    END;
    Message was edited by:
    user570795

    ......it is supposed to update a column called mod_date to the office specific time date and pull the latest row which was modifiedYes it is.....
    How can we give you some info about your piece of code if we don't know the role of all columns referred and the contents of the Office_Sysdate db routine..????
    Simon

  • Is there a way to create a smart playlist that lists my top 25 plays from a specific time period (i.e. - top plays from the last 90 days)?

    Is it possible to create an itunes smart playlist that lists my top 25 most played songs in a specific time period (i.e. - the last 90 days)?  It seems that any "most played" list I create counts every spin a track has had in it's history of being in my library. 

    The challenge is is not to determine which of the tracks that have been played in the last X days has been played most since the beginning of time, but which have been played most in the last X days. iTunes can do the first one but it simply doesn't have the power to do the second.
    tt2

  • How do I set iCal alerts to a specific time the previous day, regardless of their specific time (so I can get an overview of tomorrow)?

    I think it would be incredibly useful to be able to get at, say, 10pm each evening, a pop up overview of the next day's events. I'm hoping for a tick box somewhere to set my default reminder as a specific time on the previous day, in the same way that you can do '15 minutes before'. Currently you can set reminders for a specific time and date, but, entering this for every item – especially if you want them to coincide – is more than slightly tedious. Furthermore, I input a lot of my Calender events on my iPhone (they sync via iCloud), which has no such functionality, rendering this essentially defunct.
    Any ideas?

    apple don't have a version of windows
    only microsoft have windows
    as how one automatate windows to send mails at a time
    googled it for you
    http://www.howtogeek.com/125045/how-to-easily-send-emails-from-the-windows-task- scheduler/
    more options in the search
    https://www.google.dk/search?client=opera&q=automatically+send+email+in+windows& sourceid=opera&ie=UTF-8&oe=UTF-8

  • Can I limit the number of appointments made by everyone at a specific time and place?

    I want to limit the number of people who make an appointment at a specific time and place.  Can I do this?

    Which Adobe software are you using?

  • Allow RDS Logon during Specific time of day

    Is there a way that we restrict Logon to our Terminal Server so that users can only Logon between specific times...?
    We are using windows Server 2008 R2
    for example between 8AM and 6PM

    You could set up a scheduled task to enable drain mode on the server which will prevent new logons (but not reconnections), This task woud set HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\TSServerDrainMode to 2.  No new sessions
    could be started but disconnected users could reconnect.  Admins ca still connect by running
    mstsc /admin.   Then you would need another scheduled task to disable drain mode, by settinge the above key back to 0.
    HTH,
    Jeremy

  • Render at a Specific Time Every Day

    Is there a way to have a specific Final Cut Pro project to render automatically at a specific time every day?
    I work at a CG house, and shots are updated at random intervals, but are always in a fixed, specific location. So by rendering out the project everyday we would always have an up to date complete edit. And by automating it it could be rendered off hours and be ready first thing in the morning for review.

    Or page 548 of Volume III, if you're on Final Cut Pro 5 (FCStudio 1).
    'Main Menu/Final Cut Pro/User Preferences/General tab'
    FCS2 may allow specific time of day, but FCS1 simply lets you set a period of time (while the program is open, but idle). So set it for 2 hours, leave FCP open when your last editor leaves the office.
    This also offers several choices on which sequences you actually want to 'auto-render'.
    K

  • Write to GPIB at a specific time in AO waveform

    I would like to write a command to GPIB (using "GBIP Write.vi") at a
    specific time in every iteration of buffered analog output.
    But I have two question:
    1. all iterations are generated at once by "AO Start.vi" ,how could I
    write to GPIB in every iteration?
    2. to write to GPIB at a specific time in each iteration,I must use
    "Wait(ms).vi" to wait for a certain time,but this is not accurate
    (delay>1ms)
    P.S 1.the GPIB instrument is a function generator without external
    trigger.
    2.I have a timing board(PCI 6602) but I don't know whether it is
    helpful.
    Thank you for your help.

    You have a choice of a gpib device with an external trigger or you will have to move LabVIEW-RT (where this project would be a slam-dunk).
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to mask out specific area in a specific time?

    Hi,
    I want to make a mask on a specific area of the footage in a specific time. I drew the mask and all the frame went black,so I clicked on Mask-> invert and only the specific area I masked went black,which is exactly what I wanted.
    Now I want to make it happen in a specific time, not on all timeline, but I can't find a way to do it. I thought about lowering down the mask opacity to 0% and a frame later bringing it to 100%, but if I lower down the opacity of the mask, it lowers down the opacity of the whole frame, same as
    lowering down the opacity of the frame by intention, which seems weird, cause I did inverted the mask, and as I understand it, it should affect the opacity of the mask and not the whole frame...
    any ideas...?
    I'm using CS4.

    Put a copy of the footage on the timelime below the one you masked. Use opacity like you doing and it will reveal the track below.

  • How to set a specific time zone for time channel in DIADEM

    Hi,
    I'd like to know how to autmatically set a specific time zone for time channels in DIADEM.
    For example, I have stored data with corresponding time channel in UTC time on a disk which was collected in another time zone. Now I want to analyze this data and I want the time channel to show the local time in the time zone where the data was collected, and not the time in the local time zone where the computer is located.
    The time channel should also take site local summer/winter time into account. Now I'm running a script that handles it for me which adds or subtract hours according to my input. The problem is that I'm handling data from several different time zones and I'm not located in any of them and when you're running a lot of data over a greater time period, it's easy to make mistakes, especially when it comes to summer/winter time. Is there a any clever solution to this already implemented in Diadem that I have not found? 

    Hi hj77,
    No, I'm sorry, DIAdem has no time zone functionality at all.  I'm afraid you have no choice in DIAdem but to keep running your scripts.  Summer and Winter time are truly tricky, because the rules for when the changes occur are different in different countries and states within countries and also can change from year to year within the SAME country (as they did in the US a few years ago).
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • How can I execute a command every 10 seconds in a specific time-frame

    Hello,
    I would like to create a script which in a specific time-frame collects some outputs and also pings every 10 seconds.
    To collect the outputs every minute from 22:00PM to 22:10PM I have the following:
    event manager applet snmp_output
    event timer cron cron-entry "0-10/1 22 * * *" maxrun 30
    action 010 cli command "enable"
    action 020 cli command "show clock"
    action 030 cli command "terminal exec prompt timestamp"
    action 040 cli command "show snmp stats oid | append bootdisk:show_snmp_stats_oid.txt "
    action 045 wait 5
    action 050 cli command "show snmp pending | append bootdisk:show_snmp_pending.txt "
    action 055 wait 5
    action 060 cli command "show snmp sessions | append bootdisk:show_snmp_sessions.txt "
    acionn 065 wait 5
    action 070 cli command "end"
    To confirm connectivity to the device doing the SNMP polls I would like to execute a ping every 10 seconds in the same timeframe.
    Cron seems only to support minutes. Is it possible to combine a watchdog timer + a cron timer?
    Can this ping function be incorporated in the SNMP output applet or will I have to write a new one?
    Will I need TCL here (I have no experience in TCL)?
    Best regards,
    Tim

    If you wanted the pings to run in parallel, you could have this applet configure another applet to do the pinging, then remove it on the last run.  This will require an amount of programmatic logic, though.  If you wanted to keep things a bit simpler, add another applet that runs at 22:00 that configures a watchdog pinging applet, then a third applet that runs at 22:10 that removes the pinging applet.
    When it comes to embedded quotes when you configure your nested pinging applet, you'll need to use $q to stand for the embedded quotes.  You'll also need to configure:
    event manager environment q "

Maybe you are looking for

  • The GR & IR lines unable to shown in report ,but it does has in PO history

    Hi, Tcode: y_d35_87000552 [GR/IR Report for Stock Valuation/BB6 Reporting (with summary listing)] parameter: company code: HC02 GR date: 01.01.07 to till 30.09.07 Issue: The line items captured in the reports was not the complete one as some of the p

  • Calling Stored Procedure from ODBC

    I call a stored procedure that contains a reference to a database link through ODBC. I get the following errors (LOAD_PDI is the name of the procedure): ORA-02041: Client database did not begin a transaction ORA-06512: at "LOAD_PDI" line 16 ORA-06512

  • Spry examples not working when sitting on UNIX servers

    Hi All, I've been looking at the SPry dynamic table examples with the intention of using this with my own xml files. When viewing these samples locally it displays fine. When uploading onto our server, it displays nothing. There is a quick flash of t

  • Client System & Output Client System For BI Integaration

    Hi , What is the Client system & Output Client system when using Generic vendor BW map in Syndicator. Can anybody throw some light on it & how to change the client system in Map Properties Tab.

  • New Trackpad Sorta Working, Sorta Not

    Just cracked open my new Magic Trackpad and its initial set-up is less than magical. I think I got it to pair to my MBP (OS 10.6.8) as I can get the cursor to move and regular clicks at the bottom of the pad work. But, non of the multitouch/gesture f