How to create a task and then run it later?

We have a requirement like this: we insert records into a table. After inserting records, we need a web service ping command and tell him to read the new records.

We call the WS in a trigger after-insert-for-all-row.

Can we create employment and in the trigger, use DBMS_SCHEDULER. RUN_JOB ('call_web_service', use_current_session = > 'FALSE') to perform the task?

When we create jobs, we can use start_date = > null to indicate that we do not want to run the task now, but later?

Hello

Yes, you are on the right track. If it is a work intended to be run on demand, then specify a start_date/end_date, nor a repeat_interval.

You can even create as disabled (enabled-FALSE online).

Use DBMS_SCHEDULER. RUN_JOB ('call_web_service', use_current_session-online 'FALSE') every time you want to run the task.

Tags: Database

Similar Questions

  • How to create a task that runs once a day, immediately after the opening of session?

    Hello, I'm wondering how to create a task using the Task Scheduler that runs once a day, immediately after I have logon.

    The reason is I want to use Bing Desktop to change my wallpaper every day. However, I just want to run the first time I start my computer every day, so it will change the wallpaper. By default, it starts whenever I have to logon. It's annoying, because I just want it to start once a day to change the wallpaper. However, using the Task Scheduler, I put only a trigger to start "at the opening of session' or"once a day." If I choose once per day, it runs about 5-10 min after I login, instead of logon immediately after. If I choose the two triggers, then it starts after each session.

    Basically, I just want the Task Scheduler to launch the program after the connection the first time I connect to the computer on any given day. How can I do this?

    Hello Jeffrey,.

    You can refer to the links below and see if that helps.

    Create a task

    http://TechNet.Microsoft.com/en-us/library/cc720110 (v = WS.10) .aspx

    Modify a scheduled task

    http://TechNet.Microsoft.com/en-us/library/cc778308 (v = WS.10) .aspx

    Change an existing task

    http://TechNet.Microsoft.com/en-us/library/cc766442.aspx

    Please write back to us for assistance and we will be happy to help you come.

    Thank you

  • How to create a document and insert the words and/or art on both sides of the page

    How to create a document and insert the words and/or art on both sides of the page

    How to create a document and insert the words and/or art on both sides of the page

    You create a document by using an application of word processor like Microsoft Word or Corel WordPerfect or OpenOffice Writer.  Think of it as a broad a page roll.

    When you print the document, you can print all pages of the document on one sheet of paper (the normal default value), or you can print on both sides of a sheet of paper.

    Some printers are capable of automatic double-sided printing.  With others, you print all the odd pages and then take the stack of paper, turn upside down and put it back into the printer to print all pages.  You need either to read your printer manual, or experiment a bit to determine if you need to re - organize the first last pages before printing the second side.

  • Wait for the host disconnects and then run a command

    Hello world

    I have a stop script for my virtual infrastructure, now I have to add code to stop an Equallogic AFTER the last host table is turned off.

    I know the commands to do this, but I need help to write a loop that will test the ip address of the last host management and wait until this station responds to pings.

    In my script I have to establish what host will be put off to the end so it's not a problem... How can I keep ping IP management host to die and then run the commands Equallogic?

    I hope that I managed to explain to me... I was exploring the Test-Connection cmdlet but it seems that it displays che echo of the ping instead of State... I'm a bit lost around this, can someone help me please?

    Something like that would do the trick?

    $count = 0

    $maxWait = 10

    {}

    $count += 1

    Write-Output "$(get-date-f HH) $(get-date-f JJ/MM/AAAA)-host is offline."

    sleep 5

    } until (!) (Test-Connection 192.168.110.85 - BufferSize) count 16-1 - calm)- or ($count - gt $maxWait))

    If {($count - gt $maxWait)

    Write-Output "Host always online."

    }

    else {}

    Write-Output "$(get-date-f HH) $(get-date-f JJ/MM/AAAA)-host is offline."

    }

  • installation of windows xp/vista/7 on USB and then running windows FULL of her not ONLY START from USB

    is it possible to install windows xp/vista/7 on a USB key and then run the FULL version of windows of him anywhere I want? Please, I beg you!

    Friday, January 28, 2011 18:56:58 + 0000, tupac shakur says:

    is it possible to install windows xp/vista/7 on a USB key and then run the FULL version of windows of him anywhere I want? Please, I beg you!

    # With all these versions of Windows, the installation is
    customized for specific hardware. This will not work on different
    material.

    Ken Blake, Microsoft MVP

  • How can I call Adobe? I need to talk about how to create my site and bind it to lightroom. I have creative cloud.

    How can I call Adobe? I need to talk about how to create my site and bind it to lightroom. I have creative cloud.

    The only phone support I know is not for sales, the use of programs

    You will also likely get detailed assistance in the specific forums for the programs you use

    Forum of https://forums.adobe.com/thread/1929760 to find a forum for your program list

  • How to duplicate an image and then put side by side

    How to duplicate an image and then put side by side

    This link might show the CS4 menu:

    Dual View Photo retouching in Photoshop tutorial

  • How to create a template and merge with content existing?

    I need to create a template in pdf format, which will have the header and footer. And I have a set of pdf files, which only contained.

    Is there a way to create a model and then merge this template with the content that I have? Use Acrobat Pro DC.

    Yes, you can use an Action to process files and add the "template" as a background to each of them.

  • How to create A registration and Login Page using adobe muse?

    How to create a registration and login Help Page?

    Hello

    check this discussion

    Re: Can I create a login/password in the Muse for a HTML5 page or two?

  • Once an unapproved site is added as an exception, how can I go back and delete the exception later?

    Once an unapproved site is added as an exception, how can I go back and delete the exception later?

    Thank you, Jefferson. You addressed the issue beautifully and delightfully complete.

    I found and deleted the server where I got the exception.

    "In the future, I suggest, by making an Exception, uncheck the box that adds a permanent exception. In this way, when you exit Firefox, the exception is removed automatically. »

    AHA. It's very good to know. I missed it when granting the exception today.

    The exception I gave (and now deleted) today wasn't really a risky site. I know the owner. Just a little problem in their relationship.

    Thanks again. And thanks Toddy... I did not say clearly what type of exception.

  • I downloaded photoshop it is not too long and then 1 week later received a new computer, is anyway to

    I downloaded photoshop it is not too long and then 1 week later received a new computer, is anyway to put photoshop on the new computer?

    of course, simply install and activate.  a license entitles you to two simultaneous activations.

    If you have already activated on both computers, you will need to disable (help > deactivate), at least one.

  • How do open Applescript AI can open the file and then run ExtendScript then close?

    Here is the code sample Applescript that I came with the help of the script guide/reference for CS6 and by doing some research online:

    Tell application "Adobe Illustrator"

    activate

    period of 10

    pfilepath the value "/ Users/username/Documents/Temp/someFile.ai".

    the pfile POSIX file pfilepath value

    Open the pfile as alias without options

    period of 10

    do javascript "#include" / Users/username/Documents/Temp/someScript.jsx ".

    delay 1

    quit smoking

    tell the end

    I just want to open the app (example here for, but also pleasant to do same for Photoshop), open a file, then run the ExtendScript file against her, and then close after treatment. With this example script, all that works is the app starts. No file not opened, any script executed, app does not close at the end. I see no error doesn't pop up or anything appear in the command prompt.

    Just ExtendScript sample triggers an alert popup for the test message

    Also note, the Applescript code snippet is executed from Python, but I think where/how it runs shouldn't matter (except perhaps where the error messages may appear). But in the worst case, I'll debug/run through the AppleScript Editor.

    Some tips on what's not here? Or is it technically correct?

    It solved here: MacScripter / POSIX Pass file path to Adobe Illustrator to run ExtendScript

  • The following problems prevent upgrade Windows. Cancel the upgrade, perform each task and then restart the upgrade to continue. To upgrade to Windows 7, the computer must be running Windows Vista with Service Pack 1 (SP1) or later.

    I get this message when you try to upgrade to 7!  My computer is 100% in windows update update - please help!

    Hello

    What happens when you try to install SP1/SP2.

    Read through the material in the article...

    http://Windows.Microsoft.com/en-us/Windows-Vista/learn-how-to-install-Windows-Vista-Service-Pack-1-SP1

    Notify us of any errors when you try to install the service pack.

    To know if SP1 is already installed

    • Click the button start , right click on computer and then click Properties.

      Check if Service Pack 1 is listed in the Windows edition section.

      Cheeeers...

      Erwin

  • Explorer.exe hangs up, have to end task, and then restart help!

    I am running XP, incidentally. It will hang, that the fan is working hard, and I have to end task to exit, and then add it to the. What is going on? Any ideas? Thanks in advance!

    Hi KatinaHollman,

    1. did you of recent changes on the computer?

    2. you receive an error message?

    3. do you have security software installed on the computer?

    4. when exactly the Windows Explorer crashes on the computer?

    Method 1

    Refer to the article below and try the steps mentioned, check if it helps.

    FIX: The Explorer.exe process stops responding (hangs) when you use Windows Explorer that hosts a shell that has been created using MFC extension

    http://support.Microsoft.com/kb/972685

    Method 2

    If the previous step fails, then check if the problem persists in the safe mode and after return with the result.

    A description of the options to start in Windows XP Mode

    http://support.Microsoft.com/kb/315222

    Method 3

    If the problem does not persist in safe mode, then it is possible that some third-party programs installed on the computer is causing the problem.

    I suggest that you put the computer in a clean boot state and check if it helps.

    To help resolve the error and other messages, you can start Windows XP by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    See section to learn more about how to clean boot.

    How to configure Windows XP to start in a "clean boot" State

    http://support.Microsoft.com/kb/310353

    Reset the computer to start as usual

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:

    (a) click Start, type msconfig in the search box and press ENTER.

    (b) If you are prompted for an administrator password or for confirmation, type your password or click on continue.

    (c) under the general tab, click the Normal startup option, and then click OK.

    (d) when you are prompted to restart the computer, click on restart.

  • In another thread - another method and then run Sub...

    I wrote a method to extract a string from a webpage using StreamConnection and it works perfectly... except that it runs on the main thread.  I wonder if there is a simple way to have a method that returns an object (String in this case) something to run on a thread and return it to the first thread.

    Everything I try the only thing I can get to work on the second thread is what's on the run method void, but that returns nothing... because it sucks...

    Until now what I thought is to pass the variables I need in the constructor, then set the connection stream real term where I want retruned is written in a class variable and another method that returns the class variable that has been filled with the run method... but that doesn't seem to just... thought he worked in a simple test I ran...

    A slightly different way (but completely equivalent) to work in a another thread is to create a class that implements Runnable and feed a thread. If, for any reason, you do not want to expand Thread (because your worker class extends already something else and it would be difficult to refactor), then this variant is a lifeline. You do something like this:

    class WorkerClass extends AnotherClass implements Runnable {    // ...    public void run() {       // do time-consuming work here    }}
    
    // later...WorkerClass worker = new WorkerClass();// initialize worker object. Then: new Thread(worker).start();
    

    As it is easy to turn a class in an executable (you simply add "implements Runnable" and a run() method), it's an easy way to avoid the subclassing Thread.

    Regardless of how you use to perform work in a separate thread, there is always the question of how to get the results. With the help of the observer is a common way to handle this, but in general, this means that the results are returned in the worker thread, not the thread from the main event. If you want to update the user interface, this can be a problem. Another approach is to structure your code something like the following:

    /** * Process the results of some time-consuming operation. */public void acceptResults(ResultType result) {  // ...}
    
    /** * Start a thread to carry out time-consuming work in a * separate thread and deliver the results back in the * event dispatching thread. */public void launchWork() {  new Thread() {        public void run() {           final ResultType res = computeResults();          Runnable r = new Runnable() {                public void run() {                   acceptResults(res);               }         }         Application.getApplication().invokeLater(r);      }
    
           /**        * Do time-consuming work in this method       */       private ResultType computeResults() {         // connect to server, interpret reply, etc.       } }.start();}
    

    You have the right idea that is running in a thread separate is how to manage a time consuming task. The point of all, however, is that you (the event dispatching thread) don't want to wait for the task at hand. Both the observer model and the code here offer a solution for a worker thread to do the work without blocking the thread of the event. The invokeLater() method was kindly provided by BlackBerry people to give the worker threads neatly transfer control on the event dispatching thread when needed.

Maybe you are looking for