How to schedule a service to run before network goes down

Hi
I wrote a new smf service and added it to the repository.
When running with "stop" (when the system goes down) it sends an alert to another machine.
My question is :
How can I schedule that service to run just before network services go down?
another question, how can I schedule another service to run just BEFORE system is getting down?
Many Thanks
--me2unix                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Dependencies appear to be really written and tested on the boot side, but they should work properly going down as well.
My first assumption is that you'd make a dependency on the network for your service. So it should be started after the network starts, and will wait for your service to quit before trying to shut down the network.
Now this would only apply to normal shutdowns. Also, there are mulitple services on the box that have network affects. You may need to read through several to understand their purpose and interaction to pick the correct one for your use. Probably the milestone/network will be the best choice.
Darren

Similar Messages

  • How to schedule the job to run evry Sunday at 12 P.M IST.

    Hi Experts,
    I want to schedule a job which will run evry Sunday at 12 P.M IST.
    I have written the below script.
    [code]BEGIN
      SYS.DBMS_SCHEDULER.CREATE_JOB
           job_name        => 'SERVICE_SAL_FS.SAL_MESSAGE_BUFFER_PURGE_JOB'
          ,start_date      =>  SYSTIMESTAMP
          ,repeat_interval => 'FREQ=WEEKLY; BYDAY=SUN; BYHOUR=12;BYMINUTE=0; BYSECOND=0;'
          ,end_date        =>  NULL
          ,job_class       => 'DEFAULT_JOB_CLASS'
          ,job_type        => 'STORED_PROCEDURE'
          ,job_action      => 'SERVICE_SAL_FS.SAL_MESSAGE_BUFFER_PURGE_PROC'
          ,comments        => 'Run at 12 P.M.IST every Sunday'
          ,enabled            => TRUE
    END;[/code]
    But the server in US.
    [code]SELECT sysdate from Dual;
    6/11/2013 3:58:58 AM
    --But the time in India is 02:28 PM [/code]
    How to convert the timezone to IST.
    Please help me how to schedule the job to run evry Sunday at 12 P.M IST.
    Thanks.

    Did you read DBMS_SCHEDULER docs:
      The calendaring syntax does not allow you to specify a time zone. Instead the Scheduler retrieves the time zone from the start_date argument. If jobs must follow daylight savings adjustments you must make sure that you specify a region name for the time zone of the start_date. For example specifying the start_date time zone as 'US/Eastern' in New York will make sure that daylight saving adjustments are automatically applied. If instead the time zone of the start_date is set to an absolute offset, such as '-5:00', daylight savings adjustments are not followed and your job execution will be off by an hour half of the year.
      When start_date is NULL, the Scheduler will determine the time zone for the repeat interval as follows: 
    It will check whether the session time zone is a region name. The session time zone can be set by either:
    Issuing an ALTER SESSION statement, for example:
    SQL> ALTER SESSION SET time_zone = 'Asia/Shanghai'; 
      Setting the ORA_SDTZ environment variable.
      If the session time zone is an absolute offset instead of a region name, the Scheduler will use the value of the DEFAULT_TIMEZONE Scheduler attribute. For more information, see the SET_SCHEDULER_ATTRIBUTE Procedure.
      If the DEFAULT_TIMEZONE attribute is NULL, the Scheduler will use the time zone of systimestamp when the job or window is enabled.
    SY.

  • How to schedule a job to run twice within a request set?

    How to schedule a job to run twice within a request set?

    Create one more stage for the same concurrent program.
    Thanks
    Nagamohan

  • How to schedule reports to be run and sent from Ad-hoc query.

    Dear Abapers,
    I got a requirement in which the user wants to know how to schedule reports to be run and sent from Ad-hoc query.
    Regards
    Venkat

    Ask him to look more carefully at the menu : Quickview > Execute > Exec. in background, then click on schedule
    Regards,
    Raymond

  • Configure how long a automatic activity  can run before timeout

    I have a long running job in this step. Can I configure how long that automatic activity can run before it will time out. How do I configure this when running in the BPM Studio and when deploy the apps to the server?
    Alternatively, I was try to use a SecureShell to run a unix job with nohup but somehow it doesn't execute properly and the shell would exit out but the script would not run. When I run the same nohup command line in the external host, it does run properly. Is there any special way to call nohup through SecureShell.
    Thanks,
    Wing

    You can define the timeout of the BP-Methods that is actually the value that should be used for the method in your automatic activities. This is configured into the Engine preferences and it's the Maximum BP-Methods+ Timeout parameter, both for the studio and the enterprise.
    Remember to handle the timeout exception when using this parameter. If not correctly handled, your process will abort.
    HTH
    Giuliano

  • Services of all the databases goes down

    Hi ,
    2 days back, Services of all the databases goes down on one of the PROD server.
    When i tried to start the services using SRVCTL command .
    I was getting the error below.
    oracle@shbaorc07b bin]$ srvctl status database -d EDW
    PRKH-1010 : Unable to communicate with CRS services.
    [Communications Error(Native: prsr_initCLSS:[3])]
    PRKO-2005 : Application error: Failure in getting Cluster Database Configuration for: EDWX
    PRKC-1056 : Failed to get the hostname for node + PRKH-1010 + prsr_initCLSS
    after this error, i came to know that there is some problem with the services.
    When i try to start the crs services, was not able to start the services
    as a root user user,
    I run the below command.
    crsctl start crs
    to my surprise the services of crs was not coming up,
    Finally I have to start the server and all the cluster services came up.
    I want to find out why this was happen, i need to find the bottle neck so this should not happen again as this is a PROD server and lots of prod database are residing on this server.
    Please find crsd.log below.
    2010-04-22 15:38:22.361: [  CRSRES][1539545408]0ora.shbaorc07b.LISTENER_UC4XPRD2.lsnr failed on shbaorc07b relocating.
    2010-04-22 15:38:22.397: [  CRSRES][1539545408]0Cannot relocate ora.shbaorc07b.LISTENER_UC4XPRD2.lsnrStopping dependents
    2010-04-22 15:38:22.407: [  CRSRES][1539545408]0StopResource: setting CLI values
    2010-04-22 15:38:27.318: [  CRSAPP][1539545408]0CheckResource error for ora.shbaorc07b.LISTENER_CTLGPRD2.lsnr error code = 1
    2010-04-22 15:38:27.321: [  CRSRES][1539545408]0In stateChanged, ora.shbaorc07b.LISTENER_CTLGPRD2.lsnr target is ONLINE
    2010-04-22 15:38:27.322: [  CRSRES][1539545408]0ora.shbaorc07b.LISTENER_CTLGPRD2.lsnr on shbaorc07b went OFFLINE unexpectedly
    2010-04-22 15:38:27.322: [  CRSRES][1539545408]0StopResource: setting CLI values
    2010-04-22 15:38:27.336: [  CRSRES][1539545408]0Attempting to stop `ora.shbaorc07b.LISTENER_CTLGPRD2.lsnr` on member `shbaorc07b`
    one more strange thing happen while restarting the 2nd server, the first server also restarted.
    Please help me regarding this?
    Thanks in advance.

    Hi,
    Thanks.
    please find the OS version
    Linux shbaorc07a.corp.shire.com 2.6.18-53.1.14.el5 #1 SMP Tue Feb 19 07:18:46 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
    database version:
    10.2.0.4.0
    Node 2:
    [    CSSD]2010-04-22 19:41:19.438 [1273047360] >TRACE: clssgmCleanupGrocks: cleaning up grock IGDPAXPRDALL type 2
    [    CSSD]2010-04-22 19:41:19.438 [1273047360] >TRACE: clssgmCleanupOrphanMembers: cleaning up remote mbr(1) grock(IGDPAXPRDALL) birth(2/0)
    [    CSSD]2010-04-22 19:41:19.438 [1273047360] >TRACE: clssgmCleanupGrocks: cleaning up grock IGGMCXPRDALL type 2
    [    CSSD]2010-04-22 19:41:19.438 [1273047360] >TRACE: clssgmCleanupGrocks: cleaning up grock IGEASYPRDALL type 2
    [    CSSD]2010-04-22 19:41:19.438 [1273047360] >TRACE: clssgmCleanupOrphanMembers: cleaning up remote mbr(1) grock(IGEASYPRDALL) birth(2/0)
    [    CSSD]2010-04-22 19:41:19.438 [1273047360] >TRACE: clssgmCleanupGrocks: cleaning up grock IGCTRMPRDALL type 2
    [    CSSD]2010-04-22 19:41:19.438 [1273047360] >TRACE: clssgmCleanupOrphanMembers: cleaning up remote mbr(1) grock(IGCTRMPRDALL) birth(2/0)
    [    CSSD]2010-04-22 19:41:19.439 [1273047360] >TRACE: clssgmCleanupGrocks: cleaning up grock IGEDWXPRDALL type 2
    [    CSSD]2010-04-22 19:41:19.439 [1273047360] >TRACE: clssgmCleanupGrocks: cleaning up grock IGNUSBPRDALL type 2
    [    CSSD]2010-04-22 19:41:19.439 [1273047360] >TRACE: clssgmCleanupGrocks: cleaning up grock IGETLXPRDALL type 2
    [    CSSD]2010-04-22 19:41:19.439 [1273047360] >TRACE: clssgmCleanupOrphanMembers: cleaning up remote mbr(1) grock(IGETLXPRDALL) birth(2/0)
    [    CSSD]2010-04-22 19:41:19.439 [1273047360] >TRACE: clssgmCleanupGrocks: cleaning up grock IGCTXXPRDALL type 2
    [    CSSD]2010-04-22 19:41:19.439 [1273047360] >TRACE: clssgmCleanupOrphanMembers: cleaning up remote mbr(1) grock(IGCTXXPRDALL) birth(2/0)
    [    CSSD]2010-04-22 19:41:19.439 [1273047360] >TRACE: clssgmCleanupGrocks: cleaning up grock IGVVC30PRDALL type 2
    [    CSSD]2010-04-22 19:41:19.439 [1273047360] >TRACE: clssgmCleanupGrocks: cleaning up grock IGVUM30PRDALL type 2
    [    CSSD]2010-04-22 19:41:19.439 [1273047360] >TRACE: clssgmCleanupGrocks: cleaning up grock #CSS_CLSSOMON type 2
    [    CSSD]2010-04-22 19:41:19.439 [1273047360] >TRACE: clssgmCleanupOrphanMembers: cleaning up remote mbr(1) grock(#CSS_CLSSOMON) birth(2/0)
    [    CSSD]2010-04-22 19:41:19.445 [1273047360] >TRACE: clssgmEstablishConnections: 3 nodes in cluster incarn 5
    [    CSSD]2010-04-22 19:41:19.449 [1231087936] >TRACE: clssgmPeerListener: connects done (3/3)
    [    CSSD]2010-04-22 19:41:19.449 [1273047360] >TRACE: clssgmEstablishMasterNode: MASTER for 5 is node(3) birth(1)
    [    CSSD]2010-04-22 19:41:19.458 [1231087936] >TRACE: clssgmHandleDBDone(): src/dest (3/65535) size(72) incarn 5
    [    CSSD]CLSS-3000: reconfiguration successful, incarnation 5 with 3 nodes
    [    CSSD]CLSS-3001: local node number 2, master node number 3
    [    CSSD]2010-04-22 19:41:19.458 [1273047360] >TRACE: clssgmReconfigThread: completed for reconfig(5), with status(1)
    [    CSSD]2010-04-22 19:49:20.816 [1189128512] >TRACE: clssnmConnComplete: probe from node 1, your version: 10.2.1.2
    , support PENDINA: 1
    [    CSSD]2010-04-22 19:49:20.816 [1189128512] >TRACE: clssnmConnComplete: MSGSRC 1, type 5, node 1, flags 0x0001, con 0x2aaab01abb00, probe (nil)
    [    CSSD]2010-04-22 19:49:20.816 [1189128512] >TRACE: clssnmConnComplete: node 1, shbaorc07a, con(0x2aaab01abb00), probcon((nil)), ninfcon((nil)), node unique 1271962158, prev unique 0, msg unique 1271962158 node state 0
    [    CSSD]2010-04-22 19:49:20.816 [1189128512] >TRACE: clssnmsendConnAck: node 1, node state 0
    [    CSSD]2010-04-22 19:49:20.816 [1189128512] >TRACE: clssnmConnComplete: connecting to node 1 (con 0x2aaab01abb00), ninfcon (0x2aaab01abb00), state (0)
    [    CSSD]2010-04-22 19:49:20.816 [1189128512] >TRACE: clssnmConnComplete: connected to node 1 (con 0x2aaab01abb00), ninfcon (0x2aaab01abb00), state (0), flag (1037)
    [    CSSD]2010-04-22 19:49:20.927 [1262557504] >TRACE: clssnmDoSyncUpdate: Initiating sync 6
    [    CSSD]2010-04-22 19:49:20.927 [1262557504] >TRACE: clssnmDoSyncUpdate: diskTimeout set to (57000)ms
    [    CSSD]2010-04-22 19:49:20.927 [1262557504] >TRACE: clssnmSetupAckWait: Ack message type (11)
    [    CSSD]2010-04-22 19:49:20.927 [1262557504] >TRACE: clssnmSetupAckWait: node(1) is ALIVE
    [    CSSD]2010-04-22 19:49:20.927 [1262557504] >TRACE: clssnmSetupAckWait: node(2) is ALIVE
    [    CSSD]2010-04-22 19:49:20.927 [1262557504] >TRACE: clssnmSetupAckWait: node(3) is ALIVE
    [    CSSD]2010-04-22 19:49:20.927 [1262557504] >TRACE: clssnmSetupAckWait: node(4) is ALIVE
    [    CSSD]2010-04-22 19:49:20.927 [1262557504] >TRACE: clssnmSendSync: syncSeqNo(6)
    [    CSSD]2010-04-22 19:49:20.927 [1189128512] >TRACE: clssnmHandleSync: diskTimeout set to (57000)ms
    [    CSSD]2010-04-22 19:49:20.927 [1262557504] >TRACE: clssnmWaitForAcks: Ack message type(11), ackCount(4)
    [    CSSD]2010-04-22 19:49:20.927 [1189128512] >TRACE: clssnmHandleSync: Acknowledging sync: src[2] srcName[shbaorc07b] seq[1] sync[6]
    6911,1 99%
    node 1:
    [    CSSD]2010-04-22 18:56:00.996 [1189128512] >USER: clssnmHandleUpdate: SYNC(4) from node(4) completed
    [    CSSD]2010-04-22 18:56:00.996 [1189128512] >USER: clssnmHandleUpdate: NODE 1 (shbaorc07a) IS ACTIVE MEMBER OF CLUSTER
    [    CSSD]2010-04-22 18:56:00.996 [1189128512] >USER: clssnmHandleUpdate: NODE 2 (shbaorc07b) IS ACTIVE MEMBER OF CLUSTER
    [    CSSD]2010-04-22 18:56:00.996 [1189128512] >USER: clssnmHandleUpdate: NODE 3 (shbaorc07c) IS ACTIVE MEMBER OF CLUSTER
    [    CSSD]2010-04-22 18:56:00.996 [1189128512] >USER: clssnmHandleUpdate: NODE 4 (shbaorc07d) IS ACTIVE MEMBER OF CLUSTER
    [    CSSD]2010-04-22 18:56:00.996 [1189128512] >TRACE: clssnmHandleUpdate: diskTimeout set to (200000)ms
    [    CSSD]2010-04-22 18:56:01.008 [1273047360] >TRACE: clssgmReconfigThread: started for reconfig (4)
    [    CSSD]2010-04-22 18:56:01.008 [1273047360] >USER: NMEVENT_RECONFIG [00][00][00][1e]
    [    CSSD]2010-04-22 18:56:01.020 [1273047360] >TRACE: clssgmEstablishConnections: 4 nodes in cluster incarn 4
    [    CSSD]2010-04-22 18:56:01.096 [1231087936] >TRACE: clssgmInitialRecv: (0x2aaab4001310) accepted a new connection from node 2 born at 4 active (4, 4), vers (10,3,1,2)
    [    CSSD]2010-04-22 18:56:01.096 [1231087936] >TRACE: clssgmInitialRecv: conns done (4/4)
    [    CSSD]2010-04-22 18:56:01.096 [1273047360] >TRACE: clssgmEstablishMasterNode: MASTER for 4 is node(3) birth(1)
    [    CSSD]2010-04-22 18:56:01.138 [1231087936] >TRACE: clssgmHandleDBDone(): src/dest (3/65535) size(72) incarn 4
    [    CSSD]CLSS-3000: reconfiguration successful, incarnation 4 with 4 nodes
    [    CSSD]CLSS-3001: local node number 1, master node number 3
    [    CSSD]2010-04-22 18:56:01.138 [1273047360] >TRACE: clssgmReconfigThread: completed for reconfig(4), with status(1)
    [    CSSD]2010-04-22 19:40:00.531 [1231087936] >TRACE: clscsendx: (0x2aaab00fa3b0) Connection not active
    [    CSSD]2010-04-22 19:40:00.531 [1231087936] >TRACE: clssgmSendClient: Send failed rc 6, con (0x2aaab00fa3b0), client (0x2aaab00fa6b0), proc ((nil))
    [    CSSD]2010-04-22 19:40:19.410 [1231087936] >TRACE: clscsendx: (0x2aaab02acd00) Connection not active
    [    CSSD]2010-04-22 19:40:19.410 [1231087936] >TRACE: clssgmSendClient: Send failed rc 6, con (0x2aaab02acd00), client (0x2aaab02ad7c0), proc ((nil))
    [    CSSD]2010-04-22 19:40:19.410 [1231087936] >TRACE: clscsendx: (0x2aaab02ad570) Connection not active
    [    CSSD]2010-04-22 19:40:19.410 [1231087936] >TRACE: clssgmSendClient: Send failed rc 6, con (0x2aaab02ad570), client (0x2aaab02af660), proc ((nil))
    [    CSSD]2010-04-22 19:40:19.438 [1231087936] >TRACE: clscsendx: (0x2aaab0295780) Connection not active
    [    CSSD]2010-04-22 19:40:19.438 [1231087936] >TRACE: clssgmSendClient: Send failed rc 6, con (0x2aaab0295780), client (0x2aaab02859f0), proc ((nil))
    [    CSSD]2010-04-22 19:40:19.476 [1231087936] >TRACE: clscsendx: (0x2aaab029d150) Connection not active
    [    CSSD]2010-04-22 19:40:19.476 [1231087936] >TRACE: clssgmSendClient: Send failed rc 6, con (0x2aaab029d150), client (0x2aaab029dbb0), proc ((nil))
    [    CSSD]2010-04-22 19:40:19.476 [1231087936] >TRACE: clscsendx: (0x2aaab029d890) Connection not active
    [    CSSD]2010-04-22 19:40:19.476 [1231087936] >TRACE: clssgmSendClient: Send failed rc 6, con (0x2aaab029d890), client (0x2aaab029e1b0), proc ((nil))
    [    CSSD]2010-04-22 19:40:19.707 [1231087936] >TRACE: clscsendx: (0x2aaab02cdb30) Connection not active
    [    CSSD]2010-04-22 19:40:19.707 [1231087936] >TRACE: clssgmSendClient: Send failed rc 6, con (0x2aaab02cdb30), client (0x2aaab02cdf60), proc ((nil))
    [    CSSD]2010-04-22 19:40:19.710 [1231087936] >TRACE: clscsendx: (0x2aaab02ca9e0) Connection not active
    please help me on this.
    Thanks
    Edited by: user646034 on Apr 26, 2010 1:13 AM

  • How to schedule a package to run with package scheduler in BPC 5.1 MS

    We are on BPC 5.1 Service Pack 2.
    I have a few schedules that run import packages that were set up by a consultant who is no longer with the company. I need to know how to change the userid associated with the package schedules so that they can reflect my name and not the consultant's. I attempted to select the edit parameters but it didn't have the userid on it as an area to update or change.
    Also, how do I create new package schedules to run as I have other packages that I would like to set to run automatically on the system? I did not see an option to create the package schedule in the selections.
    Any help would be greatly appreciated.
    Thanks,
    Eleasha

    I find it easier & more reliable to create a new package schedule, rather than edit an existing one, when trying to change the user. Likewise, I've never been able to transport a schedule from one environment to another. Easier to just set up a new one.
    Go to eData -> Packages Schedule Status to delete the existing job. (Before deleting, make sure you note the scheduling options, and any other package-specific options that have been scheduled.)
    Then eData -> Run package, and choose "schedule" instead of "run now". The schedule here will be set up under the user ID you've used to log into BPC. After you've created the schedule in this way, you can go back later and edit it further (with greater scheduling options) in the "packages schedule status" interface, or via Windows scheduled tasks.

  • How to schedule a job to run only in a  time window

    Hi,
    I need to schedule a job to run every day but sundays from 7am to 6pm. I managed to get it to start at seven like this
    FREQ=WEEKLY;BYDAY=TUE,WED,THU,FRI,SAT;BYHOUR=7;BYMINUTE=0;BYSECOND=0
    how can I set the job to stop at 6pm?
    thanks in advance

    Yes, as far as I could tell you create a resource plan to allocate processor resources, assign a resource plan to the window, then assign the job to a job class which is in turn assigned a resource group within that resource plan. Then when the window is active, it sets the active resource plan for the database so the job will run using this until the window deacivates the resource plan. Unfortunately because the resource plan is database wide, it means you could only really have one time window active at any one time within which to run jobs, I don't think two windows could overlap.
    Easier to work within jobs, but its a shame the job doesn't end itself, rather than having to have the second job, although the second job does enable you to engage in some communication between jobs to cleanly end it, rather than stop it dead. I have a job that runs until a set time each day, but it just works on a loop that sleeps for a few minutes each time, checking for file arrival and processing it, and sending a notification e-mail if it reaches its end time without the file arriving.

  • How to schedule ETL jobs to run periodically after BI Apps is up and runnin

    Hi,
    How do you schedule ETL jobs to run periodically after BI Apps is install and configured? Is there document out there that explains how the ETL scheduling is setup?
    Thanks

    Using DAC we can schedule the ETL to run periodically. In DAC Execute -> Scheduler you can set the date and time for the ETL which need to be scheduled. You can get detail information in guide 'Oracle® Business Intelligence Data Warehouse Administration Console User’s Guide'

  • How to schedule batch jobs to run after another periodically?

    Hi good people,
    I want to schedule batch jobs to run periodically one after another.
    Here is the problem:
    I have scheduled JOB1 to run once a week and I scheduled JOB2 to run after that job (JOB1). The problem is that JOB2 runs only after the first time that JOB1 runs. The second time the JOB1 runs the JOB2 is not started. I presume that the reason for that is that JOB2 is tied to the job number for the JOB1, and since a new job (with the new number) is created every week, the JOB2 is only tied to the first instance of JOB1.
    So does anyone have an idea how to get JOB2 to automatically run every week after JOB1? One idea is to use events, but that I'm hoping that there is a bit cleaner solution..
    Best Regards,
    Armin

    Hi
    Try scheduling both JOB1 & JOB2 in a single job in steps.
    First schedule JOB1 & then give JOB2 in steps.
    Kindly check the following link to do job scheduling in steps:
    http://help.sap.com/saphelp_47x200/helpdata/en/c4/3a7ed1505211d189550000e829fbbd/frameset.htm
    In the above help documentation, look for the topic <b>"job steps"</b> in
    "Background Processing: Concepts and Features"
    hope it helps!
    best regards,
    Thangesh

  • HOW TO SCHEDULE A JOB TO RUN EVERY 30 MINS WITHOUT USING SCHEDULAR?

    Hi,
    I have a requirement where i need to schedule the job to run every 30 mins for 10 am to 10 pm. I ran into problems using odi schedular. Let me tell you what i did..
    i have chosen the active mode between 10 am to 10 pm
    selected on startup/simple.
    and on the repetitions tab selected many times with 30 mins duration.
    the problem was-----
    a)it was not stopping at 10 pm but continues after 10 pm
    b)randomly picking up more times than the 1/2 hour duration.
    looking for---
    a solution that runs my scenario every 30 mins from 10 am to 10 pm without using the schedular...which i cannot trust.
    Regards
    Venkat

    Venkat,
    Here is an alternate solution that i can think of:
    create a package with the following components:
    Variable(Refresh) -> OK -> Execute StartScen(YourJob) in Asynchronous mode -> odiSleep(30 mins) -> Loop to Variable Refresh
    Variable (Refresh) -> KO -> odiSleep(30 mins) {if the refresh of the variable fails to get any value then skip the Job execution}
    The Refresh query should be
    select 1 from dual where to_char(sysdate, 'hh24mi') between  '1000' and '2200'

  • How to extend the number of rings before phone goes to answering machine?

    On 5S, How to extend the number of rings before the message machine turns on?

    Check with your carrier. It is not an iPhone controllable setting.

  • How to Schedule Jobs to only run during a time window

    I have a long running task that needs to schedule jobs to process data.
    I only want these scheduled jobs to start during a specific window of time each day, probably 10:00 PM to 6:00 AM.
    If the scheduled jobs do not begin during the specified time frame, they must wait until the next day to start running.
    Each scheduled job will only be executed once and then auto dropped.
    How should I go about creating these scheduled jobs?

    Hi Jeff,
    I agree that the documentation isn't clear enough about the purpose of windows.
    You can indeed use windows for changing the resource plan, but you can also use them for scheduling your jobs.
    I did a simple test in real-time to illustrate the latter.
    At around 10.30 am today I created a table that will populated by a job:
    CREATE TABLE TEST_WINDOW_TABLE(EVENT_DATE DATE);
    Then, I created a window whose start_date is today at 10.40 am :
    dbms_scheduler.create_window(
                                 window_name     =>'TEST_WINDOW',
                                 resource_plan   => NULL,
                                 start_date      => to_date('10/04/2014 10:40:00', 'dd/mm/yyyy hh24:mi:ss'),
                                 repeat_interval => NULL,
                                 duration        =>interval '5' minute
    You can see that this window doesn't have a resource plan, and its repeat interval is NULL (so it will be opened only once).
    The window will stay open for 5 minutes.
    Finally, I created a one-off job whose schedule is the previously created window:
    DBMS_SCHEDULER.create_job (
                               job_name      => 'TEST_WINDOW_JOB',
                               job_type      => 'PLSQL_BLOCK',
                               job_action    => 'BEGIN insert into test_window_table values (sysdate); COMMIT; END;',
                               schedule_name => 'SYS.TEST_WINDOW',
                               enabled       => true,
                               auto_drop     => true
    Checking the user_scheduler_job_log before 10.40 would return no rows, which mean the job hasn't started yet since the window was not open.
    Now, from 10.40, it shows one entry:
    SQL> select log_date, status from user_scheduler_job_log where job_name = 'TEST_WINDOW_JOB';
    LOG_DATE                                                                         STATUS
    10/04/14 10:40:02,106000 +02:00                                                  SUCCEEDED
    The TEST_WINDOW_TABLE has also got the row:
    SQL> select * from TEST_WINDOW_TABLE;
    EVENT_DATE
    10/04/2014 10:40:02
    Voilà.
    In your case, since you want to run the jobs daily between 10 pm and 6 am (duration of 8 hours), the window would look like this:
    dbms_scheduler.create_window(
                                 window_name     =>'YOUR_WINDOW',
                                 resource_plan   => NULL,
                                 repeat_interval => 'freq=daily;byhour=22;byminute=0;bysecond=0',
                                 duration        =>interval '8' hour
    For your jobs, you may need to specify an end_date if you want to make sure the job gets dropped if it couldn't run in its window.

  • How to implement a service that runs once a day?

    Hi all,
    is there a service or so available that waits for example 24 hours and runs every day for example at 9:00 am?
    I know there is the Wait service with the scheduleWait operation, but I can only specify days, hours or minutes. So I can not use this service to specify a time when to run. How is this possible?
    Thanks in advance!
    Paul

    Design your process somewhat similar to the above model.
    Invoke your process (only one time) at 9 AM.
    This is the simplest solutions. The other way is to write a custom DSC.
    Nith

  • How to Schedule a Report to Run on a Specific Business Day and Not on the Weekend

    Hi,
    Is there a way to schedule a Webi report to run on a specific Business Day? For example, if I wanted a report to run on the 3rd day of every month, but when the 3rd day for a particular month landed on a Saturday or Sunday, then Monday would automatically be chosen instead. Is that possible?
    Thanks,
    Michael

    Hi Michael,
    You can do that by selecting the calendar option while scheduling the report and manually selecting the 3rd day of every month and when the 3rd day for a particular month landed on a Saturday or Sunday, then select the next Monday.
    I dont see any option available for this scenario directly in BO.
    Regards
    Sri Harsha

Maybe you are looking for

  • Complex if statement in rtf template?

    Hello, I want to build an if statement in rtf template, the idea is like: <?if:address!='' and phone!=''?> <?end if?> what's the correct way to do it if it is possible? Thanks in advance! Shichao

  • Amend Structure with error, Reference field VBAP-KZWI1 for ZSMINI44_D4-PO_A

    Hi, i try to amend a structure but there is such an error that the Reference field VBAP-KZWI1 for ZSMINI44_D4-PO_AMT has incorrect type... but the data elements are the same. Please kindly advice.

  • Who &  Roles & responsibiliries of a BW End User??

    Hello Experts, Plz let me know answers for these Qs.. 1.Who is an SAP BW End User? How many end users usually exist after a BW Go Live? 2. Roles & responsibilities of a BW End User? 3. Are the Admininistration people alone(eg: CEO,Business analysts/d

  • Problem starting managed server using Node Manager/WL 7

    I have just configured Node Manager for the first time to start a managed server, following the documentation 'Managing Server Availability with Node Manager'. However when I attempt to start the managed server from the Administration Console I alway

  • Question about emailing within iPhoto '11

    Hi - I emailed (so I thought) some photos from within iPhoto using Share > Email. But the email does not show up in my Sent Folder in Mail. Is this correct? How can I verify that I actually sent the email? Thanks MtD