Not sure if my code is correct to stop a scheduled job.

I can do this to create a job and schedule it to run.
BEGIN
-- Job defined entirely by the CREATE JOB procedure.
DBMS_SCHEDULER.create_job (
job_name => 'test_Non_Compliance_email',
job_type => 'PLSQL_BLOCK',
job_action => 'BEGIN test_app.PRC_NEMAIL(); END;',
start_date => SYSTIMESTAMP,
repeat_interval => 'freq=hourly; byminute=1',
end_date => NULL,
enabled         => TRUE,
comments => 'Job defined entirely by the CREATE JOB procedure.');
END;
Can I do this to stop the job from running.
BEGIN
-- Job defined entirely by the CREATE JOB procedure.
DBMS_SCHEDULER.create_job (
job_name => 'test_Non_Compliance_email',
job_type => 'PLSQL_BLOCK',
job_action => 'BEGIN test_app.PRC_NEMAIL(); END;',
start_date => SYSTIMESTAMP,
repeat_interval => 'freq=hourly; byminute=1',
end_date => NULL,
enabled         => FALSE,
comments => 'Job defined entirely by the CREATE JOB procedure.');
END;
Thanks
Howard

Second statement will create job in job system which will be disabled. Disabled jobs are ignored by scheduler and it means, your job will not run.
You can also use dbms_scheduler.enable() and dbms_scheduler.disable() to enable and disable jobs. If you disable currently running job, it will not be stopped.
To stop currently running job you can use dbms_scheduler.stop_job().

