Automatically enable disabled jobs again

Hi, in our company some jobs are executed during night which should be finish by next morning due to DB performance during daytime.
But sometimes they didn't run during night and the job status is DISABLED next morning.
Next morning all jobs cann be enabled manually without an error message.
Questions:
1) why do they get status DISABLED?
2) is there a possibility to change the status of a job back to SCHEDULED automatically to force executing the jobs during night?
Thank you very much for helpling!

Hi, thank you very much for your very quick answer!
- yes, we are talking about DBMS_SCHEDULER jobs created with exec DBMS_SCHEDULER.create_job ...
- we do not get status BROKEN - the status is DISABLED, and ALL jobs didn't run during nighttime at all
- there are no error messages reported selecting * from ALL_SCHEDULER_JOB_RUN_DETAILS where JOB_NAME = '<jobname>' and LOG_DATE > trunc ( sysdate - 1 ) order by LOG_DATE desc;
- also no error messages selecting * from ALL_SCHEDULER_JOB_LOG ...
You propose to execute following code all day and nigtht to 'wake up' jobs with status DISABLED:
Begin
For i in (select job_name from dba_scheduler_jobs where state='DISABLED')
Loop
dbms_scheduler.enable(name=>i.job_name);
End Loop;
End;
We tried this solution already - using this code in a new job.
But it didn't work as I wrote already that ALL jobs have status DISABLED next morning - also this new job.
Therefore this new job didn't 'wake up' the other jobs with status DISABLED.
How do you think it is possible to execute this code as well?
Starting it in a SqlPlus session?
That means that this session may not be closed - if closed, the code isn't executed anymore!
And what about DB shutdown and startup? Then the SqlPlus session with this code has to be started manually again -> this is not a good solution.
Is there another opportunity to execute this code in a better way than using a SqlPlus session?
Thank you!

