Exception for Job

Hello,
I created a job with dbms_scheduler.create_job which runs from Montday to Friday at 7:00 a.m.
My question is:
Is it possible to make an exception for this job, because I only want to run this job on normal workdays and not on holidays.
Thanks so much,
LISA

Hi Lisa,
If your job just runs a procedure, you could create a table that contains a list of dates you want to exclude and update your procedure to check this list before running the rest of the code. It wouldn't stop your job from running, but it would do nothing on those dates.
Andy

Similar Messages

  • Schedule Executed weekly except for a specific day of the month

    Hi all,
    I need to create a schedule that run weekly every sunday at 9 PM, except for 2nd day of the month it will run at 7 AM.
    I have created 2 schedules:
    1. One to run weekly every sunday at 9 PM, but i don't know from where i can specify the days of the month the schedule will be inactive on it.
    * I have tried By Month Day option, and choose all days of the month except second day of the month to run on it.
    FREQ=WEEKLY; BYMONTHDAY=1,3,4,5,..,31; BYDAY= SUN; BYHOUR=21;
    But, on the schedule preview window as i have designed the schedule from oracle warehouse builder, shows sunday, 02, July for example.
    as an execution date for this schedule.
    which is not appropriate.
    2. Another job is created to run monthly on the 2nd day of the month,
    FREQ=MONTHLY; BYMONTHDAY=2; BYDAY= SUN; BYHOUR=7;
    So, please advice how to create schedules daily or weekly and neglect some days of month from it.

    Hi,
    You can use the exclude clause introduced in 10gR2 for this by creating a schedule when your job should not run and excluding it. An example is given below.
    Hope this helps,
    Ravi.
    create or replace procedure print_schedule_dates
       schedule in varchar2,
       start_date in timestamp with time zone default dbms_scheduler.stime(),
       number_of_dates in pls_integer default 10
    is
      date_after timestamp with time zone := start_date - interval '1' second;
      next_date timestamp with time zone;
    begin
      for i in 1 .. number_of_dates
      loop
        dbms_scheduler.evaluate_calendar_string
         (schedule, start_date, date_after, next_date);
        dbms_output.put_line(to_char(next_date,
                        'DY DD-MON-YYYY (DDD-IW) HH24:MI:SS TZH:TZM TZR'));
        date_after := next_date;
      end loop;
    end;
    begin
      dbms_scheduler.create_schedule('monthday2',
        repeat_interval=>'freq=monthly;bymonthday=2');
    end;
    exec print_schedule_dates('FREQ=WEEKLY;BYDAY=SUN;BYHOUR=21;exclude=monthday2',sysdate+1,30);
    exec print_schedule_dates('FREQ=WEEKLY;BYDAY=SUN;BYHOUR=21',sysdate+1,30);

  • Receive the following error message when trying to approve or reject from Pending "The service threw an unknown exception. See inner exception for details"

    Hi, The server agent was grayed out.  I uninstall it from control panel and removed it from agent managed.  When I tried to install the agent, it failed.  I installed the agent manaully and tried to approve it received the error message
    "The service threw an unknown exception. See inner exception for details"  I have the details but does not tell me much (I can post it).  I removed it from control panel (while still showin in pending),
    and tried to reject it.  Again, received the same error message as above.  This a very critical server, could someone help me with this issue?  Thanks, Ziba

    Thank you Alexey, please see the following details:
    Date: 8/19/2010 7:28:51 AM
    Application: System Center Operations Manager 2007 R2
    Application Version: 6.1.7221.0
    Severity: Error
    Message:
    Microsoft.EnterpriseManagement.Common.UnknownServiceException: The service threw an unknown exception. See inner exception for details. ---> System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]:
    Exception of type 'Microsoft.EnterpriseManagement.Common.DataItemDoesNotExistException' was thrown. (Fault Detail is equal to An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
    Microsoft.EnterpriseManagement.Common.DataItemDoesNotExistException: Exception of type 'Microsoft.EnterpriseManagement.Common.DataItemDoesNotExistException' was thrown.
       at Microsoft.EnterpriseManagement.Mom.DataAccess.DataAccessUtility.GetManagedEntityKeyValuePairs(IList`1 baseManagedEntityIds, DatabaseConnection databaseConnection)
       at Microsoft.EnterpriseManagement.Mom.ServiceDataLayer.DiscoveryDataManager.DeleteUserActionManagersByAgentPendingActionId(IList`1 agentPendingActionIds)
       at Microsoft.EnterpriseManagement.Mom.ServiceDataLayer.SdkDataAccess.RejectAgentPendingActions(IList`1 agentPendingActionIds)
       at Microsoft.EnterpriseManagement.Mom.ServiceDataLayer.SdkDataAccessTieringWrapper.RejectAgentPendingActions(IList`1 agentPendingActionIds)
       at Microsoft.EnterpriseManagement.Mom.ServiceDataLayer.SdkDataAccessExceptionTracingWrapper.RejectAgentPendingActions(IList`1 agentPendingActionIds)
       at ...).
       --- End of inner exception stack trace ---
       at Microsoft.EnterpriseManagement.DataAbstractionLayer.SdkDataAbstractionLayer.HandleIndigoExceptions(Exception ex)
       at Microsoft.EnterpriseManagement.DataAbstractionLayer.AdministrationOperations.RejectAgentPendingActions(IList`1 agentPendingActionIds)
       at Microsoft.EnterpriseManagement.Administration.ManagementGroupAdministration.RejectAgentPendingActions(IList`1 monitoringObjects)
       at Microsoft.EnterpriseManagement.Mom.Internal.UI.Views.PendingManagementView.<>c__DisplayClass8.<OnRejctAgent>b__7(Object , ConsoleJobEventArgs )
       at Microsoft.EnterpriseManagement.Mom.Internal.UI.Console.ConsoleJobExceptionHandler.ExecuteJob(IComponent component, EventHandler`1 job, Object sender, ConsoleJobEventArgs args)
    System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: Exception of type 'Microsoft.EnterpriseManagement.Common.DataItemDoesNotExistException' was thrown. (Fault Detail is equal to An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true,
    whose value is:
    Microsoft.EnterpriseManagement.Common.DataItemDoesNotExistException: Exception of type 'Microsoft.EnterpriseManagement.Common.DataItemDoesNotExistException' was thrown.
       at Microsoft.EnterpriseManagement.Mom.DataAccess.DataAccessUtility.GetManagedEntityKeyValuePairs(IList`1 baseManagedEntityIds, DatabaseConnection databaseConnection)
       at Microsoft.EnterpriseManagement.Mom.ServiceDataLayer.DiscoveryDataManager.DeleteUserActionManagersByAgentPendingActionId(IList`1 agentPendingActionIds)
       at Microsoft.EnterpriseManagement.Mom.ServiceDataLayer.SdkDataAccess.RejectAgentPendingActions(IList`1 agentPendingActionIds)
       at Microsoft.EnterpriseManagement.Mom.ServiceDataLayer.SdkDataAccessTieringWrapper.RejectAgentPendingActions(IList`1 agentPendingActionIds)
       at Microsoft.EnterpriseManagement.Mom.ServiceDataLayer.SdkDataAccessExceptionTracingWrapper.RejectAgentPendingActions(IList`1 agentPendingActionIds)
       at ...).

  • All content except for PDF are stuck in GenWWW - IBR IS converting them..

    Hello,
    We are having a serious issue with our UCM/IBR where all new documents except for PDF's are successfully converted (we confirmed this through IBR weblayout directory and log files) but they are never Released.
    We have tried the following:
    1. Reindexing
    2. Rebooting both servers (including admin server)
    We are using Direct PDFExport and Digital Media Graphics for conversion.
    The connection status is OK and there are no errors in the logs and I can't even begin to tell you what some of this means in the trace log.
    I don't usually say this but... Please help!!

    Guys. It DID go through IBR. The conversion files, such as the thumbnails and web renditions for images are all being created and the trace logs in IBR even confirm that they were successfully converted. The issue is NOT that files are not being converted, it is that they are not getting released from GenWWW. We have rebuilt the Index twice and rebooted the services on each box.
    Yes we are using PassThru for PDF's because there is no need to convert them. We are using Digital Media Graphics and PDFExport for the rest. This morning when we got in most of them had finally converted, but there are a few that are not, and we submitted some an hour ago and they are showing the same symptoms.
    I have noticed a couple of strange things from the trace logs, as well as the weblayout folder:
    1. The weblayout folder that contains the conversions in question from yesterday (there were about 3 dozen jpg's from the same folder) have something interesting going on. We recently renamed the parent folder from "Photos" to "Project Visuals," however within that weblayout folder there is ONLY a "Photos" folder - yet it contains all the newly converted files (which are in Project Visuals folder). I am thinking this might be a problem.
    2. In the IBR logs I notice at the beginning and end of the job the COPYJOB operation does not get passed a job id. The exact errors are:
    refinery/6     03.08 16:51:21.009     IdcServer-3047     entered m_postConvertedJobsTable edit with action: COPYJOBS; on jobID: <no id passed>
    refinery/6     03.08 16:51:36.219     IdcServer-3048     entered m_postConvertedJobsTable edit with action: COPYJOBS; on jobID: <no id passed>
    refinery/6     03.08 16:51:41.305     IdcServer-3049     entered m_postConvertedJobsTable edit with action: COPYJOBS; on jobID: <no id passed>
    refinery/6     03.08 16:51:41.352     IdcServer-3050     entered m_postConvertedJobsTable edit with action: COPYJOBS; on jobID: <no id passed>
    refinery/6     03.08 16:51:44.082     Job_10396_prod_ucm     starting conversion: DIGITAL MEDIA GRAPHICS; is subconversion: false
    refinery/6     03.08 16:51:44.082     Job_10396_prod_ucm     Script: TRUE
    refinery/6     03.08 16:51:44.082     Job_10396_prod_ucm     Evaluated to: TRUE
    refinery/6     03.08 16:51:44.082     Job_10396_prod_ucm     Script: DigitalGraphicRenditions
    refinery/6     03.08 16:51:44.082     Job_10396_prod_ucm     Evaluated to: DigitalGraphicRenditions
    refinery/6     03.08 16:51:44.082     Job_10396_prod_ucm     Starting step: DigitalGraphicRenditions
    refinery/6     03.08 16:51:44.082     Job_10396_prod_ucm     Script: onErrorFail, producesRequiredWebviewable...
    refinery/6     03.08 16:51:45.408     Job_10396_prod_ucm     Finished step: DigitalGraphicRenditions
    refinery/6     03.08 16:51:45.408     Job_10396_prod_ucm     Steps completed for Job: 10396
    refinery/6     03.08 16:51:45.408     Job_10396_prod_ucm     DigitalGraphicRenditions: 1: C:/app/oracle/product/fmw/USER_P~1/domains/prod_ibr_domain/ucm/ibr/vault/~temp/prod_ucm/10396/prod_032539~4.jpg
    refinery/6     03.08 16:51:45.408     Job_10396_prod_ucm     dConversionState = Converted
    refinery/6     03.08 16:51:45.408     Job_10396_prod_ucm     dConvMessage = Success
    refinery/6     03.08 16:51:45.408     Job_10396_prod_ucm     dFormat = image/jpeg
    refinery/6     03.08 16:51:45.408     Job_10396_prod_ucm     dWebExtension = jpg
    refinery/6     03.08 16:51:45.408     Job_10396_prod_ucm     RefineryConvertedFile = prod_032539~4.jpg
    refinery/6     03.08 16:51:45.408     Job_10396_prod_ucm     RefineryPrimaryConvertedPath = C:/app/oracle/product/fmw/USER_P~1/domains/prod_ibr_domain/ucm/ibr/vault/~temp/prod_ucm/10396/prod_032539~4.jpg
    refinery/6     03.08 16:51:45.408     Job_10396_prod_ucm     AdditionalRenditions = THUMBNAIL_PNG,ZIPRENDITIONS
    refinery/6     03.08 16:51:45.408     Job_10396_prod_ucm     finished conversion: DIGITAL MEDIA GRAPHICS; is subconversion: false
    refinery/6     03.08 16:51:49.136     QueueLockId_10396     entered m_postConvertedJobsTable edit with action: ADDJOB; on jobID: 10396
    refinery/6     03.08 16:51:51.429     IdcServer-3052     entered m_postConvertedJobsTable edit with action: COPYJOBS; on jobID: <no id passed>
    refinery/6     03.08 16:51:53.847     IdcServer-3054     entered m_postConvertedJobsTable edit with action: DELETEJOB; on jobID: 10396
    refinery/6     03.08 16:52:06.639     IdcServer-3059     entered m_postConvertedJobsTable edit with action: COPYJOBS; on jobID: <no id passed>As you can see the job has finished successfully from the log as well.
    Do any of you know what is the normal expected behavior for these two scenarios? Shouldn't the conversion process create a new folder and update all the references from the photos folder?
    I will continue with my troubleshooting as you have suggested. I appreciate the feedback.
    thank you
    s
    Edited by: SethBW on Mar 9, 2012 7:59 AM
    Edited by: SethBW on Mar 9, 2012 7:59 AM
    I'm not sure why but it won't let me get rid of the jive quote tag... that's a problem with this forum and the default output of the trace logs.
    Edited by: SethBW on Mar 9, 2012 8:21 AM

  • Cs6: All the apps seem to be working fine, except for Illustrator and Photoshop

    I just purchased and installed CS6. All the apps seem to be working fine, except for Illustrator and Photoshop. Why would that happen?  I'm a freelancer and I have jobs to finish... can anyone help with this?

    what's the problem with ps and ai?

  • TS3988 Can someone please help me?   I have an Iphone 5 and Love it except for one thing. I changed  email address from yahoo to Gmail and updated it on my Apple ID at Apple.  Apple recognizes and accepts this change but Icloud won't update the new email

    I have an Iphone 5 and Love it.  Except for one thing;  I recently changed from ymail email account to a gmail account. I updated it on the
    Apple/ Itunes site and it does accept the change.  I can still access the APP store and Itunes. 
    However, sometimes I get a pop up box from Apple showing the old email address and asking me to sign in..... I hit cancel and move on.   But, now Icloud keeps popping up promting me to sign in and it shows the old email which I don't have anymore.... I tried signing in with the old info to clear it off screen of my phone but, it doesn't allow and I hit cancel and it goes away. only to appear later again....  This is so frustrating and annoying.    Is there any way to get the Icloud to update the email address with my Apple ID log in info--without having to delete stuff or lose things on my phone? 
    Please help?  
    Dia

    Thank you for replying.    Yes I deleted the old email address..   

  • HT1386 My MacBook Pro HD crashed.  It is all up and runmning except for one issue.  I have about 200 songs on my iPhone but have only gotton 53 back on my laptop and those are the songs I purchased via iTunes. How do I get the rest of the songs from iPhon

    My MacBook Pro HD crashed.  It is all up and runmning except for one issue.  I have about 200 songs on my iPhone but have only gotton 53 back on my laptop from my iPhone and those are the songs I purchased via iTunes. How do I get the rest of the songs from my  iPhone back onto my HD. 
    The songs I'm not able to import casme from CD's.  Nothing from napster etc.
    I've tried and tried to import them rom iTunes vis "Library"  " Import"

    Hey kbert73
    I would do a transfer of purchases from the phone and not sync. If you sync then it will want to start over and sync music that is on the MacBook Pro. If you want to transfer the music, check out the article below that will give you multiple options on how to move. I have also provided on how to sync with multiple computers.
    iTunes: How to move your music to a new computer
    http://support.apple.com/kb/ht4527
    Using iPhone, iPad, or iPod with multiple computers
    http://support.apple.com/kb/ht1202
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • Recently, U2 music appeared on my ipod without my requesting it or wanting it. I was able to delete all of the songs except for one. How do I delete the last one from my ipod? The song does not show up in iTunes when I plug my ipod into the computer.

    Recently, U2 music appeared on my ipod without my requesting it or wanting it. I was able to delete all of the songs except for one. How do I delete the last one from my ipod? The song does not show up in iTunes when I plug my ipod into the computer. The version installed on my ipod is 7.1.2(11D257).

    Hi donfrommars,
    Welcome to the Apple Support Communities!
    Please use the following article for information and instruction on deleting the U2 album from your devices and account.
    Remove iTunes gift album "Songs of Innocence" from your iTunes music library and purchases
    Have a great day,
    Joe

  • Issue in SAP CPS for Job Interception

    Issue in SAP CPS for Job Interception
    Scenario:
    After triggering a Process Chain in BW and maintaining the Job Interception settings in SAPCPS(Redwood)
    (so that any job which triggers in BW by that Particular User is intercepted and not let it proceed further until the job is released in SAP CPS.)
    Issue:
    The Jobs are getting  into  Waiting status in SAP CPS(Redwood) even though there is no progress in loads in BW side. Also the Jobs are in Intercepted state even after releasing the Parent Job in SAP CPS(Redwood).
    Please let us know how  to go about it.

    Hi Ramesh,
    What you plan to do is called monitoring of process chains (ie. process chains not started from CPS) and this should be available in the latest version of CPS.
    This requires the interception of only the BI_PROCESS_TRIGGER process, just as you have configured now, and other than that the following prerequisites:
    SAP Note 1080558 describes the SP levels for the BW/BI releases
    XBP 2.0 or higher
    Redwood transport files must be loaded
    ProcessServerService.SAP.XBPVariant license key
    Maybe this helps,
    Anton.

  • My calendar on my iPhone 4 erases all data over a month old except for recurring events.  How Do I get it to keep the info and not erase calendar events?

    My calendar on my iPhone 4 erases all data over a month old except for recurring events.  How Do I get it to keep the info and not erase calendar events?

    Settings>Mail, Contacts, Calendars>Calendars>Sync>All Events.
    Note: If you're using a work Exchange account, the administrator my have restricted your options for this setting.

  • I've just hooked my 20" iMac up to my Toshiba 37" HDTV using a mini dvi-HDMI adapter, and works well, EXCEPT for the green tinge (or hue) that is showing up on my TV. Any suggestions or ideas?

    I've just hooked my 20" iMac display up to my Toshiba 37" HDTV using a mini dvi-HDMI adapter, and everything works well, EXCEPT for the green tinge (or hue) that is showing up. Everything else looks pretty good though..... The color that is on my iMac is still good, Its just green on the TV.
    Anyone have suggestions or ideas?

    Try opening the Display System Preferences, then click on the Color options in the Display preferences window that appeared on the Toshiba display. Click on the Calibrate button and follow the instructions for creating a custom ColorSync profile that will hopefully solve the green tinge issue. The Apple Display Calibrator Assistant software that launches when you click on the calibrate button will walk you through the process.Assuming that the green tinge is minor and that you don't have a more serious cable or hardware issue, I am hopeful the results will be worth it.

  • PL/SQL Exception for ORA-00942 - Table or view not found?

    Hey there!
    I want to create an exception my code runs into whenever it tries to select from a table that is not existent (or because of insufficient privileges).
    How can I get these ORA-00942 errors and place them into a exception? Except for WHEN OTHERS, that's not concrete enough.
    Regards,
    Thomas

    SQL> DECLARE
      2   table_not_found EXCEPTION;
      3   PRAGMA EXCEPTION_INIT(table_not_found, -942);
      4  BEGIN
      5   EXECUTE IMMEDIATE 'SELECT COUNT(*) FROM DUALX';
      6  EXCEPTION
      7   WHEN table_not_found
      8   THEN
      9      dbms_output.put_line('Table NOT found');
    10  END;
    11  /
    Table NOT found

  • I need to use Outlook Express to apply for jobs and I either don't have it but when I try to send an e-mail on Outlook Express, it won't go through and gives me an error report.....I really need to be able to use Outlook Express to apply for jobs. Help!

    When I try to apply for job and when I try to e-mail my resume' and Outlook Express comes up to reply to on, I put in my information, etc but when I hit send, it doesn't go through and says? POP and then error report and doesn't go through.

    I can't provide a solution with or without the error message, but without an error message, you are making everyone guess at what you see. I have no idea what you see, and I think someone who might be able to help you solve your problem would need to know what that message says. Is "Outlook Express" (Windows Live Mail) your default email processor, if not what is?

  • In my Iphone 5, Nothing on my App Store is working its displaying blank (Except for Genius section). I've tried to uninstall and install itunes and all its component but still it doen't fix. Not sure if its problem with apple servers. Someone help please!

    In my Iphone 5, Nothing on my App Store is working,  its displaying blank (Except for Genius section). I've tried to uninstall and install itunes and all its component in my desktop but still it doesn't fix the app store issue. Not sure if its problem with apple servers. Someone help please!

    settigns>itunes and app store to make sure you are signed in.. If  you are, you will see your account name..... anyhow, click your account name, sign out and sign back in
    also go to to settings>general>reset and reset network settings... if that doesnt work settings>general>reset and reset all settings!
    one of those shall work. The last step would be to restore your device (apple.com/support) HT1414

  • Function Module for Job reschedule

    Hello Experts,
    Is there a function module for job rescheduling as i need to create a automation program where i need to select all jobs from excel sheet and reschedule at different time.
    Thanks and Regards,
    Nikhil Kanegaonkar.

    You could use the following FM
    - [BP_JOB_READ|http://www.sdn.sap.com/irj/scn/advancedsearch?query=bp_job_read] (read first from TBTCO to fill field JOBCOUNT)
    - [BP_JOB_CREATE|http://www.sdn.sap.com/irj/scn/advancedsearch?query=bp_job_create] (change schedule parameters first)
    - for recent versions [BP_JOB_COPY|http://www.sdn.sap.com/irj/scn/advancedsearch?query=bp_job_copy]
    You should take a look at FM of the FG BTCH and SAP documentation like [Programming with the Background Processing System (BC-CCM-BTC)|http://help.sap.com/saphelp_nwpi71/helpdata/en/fa/096c53543b11d1898e0000e8322d00/frameset.htm]
    Regards,
    Raymond

Maybe you are looking for

  • Iphone 4s disabled not recognized itunes

    iphone 4s said disabled, try again after 60 minutes.  I called it from another phone and received the call.  After the call disconnected the phone said disabled and try again after 26 min.  There is no unlock screen only the emergency call screen.  P

  • Printing from iPad 4

    How to print a a4 size photo from iPad 4th generation

  • SAP Best Practice Baseline upgrade.

    Dear All, Im quite confuse here. I install SAP BP Baseline v1.603 (Malaysia) using system copy. Everything working find and now i try to upgrade it to SAP ERP 6.0 EHP4..May i know is it possible to upgrade to EHP4 for this best practices because i ca

  • Shared Services - CustomClass implementation issues, need help?

    We are attempting to deploy a custom login and custom authentication module to Shared Services, but we are receiving the following error: [2013-11-15T13:43:23.527-05:00] [EPMCSS] [NOTIFICATION:16] [EPMCSS-20007] [oracle.EPMCSS.CSS] [tid: 14] [ecid: d

  • Sap Backend and XI

    Hi Guys,              Could you please tell me how to connect SAP Backend to XI? Regards, Ashish