Similar Messages

  • Nitro chokes on a attibute, not sure how to code it

    empty

    try <app:myTag tableRowExtrasHeader="valign='bottom'"> (assuming that
    "myTag" understands single quotes too).
    M7 Support
    "Alan Berezin" <[email protected]> wrote in message
    news:40eb1d34$[email protected]..
    I have a tag like this:app:myTag tableRowExtrasHeader="valign=\"bottom\""
    note that I am passing a value of:
    valign=\"bottom\"
    Nitro's parser doesnt like this. Im wondering if there is some more
    correct
    way to pass quotes to a jsp tag.

  • Not sure if this is the correct area but I synch my iphone and now I have a photo library on my phone and can't delete those photos and it has taken up all my storage

    I backed up my iphone to my computer and now I have a photo library on my phone with all of the photos from my computer and it has taken up all of my storage on my phone. I can not delete the photos from my phone. How do I fix this?

    Thats because you have selected to sync the pictures too in your iTunes library. You won't be able to delete these from iPhone. You will have to uncheck it under iTunes, under sync options. Or remove the pictures folder there, or move all the pictures from that folder to other location, and sync again, the pictures from your iPhone then will be gone.

  • When logging onto my schools website I receive a popup message overLIB 4.10 or later is required for CSS style plugin. I'm not sure what I need to correct this error.

    After logging into my schools website the pop up message displays '''OverLIB 4.10 or later is required for CSS style plug in'''. After clicking on the ok button it displays the website that I want. Then anytime I go into another area within that same website the pop message displays.

    This could be caused by a problem with a file in Firefox's cache. To clear cached files:
    orange Firefox button ''or'' Tools menu > Options > Advanced
    On the Network mini-tab > Offline Storage : "Clear Now"
    Then reload the page. If the message is gone, try a few additional pages to confirm that the problem is resolved before posting back.
    Any luck?

  • Not sure if this is the correct forum but...

    i'm wondering if i am able to sync a blackberry to my macbook without to much fuss?

    In August I bought Macbook. I tried using Pocketmac with my BlackBerry Curve 8330 but I had all kinds of trouble. After many many hours working with their tech support, I could never get it working.
    So I bought Missing Sync for BlackBerry. It works great! It doesn't due wireless syncing with Bluetooth though (neither does Pocketmac).
    I can use my BlackBerry as a Bluetooth modem for connecting to the Internet.

  • Not Sure If This Is The Correct Forum To Ask, But.........

    I am looking to buy a new MapBook Pro 15 inch. Do you go with the $1999, 2gig, 250 HD, 2.4 ghz or jump to the $2499, 4 gig, 320 ram, 2.5 ghz at $2499? Is it worth it to for the extra $500 in performance? Working with photos, Nikon D300 and then just normal computing. If there is a better forum, point me......
    Message was edited by: Michael Crowder1

    Hi,
    I recently purchased the baseline , 2.4 Ghz Macbook pro. As a photography student, I am constantly using Adobe Photoshop CS3 and Lightroom. From my experience, I can say that the baseline Macbook Pro definitely is up to the task of being a graphics editing computer.
    From the way you described you needs, I don`t necessarily think you need to jump to the 2.5 model, unless you intend to start using numerous complex layers, enormous files and/or serious movie editing on final cut pro.
    So for the uses you describe, the baseline model is an execellent choice. That being said, the 2.5Ghz is a nice sweetspot model if you can afford it, as the better vram and cache specs, which aren`t user replacable, make it a more future proof system if you don`t change computers every few years.

  • Not sure if my card is working correctly, all suggestions welc

    Recently purchased a Dell Studio w/ Vista Ultimate SP Home and opted to also get the external sound blaster X-fi xtreme audio notebook card but i am not sure if its working as it should since the laptop speakers sound the same with and w/out the card... not sure if my settings are correct on my laptop or maybe this card was a waste since others have told me it only works with headphones....
    i installed the cd that came with the card and the card has a blue led light when inserted into the slot reader on my laptop...
    this is my first laptop and first sound card so not very familiar with how it all works so any and all help is much needed and appreciated....isthere a way to check and see if the card is actually working and improving the sound quality?
    when i click on the sound icon in my tray it says speaker/headphones IDT High Def Audio CODEC...
    thanks in advance....

    Just wondering but did you happen to read the manual for the card? Reason for asking is it quite clearly shows how to do just what you are asking,
    <img alt="" src="http://i0.photobucket.com/albums/a7/stormy352/notebookspeakers.jpg">?

  • How to use Derivative x(t) PtbyPT , I'm not sure, when i use.

    when i use this function i'm not sure that i connect its correct or not, could you help me for checking?
    but i saw  that the output of integral x(t)  PtbyPT  is very large, it's correct or not?
    Attachments:
    TEST.vi ‏68 KB

    Hi
    You can used the function in a seperate VI and check the output for a known value. When I am running your Vi i am not able to recreate the problem which you are saying.
    but i saw  that the output of integral x(t)  PtbyPT  is very large, it's correct or not?very large means what?
    Just try using the derivative vi seperately and you will know whether you are getting the results are right
    Regards

  • I am not sure if this is a Firefox issue or Yahoo, but I am trying to transfer a picture from an obit to a Yahoo group and I can't get it to move over, it either comes up with a url or logo words. Am I missing something?

    I am not sure which issue this falls under. I am posting obits to a yahoo group and when there is a picture or flag it won't transfer over. I am not sure what to do to correct this.

    Nope, though it did allow me to get some missing songs back onto my iPod. That's something. But neither "Back in Black" or "Dirty Deeds" show up anywhere on the Touch. Could this be because iTunes has no deal with AC/DC?
    Quite frankly, at this point, I'd really rather not have the "ease of use" of iCloud attached to the iPod. It's not like I change my playlists that much. It would just be nice to get what I want onto my MP3 player. Not sure which one it was: iCloud, Music Match or the Air Port but the only real result of all the $ I plunked down is seeing all of my Wife's 231 Christmas songs popping up on my laptop. Really don't want them here. She SURE AS **** is sick of seeing all of my stuff on her computer.
    Thanks again.
    B.

  • TS1646 I'v tried many times to update my applications however, my account can't do it because security code for my card is incorrect note that I'm sure my card details are correct completely so i need help to fix it as much as you can plz. Thnks

    Hi
    I'v tried many times to update my applications however, my account can't do it because security code for my card is incorrect note that I'm sure my card details are correct completely so i need help to fix it as much as you can plz. Thnks

    Look, I understand I still need a card attached to the account. The problem is, it won't accept my card because I only have 87 cents in my bank account right now.
    If I had known there would be so much trouble with the iTunes card, I would have just put the cash in my bank account in the morning instead of buying an iTunes card (I didn't expect the banks to be open on Thanksgiving of course).
    Apple will only accept cards that have a balance. The balance is so small in my account that it won't accept it as a valid card.
    I'm going to have to contact Apple anyway to reset the security questions. That's obvious. Your answers were not exactly helpful. You didn't tell me anything I don't already know, but thanks for trying to be helpful.

  • Even after adding the country code i can't seem to make any international calls.im not sure if this is relevant but apparently, the option dial assist is not to be found on my setting.pls direct me...thank you.and my phone moddle is 5s(A1457)gold

    even after adding the country code i can't seem to make any international calls.im not sure if this is relevant but apparently, the option dial assist is not to be found on my setting.pls direct me...thank you.and my phone moddle is 5s(A1457)gold  eddition.

    Hi, Thilina66.  You say you have entered the country code but still cannot make international calls.  I suppose you are adding the international access code before the country code.  This internaltional access code (011 in the US, 00 in Europe, etc.) can be substituted by adding a + sign before the country code.
    For example, to call a number in the UK from the US you have to dial:
    011 44 7540 267898
    or
    +44 7540 267898
    To call a number in the US from the UK you have to dial:
    00 1 212 456 1470
    or
    +1 212 456 1470
    Please check that the contact number in your address book is correctly written if you are dialing directly from the address book or that you enter the correct numbers in the keyboard if you are dialing from the keyboard.

  • HT1918 My account is asking me for my security code on my credit card, but it will not accept the code as valid?  Not sure what to do?

    I am trying to purchase an app on a new iPad we have purchased.  I'm asked to put in my security code on my credit card for security reasons, but it will not accept my code as valid.  Not sure how to proceed.

    Is the address on your iTunes account exactly the same (format and spacing etc) as on your credit card bill : http://support.apple.com/kb/TS1646 ? If it is then you could try what it says at the bottom of that page :
    If the issue persists, contact your credit card company and verify that they and any company they use to process credit card authorisations have the correct information on file.
    And/or try contacting iTunes support : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • TS1368 I can not connect to the ITunes store. I have updated my apple ID and made sure that everything is set correctly. However, I can not purchase or update any apps no matter what I do. My partner has the same phone and hers works perfectly. I'm not su

    I can not connect to the ITunes store. I have updated my apple ID and made sure that everything is set correctly. However, I can not purchase or update any apps no matter what I do. My partner has the same phone and hers works perfectly. I'm not sure how to sort this out. Please help
    Thanks
    Andy

    I've been having this problem for weeks and have found no solution to it. There are lots of other people with this issue too if you look back on the boards. I even e-mailed AND called Apple and have had no luck. I tried all the suggestions they gave me and all the ones I found on here- nothing worked. I even uninstalled and re-installed iTunes (boy was that a pain!) and no difference.
    The weird part is that I have an old laptop that works and if I buy music with the laptop I can download it with my regular computer buy buying does not work on my regular computer. That tells me it's not a connection issue. I can't get to my account either.
    I can't figure out why an issue that has kept so many people from purchasing a product has been ignored!

  • I received a text today while at work about iCloud keychain verification code. I have not signed up for it or anything that uses it. I work out of the city with limited internet access so not sure why I would be getting this. Is my info safe??

    I received a text today while at work about iCloud keychain verification code. I have not signed up for it or anything that uses it. I work out of the city with limited internet access so not sure why I would be getting this. I only got this number about a month ago. Apparently someone else had the number before because I get texts from his family members wondering whats going on. I got one yesterday and the person didn't seem to thrilled that the number was cutoff and today I got 2 texts about iCloud Keychain which I don't even know what it is. Seems suspicious to me. If the person who use to own the number is doing it he should know it is not his number anymore because he obviously didn't pay his bills.  I'm not too sure about iCloud Keychain so just want to know my info safe?? It says it can store credit card numbers which is what gets me worried. Frankly I think it's pretty stupid to save that kind if information with any kind of app. But I don't want some random person trying to access my personal information because they are bitter they lost their number.  Please let me know as soon as possible so I can change passwords or anything that is needed.
    thanks

    If it were me, I would go to my carrier and get a new number. Since you have only had it for a month, the inconvenience would be minimal.
    Barry

  • I'm having problems (1)selecting onscreen text, (2) having problems resizing menu boxes and selecting menues with the cursor. I'm not able to select menus and move them. I'm not sure how to correct this.

    I'm having problems (1) selecting onscreen text, (2) resizing menu boxes and selecting menues with the cursor. I'm not able to select menus and move them. I'm not sure how to correct this.

    1) This is because of software version 1.1. See this
    thread for some options as to how to go back to 1.0,
    which will correct the problem...
    http://discussions.apple.com/thread.jspa?threadID=3754
    59&tstart=0
    2) This tends to happen after videos. Give the iPod a
    minute or two to readjust. It should now be more
    accurate.
    3) This?
    iPod shows a folder icon with exclamation
    point
    4) Restore the iPod
    5) Try these...
    iPod Only Shows An Apple Logo and Will Not Start
    Up
    iPod Only Shows An Apple Logo
    I think 3,4, and 5 are related. Try the options I
    posted for each one.
    btabz
    I just noticed that one of the restore methods you posted was to put it into Disk Mode First rather than just use the resstore straight off, I Have tried that and seems to have solved the problem, If it has thank you. previously I have only tried just restoring it skipping this extra step. Hope my iPod stays healthy, if it doesnt its a warrenty job me thinks any way thanks again

Maybe you are looking for