Similar Messages

  • WLAN automatic enable/disable?

    Hello:
    I have a WCS 4400 system and run 3 seperate WLANs: 2 WPA secured networks and 1 open, using LDAP authentication.
    Is it possible to schedule, or script, one of these WLANs to automatically disable at 8am and enable at 2pm each day?
    I'm sorry if this has been asked and answered before, I tried searching the KB and google for quite some time, but to no avail. Thanks VERY much to anyone who is able to help in this!

    Thank you for your reply, I appreciate it! Unfortunately I'm not sure how to implement this.
    I see an option in WCS for Scheduling a start time for a WLAN, but no option for a stop time. Or is there a correcsponding CLI command that does this?
    As far as using active directory to implement the scheduled enable/disable I know WCS is linked to my AD through LDAP to allow user control, but I don't know how to use AD to control login times. Can you give me any pointers on how to do this, or point me in the direction of the appropriate manual.
    Thanks again for the help so far!

  • Why can I not disable the guest user in the 10.8.2 update? I have never enabled the guest user, but after the update, it was automatically enabled with a "managed" tag. It is not selectable even after entering my admin password to unlock the options.

    Why can I not disable the guest user in the 10.8.2 update? I have never enabled the guest user, but after the update, it was automatically enabled with a "managed" tag. It is not selectable even after entering my admin password to unlock the options. I was able to select the account under "parental controls", but again, could not delete it. Why Apple? Why?!!????

    SOLVED Ok. I actually was able to disable it. I had to actually log in as the guest user to make it accessible in the preference window. Then I disabled it and logged out. Apologies if this was obvious for some people, but I have had some sort of issue with something every update since Snow Leopard.

  • In Office 2011 the function "share it by e-mail" seems to be disabled. that happened recently, just after the apple update regarding Java. Any idea on how enable this function again?

    in Office 2011 the function "share it by e-mail" seems to be disabled. that happened recently, just after the apple update regarding Java. Any idea on how enable this function again?

    I was able to get to a support person who helped me fix this without charge. I guess it was my bad for not trying the right way to access support.
    Anyway, they answer is this.
    I had to create a new account on my computer. When I logged into the new account it immediately wanted an AppleID. I used my daughter's e-mail address for the AppleID. This setup the internet accounts correctly with her iCloud.com e-mail address. I was then able to access e-mail in both the browser and Mail. Not that complicated but nothing that I would have easily thought up on my own.
    Thank Apple Support!

  • Misplaced my ipad mini  now i have found it . how do i enable it . i turned it on and the message read disabled try again in 22,809,570 minutes.  really.

    misplaced my ipad mini , now i have found it how do i enable it . i turned it on and the message read ipad is disabled try again in 22,809.566 minutes , really

    Restore it.

  • Why can't we simply have an option to enable/disable Javascript on sites again in the settings for Firefox 27? Suddenly my Gmail attachments won't open. Gmail.

    Suddenly my Gmail attachments have stopped opening, and I receive the message: JavaScript must be enabled in order for you to use Gmail in standard view. However, it seems JavaScript is either disabled or not supported by your browser. To use standard view, enable JavaScript by changing your browser options, then try again.
    I found a Mozilla support thread where it was explained that Javascript has been turned off for a while in FF. OK. Then there was a complicated answer about how you could still turn it back on by typing in a config code into the address bar. What? Or, you could download an extension to do that for you. Why?
    Please-- if you really feel like users can't be trusted, and Javascript must be turned off, at least bring back the ability to enable/disable Javascript on a per site basis in options, without having to know code. It's Gmail.
    Thank you.

    There is nothing on that thread that says Javascript is turned off by default. to quote:
    "In Firefox 23, as part of an effort to simplify the Firefox options set and protect users from unintentially damaging their Firefox, the option to disable JavaScript was removed from the Firefox Options window.
    However, the option to disable JavaScript was not removed from Firefox entirely. You can still access it from about:config or by installing an add-on. "
    The UI checkbox to disable Javascript was removed, but the option still exists in about:config (which isn't code btw, it's just preferences), nor was Javascript turned off by default, in fact the opposite is true, it is enabled by default with the option to disable it made a little more difficult to find, as only advanced users need to disable Javascript.
    Please try to clear the cache and cookies for gmail, let's see if those are causing problems. [[Delete cookies to remove the information websites have stored on your computer]], [[How to clear the Firefox cache]]

  • How do i enable the job in OWB?

    i have job scheduled in OWB. The job is not automatically kicking off.
    Here is the status.
    SQL> select state,enabled from dba_scheduler_jobs
    where owner='IAEBT_DW' and job_name='PF_JOB';
    2
    STATE ENABLED
    DISABLED FALSE
    SQL>
    SQL> EXEC DBMS_SCHEDULER.ENABLE('IAEBT_DW.PF_JOB');
    BEGIN DBMS_SCHEDULER.ENABLE('IAEBT_DW.PF_JOB'); END;
    ERROR at line 1:
    ORA-27457: argument 1 of job "IAEBT_DW.PF_JOB" has no value
    ORA-06512: at "SYS.DBMS_ISCHED", line 3417
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 2461
    ORA-06512: at line 1
    SQL>
    My database is oracle11g.
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    PL/SQL Release 11.1.0.7.0 - Production
    CORE 11.1.0.7.0 Production
    TNS for Linux: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 - Production
    Any help is appreciated.

    Here we go:
    #Go to Tools > Options. Select the ''Applications'' tab.
    #Select ''Portable Document Format'' from the list.
    #On the right handside, select ''Preview in Firefox'' or anything else you want from the list.
    #Click OK to save settings.
    --Tobbi

  • OIM Java API silently ignores accounts operations such as enable/disable/revoke

    Hi
    I am facing a strange situation here.
    My Java app (standalone) was able to set provisioned accounts to "enabled" and then disabled these enabled ones.
    Now, provisioned accounts can't be enabled anymore.
    Commands issued from Java API using ProvisioningService such as "enable", "disable" and "revoke" are being simply ignored. No exception raised, no changes.
    Am I missing some step? Do I need to run any scheduled job in order to "commit" these changes performed from the OIM Java API?
    How do I debug this?
    TIA

    Sorry for my ignorance, but where's this "resource history" thing in OIM?
    Here's what I am doing.
    First, I use the Self Service UI to provision an account. This account belongs to an application instance backed by the OIM Webservice connector.
    I suppose it works because after requesting the account, the connector creates it and returns back a unique ID (which is assigned to the account uid) and the account shows up in "my accounts" tab as "provisioned".
    So far, so good.
    THEN
    I run my standalone java app from outside OIM, which uses OIM Java API. This app connects to OIM as xelsysadm, and I search for the account and do something like this
    public void enableAccount(String uid) throws AccessDeniedException, NumberFormatException, AccountNotFoundException, ImproperAccountStateException,
        GenericProvisioningException, InvalidUidException {
      Account a = findAccountIdByUID(uid);
      if (a != null) {
        System.out.println("enabling "+a.getAccountID()+":"+a.getAccountStatus()+":"+a.getAccountData().getData().get("UD_AVNC_USR_LOGIN")); <<< here I confirm I am changing the right account, it is
        ProvisioningService provService = oimClient.getService(oracle.iam.provisioning.api.ProvisioningService.class);
        provService.enable(Long.parseLong(a.getAccountID()));
      }else {
        throw new InvalidUidException(uid);
    then I expect to refresh "my accounts" tab and see my account status changed from "Provisioned" to "Enabled".
    I don't know if these screenshots may help, but anyway
    These are the tasks for the provisioning process. I believe the one we're interested here is the #22
    these are the status definitions for the process. They're also created by default during the OIM webservice connector module import process I guess
    these are the task to object status mapping for the task #22 below, also created automatically I guess.
    I am a little bit confused because the OIM manual -- http://docs.oracle.com/cd/E27559_01/user.1112/e27151/myaccess.htm#OMUSG3166 -- says the user can just perform the operations on the accounts, but says nothing about any kind of restriction. I mean, what are exactly the state transition for accounts (the default one)?
    TIA

  • Enable/disable textbox depending on list option, list is dependent on Radio

    Hi,
    I'm trying to enable/disable text_box which is dependent on select_list option, select_list is dependent on radio_button.
    I'm able to enable/disable select_list using radio_button options, but I'm unable to handle text box which is again dependent on this SELECT_LIST item.
    under html header page:-
    <script type="text/javascript">
    function disableOnValue(o)
    if (o.value == 'Y')
    document.getElementById('P86_Select_list_item').disabled = false;
    else
    document.getElementById('P86_Select_list_item').disabled = true;
    document.getElementById('P86_text_box_item').disabled = true;
    </script>
    <script type="text/javascript">
    $(document).ready(function()
    $('#P86_Select_list_item').change(function()
    if($(this).val() == 'Other')
    $('#P86_text_box_item').attr("disabled", false);
    else
    $('#P86_text_box_item').attr("disabled", true);
    </script>
    under Region_Source of the region, whose Display point :- <b>Before Footer</b>
    <script type="text/javascript">
    if(document.getElementById('P86_radio_button_0').checked == true)
    {disableOnValue(document.getElementById('P86_radio_button_0'));}
    else
    {disableOnValue(document.getElementById('P86_radio_button_1'));}
    </script>
    and under Radio_button item, HTML Form Element Attributes :- <b>onchange="javascript:disableOnValue(this);"</b>
    also same way under text_box item , HTML Form Element Attributes :- <b>disabled</b>
    any help
    Deep

    Thanks for replying Ben,
    I have kept an example into apex workspace
    workspace:- DEEPAPEX
    username:- [email protected]
    password:- walubu
    application "Javascript" page 1
    I'm able to enable/disable Select_list item & Text_box item with the help of Radio_button item(depending on user select yes or no option of the radio button)
    But after selecting Yes option of the radio_button, only when user select "Other" option of the Select_List item the Text_box should be enabled otherwise it should be disabled for any of the options of the Select_list item.
    I hope you understand my point.
    Deep

  • Ipod disabled try again in 23257422 minutes message. how do i now use my ipod touch

    I have got the message "ipod disabled try again in 23...... minutes. Is there a fix for this

    Disabled
    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Forgot passcode or device disabled
    If recovery mode does not work try DFU mode.                        
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings        
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: Back up and restore your iOS device with iCloud or iTunes       
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        
    If problem what happens or does not happen and when in the instructions? When you successfully get the iPod in recovery mode and connect to computer iTunes should say it found an iPod in recovery mode.
    If you previously synced to the computer then you may be able to recover use of the iPod without erasing the iPod by following the instructions here:
    Disabled Recovery-must use syncing computer.

  • How to enable / disable SSRS Parameter

    Hi
    I want to enable a parameter called "start date" (type is date) when another (value from dropdown) parameter is selected
    Say for an example, i have below 3 parameters
    1. drop down which 2 values called "vtextbox","vdate"
    2. start (data type is date)
    3. finish (data type is date)
    when i select "vdate"value from the dropdown 2nd and 3rd parameters has to be enable
    similarly when i select "vtextbox" value from the dropdown 2nd and 3rd parameter has to disable
    I have searched many forums every one says this is not possible in report manager interface
    But this is possible in custom code
    please make a note all three parameters are independant
    It would be great if any one provide the custom code for same
    Regards
    Santosh

    Hi itsmesantosh1982,
    According to your description, you want to use a parameter to control enable/disable other two parameters. Right?
    In Reporting Services, when we create a parameter, this parameter has been enabled. The only way you want to disable the parameter is deleting it. In this scenario, disable the two parameter is same as selecting all values in these two parameters. So
    we can just modify the default values in 2nd and 3rd parameter instead of using cascading parameter. We can create a dataset, put in the query below:
    IF @Param='vtextbox'
    select distinct startdate from [table]
    else
    select '[value]'
    The [value] can be any value which is not existing in [table]. So when you select 'vtextbox', the default value will be all values in the table. If you select 'vdate', it will need you to select value automatically because the return value is not existing
    in the table. This can be an effective workaround for your requirement.
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Problem in enabling/disabling Custom JDeveloper Extension

    Hi,
    I've been trying to develop an extension for JDeveloper version 11.1.1.3/11.1.1.4 which i should be able to enable/disable from Tools->Preferences->Extensions section. However the problem i'm facing is that, after installing the newly developed extension, if i try to disable it by unchecking it from the Tools>Preferences->Extensions list, it does not show up in the extensions list after JDeveloper restarts. Therefore if i want to enable it again, i'm not able to do that because it is not available in the list.
    Trouble is that even if i reinstall it again (from Help->Check for updates) it does not appear in the list, and it does not work either because JDeveloper is treating the extension as disabled.
    I've kept my extension.xml simple for now:
    <?xml version="1.0" encoding="windows-1252" ?>
    <extension xmlns="http://jcp.org/jsr/198/extension-manifest" id="oracle.ide.sampleextension" version="11.1.1" esdk-version="1.0">
    <name>Sample Extension</name>
    <owner>Oracle</owner>
    <hooks>
    *<feature-hook>*
    *<description>Sample Extension</description>*
    *<optional>true</optional>*
    *</feature-hook>*
    </hooks>
    </extension>
    My bundle.xml is:
    <update-bundle version="1.0" xmlns="http://xmlns.oracle.com/jdeveloper/updatebundle" xmlns:u="http://xmlns.oracle.com/jdeveloper/update">
    <u:update id="oracle.ide.sampleextension">
    <u:name>Sample Extension</u:name>
    <u:version>11.1.1</u:version>
    <u:author>Oracle</u:author>
    <u:author-url>www.oracle.com</u:author-url>
    <u:description>Sample Extension</u:description>
    <u:requirements>
    <u:requires-extension id="oracle.jdeveloper"
    minVersion="11.1.1.3.37.56.60"
    maxVersion="11.1.1.4.99.99.99" />
    </u:requirements>
    </u:update>
    </update-bundle>
    I've done a lot of troubleshooting on this issue but in vain. I could not find any help on google either. Can anyone please help me on this?
    Thanks in advance,
    Suhail.
    Edited by: 865337 on Jun 13, 2011 2:34 PM

    Hi Suhail,
    Can you zip up your project folder and send it to me in email? I'll look it over and try to find the issue.
    email is: john<DOT>brock<AT>oracle<DOT>com
    I'm not quite sure what is is going on, but I suspect that the extension.xml file is to simple. Not even sure what I mean by that just yet. I want to take a look at see what is in the extension.xml file compared to some of the more basic extensions that I have created for demos and blogs, etc.
    Go ahead and send me the source and I'll take a look.
    Is there a reason that you are staying on 11.1.1.3 by the way? We are up to 11.1.1.5 right now in the 11gR1 release. I'm not aware of a bug like this, but it could be something in the older version.
    --jb                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How stop the automatic statistics collection job after the maintenance wind

    Hi,
    we are for a solution to stop the automatic statistics collection job after the maintenance window finished.
    we disable all jobs except the automatic statistics collection, because this is the only one we want to run. Then we define specific values for the interval and duration parameters of the maintenance window to customize this task.
    But for their systems it is very important that this job/task will immediately stop when the window is closed!!!
    So, how could we ensure this behavior.
    For Oracle 10g it is easy because the statistic job always exists and it is possible to set its duration and create an addtional event based job which kills all jobs that are running over duration.
    In Oracle 11g the statistic job is created by the system during the maintenance window is open.
    We are not able to modify parameters of this system job. After the maintenance window closed the job is already running - only with another resource priority - but it is running.
    Please help me in this scenario
    Thanks&Regards
    Prem

    ?So basically you are saying is if none of the tables are changed then GATHER_STATS_JOB will not run, but i see tables are updated still the job is not running. I did >query dba_scheduler_jobs and the state of the job is true and scheduled. Please see my previous post on the output
    Am i missing anything here, do i look for some parameters settings
    So basically you are saying is if none of the tables are changed then GATHER_STATS_JOB will not run,GATHER_STATS_JOB will run and if there are any table in which there's a 10 percent change in data, it will gather statistics on that table. If no table data have changes less than 10 percent, it will not gather statistics.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/stats.htm#i41282
    Hope this helps.
    -Anantha

  • Use rich:fileUpload/ to enable/disable my buttons with checking file names

    Hello!
    I need to upload some files with using <rich:fileUpload>,and i did it but i need to check file names for some reasons and enable or disable upload button but my problem is that when i open my modal panel and click add button of <rich:fileUpload> and then add upload button of <rich:fileUpload>(not my upload button but upload button wich <rich:fileupload> has) i check file name but the button is not enable/disable until i close my modal panel and open it agin,so i need to know how to modify my code to make it work?
    <rich:modalPanel  id="uploadFile" autosized="true" resizeable="false">
                    <f:facet name="header">
                     <h:panelGroup>
                         <h:outputText value="uploadFiles"></h:outputText>
                     </h:panelGroup>
                 </f:facet>
                 <h:form>
                      <rich:fileUpload  maxFilesQuantity="#{uploadBean.maxUploadFiles}" allowFlash="true" fileUploadListener="#{uploadBean.uploadListener}" immediateUpload="false"/>
                             <table>
                                <tr>
                                     <td><h:commandButton disabled="#{!uploadBean.xlsNameValid}" rendered="#{!uploadBean.admin}"  action="#{uploadBean.upload}" value="upload" /></td>
                                     <td><h:commandButton action="#{uploadBean.clearFiles}" value="cancel" id="cancel"/></td>
                                </tr>           
                           </table>
                 </h:form>
                 <rich:componentControl for="uploadFile" attachTo="cancel" operation="hide" event="onclick"/>
              </rich:modalPanel>

    No the problem is that file is being checked on server side, but if file is invalid the button Upload(my button ,not standart rich:fileUpload) must be disbaled,and shown,but i have to close this modal panel and open it again to see my button enabled/disabled

  • HT1212 i have the message Ipod is disabled, try again in 9,595 days.  help

    i  have the message Ipod is disabled, try again in 9,595 days.  help!

    Disabled
    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                         
    If recovery mode does not work try DFU mode.                        
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings        
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: How to back up     
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        

Maybe you are looking for

  • Nforce 3 Platninum and 6800GT works fine for a week or so then fails to boot.

    Hi everyone, I have read pretty much all the posts on the forum, but none show the exact same problem as mine, as far as I can see. I have an MSI Nforce 3 plat mobo (with latest BIOS), which is turning out to be the worst investment I ever got. My sp

  • Help with Maps and bookmarks

    I want to use Maps while I read travel books, marking each city I read about it with a pin bookmarked with a short descriptive phrase.  I'd like to then have several cities marked, each with my bookmark name.  But I can't seem to do this.  I bookmark

  • Spacebar freeze & IMac restart?

    I was typing an email (Eudora) on my new, one month old intel iMac. Suddenly the spacebar wouldn't work (no space made when clicking on it). I hit the return key. The other keys worked. I tried the spacebar again. And again! Suddenly the computer res

  • Java Plug-in Error

    I run Windows XP home with SP2. I have installed J2SE Runtime Environment 5.0 Update 3 and Java 2 Runtime Environment, SE 1.4.2_08. My Java had been running fine but now all of a sudden I am receiving this error message: "Java(TM) Plug-in Fatal Error

  • Do forwarding settings on BTYahoo survive the migr...

    Hi there - can anyone who has already been "migrated" answer me 2 simple questions please? I haven't yet been migrated and am not looking forward to it - and I am quite experienced with the BT webmail and pop3/smtp systems over many years but at the