DS run longer with scheduled job as compare to manual run

I have scheduled a job through Management Console (MC) to run everyday once at 
certain time. After some time, maybe after 15 days of running, the execution 
time has increased to double from 17 mins to 67 mins by one time jump. After 
that, the job kept running and spent 67 mins to complete.
The nature of the job is to generate around 400 output flat files from a 
source db2 table. Under efficient running time, 1 file took around 2 seconds to 
generate. But now it became taking 8 seconds to generate one file. The data 
volume and nature of the source table didn't change, so that was not the root 
cause of increasing time.
I have done several investigations and the results as such:
1) I scheduled again this job at MC to run for testing, it would take 67 mins 
to complete. However, if I manually run this job thorough MC, it would take 
17 mins efficient time to run.
2) I replicated this job to a second job as a copy. Then I scheduled this 
copied job at MC to run, it would take 67 mins to run. But if I manually run 
this job through MC, it will take 17 mins to run.
3) I created another test repo and load this job in. I scheduled the job to 
run at this new repo, it would take 67 mins to run. If I manually run the job 
through MC, it only took 17 mins to run.
4) Finally, I manually executed the job through unix job scripts command, 
which is one of the scheduled job entry in the cron file, such as 
./DI__4c553b0d_6fe5_4083_8655_11cb0fe230f4_2_r_3_w_n_6_40.sh, the job also would take 17 
mins to run to finish.
5) I have recreated the repo to make it clean and reload back the jobs and 
recreated again the schedule. Yet it still took 67 mins to run scheduled job.
Therefore, the conclusion is why it takes longer time to run by scheduling 
method as compare to manually running method?
Please provide me a way to troubleshoot this problem. Thank you.
OS : HPUX 11.31
DS : BusinessObjects Data Services 12.1.1.0
databasee : DB2 9.1

Yesterday we had done another test and indirectly made the problem to go 
away. We changed the generated output flat file directory from current directory 
of /fdminst/cmbc/fdm_d/bds/gl to /fdminst/cmbc/fdm_d/bds/config directory to 
run, to see any difference would make. We changed the directory pointing 
inside Substitution Parameter Configurations windows. Surprisingly, job had 
started to run fast and completed in 15 minutes and not 67 minutes anymore.
Then we shifted back and pointed the output directory back to original 
/fdminst/cmbc/fdm_d/bds/gl and the job has started to run fast ever since and all 
completed in 15 minutes. Even we created ad hoc schedule to run and it was 
still running fast.
We not sure why it was solved by shifting directory away and shifting back, 
and whether this had to do with BODS problem or HP Unix system environment 
problem. Nonetheless, the job is started to run normally and fast now as we 
test.

Similar Messages

  • "BBP_SC_TRANSFER_GROUPED" to run as a scheduled job

    Hi,
            I need to make the program BBP_SC_TRANSFER_GROUPED, run as a scheduled job. please guide me the steps to do that. Thanks in advance.

    Hi Krishna Vardhan,
    You can schedule this report using SA38txn.
    Input the report name and click on Background tab on the menu bar and in the next screen click on Variants tab on the menu bar and in the next screen click on create tab next to the variant field and create a variant.
    Enter the criteria for the variant and click on attributes and enter the short description for variant and also choose the preferences for various attributes and clcik the save icon to save the variant.
    Then goto SA38 txn again and input the report name and clcik on the with variant tab on the menu bar and click background tab and enter the required variant name in the next screen and click on Schedule tab and schedule the job periodically based on your requirement.
    Hope this makes you more clear and helps in resolving your issue. Clarifications are welcome.
    Award points for helpful answers.
    Rgds,
    Teja

  • Issue with scheduled jobs

    Hello Team,
    After creating a new protection group, the jobs were frozen and was never kicked off.
    What could be the reason?
    Regards,
    Suman Rout

    Hi,
    Please see the below blog which may assist with troubleshooting scheduled jobs.
    Blog:
    http://blogs.technet.com/b/dpm/archive/2014/10/08/how-to-troubleshoot-scheduled-backup-job-failures-in-dpm-2012.aspx
    Pervious fourm post:
    https://social.technet.microsoft.com/Forums/en-US/ed65d3e0-c7d7-488b-ba34-4a2083522bae/dpm-2010-scheduled-jobs-disappear-rather-than-run?forum=dataprotectionmanager
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually
    answer your question. This can be beneficial to other community members reading the thread. Regards, Dwayne Jackson II. [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights."

  • Issues with scheduling job in sm36 for a standard report...

    Hi,
    After creating a variant for a program, if I try to execute SM36 -> Define step and then, I select ABAP program, the variant name associated with it. Now what do I need to do to schedule job for that report.

    Hi,
    After giving the program and variant..
    Press the start condition button..
    Press Immediate to run immediately..
        Or
    Choose the date and time you want to run this job..
    After that press save.
    Then press save in sm36 for the job..THis will release the job...
    Thanks,
    Naren

  • OIM11g: Error while running AD Reconcilliation Schedule Job

    Hi All,
    I am using OIM 11g BP05 and have deployed AD connector 11.1.1.5.0 using connector server. While running the AD Group/Organization/User Reconcilliation schedule job, I am getting below error in connector logs:
    11/8/2012 4:25:59 PM <ERROR>: Class-> ActiveDirectoryUtils Method -> GetDirectoryEntry, Message -> Exception Stack Trace : at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
    at System.DirectoryServices.DirectoryEntry.Bind()
    at System.DirectoryServices.DirectoryEntry.get_NativeObject()
    at Org.IdentityConnectors.ActiveDirectory.ActiveDirectoryUtils.GetDirectoryEntry(String path, ActiveDirectoryConfiguration configuration) in c:\ADE\aime_oimcp\idc\bundles\dotnet\ActiveDirectory\ActiveDirectoryConnector\ActiveDirectoryUtils.cs:line 1423
    11/8/2012 4:25:59 PM <ERROR>: Class-> ActiveDirectoryConnector Method -> ExecuteQuery, Message -> Caught Exception: Unable to get the Directory Entry11/8/2012 4:25:59 PM <ERROR>: Class-> ActiveDirectoryConnector Method -> ExecuteQuery, Message -> Stack Trace: at Org.IdentityConnectors.ActiveDirectory.ActiveDirectoryUtils.GetDirectoryEntry(String path, ActiveDirectoryConfiguration configuration) in c:\ADE\aime_oimcp\idc\bundles\dotnet\ActiveDirectory\ActiveDirectoryConnector\ActiveDirectoryUtils.cs:line 1456
    at Org.IdentityConnectors.ActiveDirectory.ActiveDirectoryConnector.ExecuteQuery(ObjectClass oclass, String query, ResultsHandler handler, OperationOptions options, Boolean includeDeleted, SortOption sortOption, String serverName, String searchRoot, SearchScope searchScope, OperationOptions otherOptions) in c:\ADE\aime_oimcp\idc\bundles\dotnet\ActiveDirectory\ActiveDirectoryConnector\ActiveDirectoryConnector.cs:line 1048
    at Org.IdentityConnectors.ActiveDirectory.ActiveDirectoryConnector.ExecuteQuery(ObjectClass oclass, String query, ResultsHandler handler, OperationOptions options) in c:\ADE\aime_oimcp\idc\bundles\dotnet\ActiveDirectory\ActiveDirectoryConnector\ActiveDirectoryConnector.cs:line 814
    ConnectorServer.exe Error: 0 : Org.IdentityConnectors.Framework.Common.Exceptions.ConnectorException: Unable to get the Directory Entry
    Also, I am seeing this error in log too:
    *11/8/2012 4:25:59 PM <ERROR>: Class-> ActiveDirectoryUtils Method -> GetDirectoryEntry, Message -> Exception occured during the creation of directory entry.*
    *11/8/2012 4:25:59 PM <ERROR>: Class-> ActiveDirectoryUtils Method -> GetDirectoryEntry, Message -> Exception Message : An invalid dn syntax has been specified.*
    11/8/2012 4:25:59 PM <ERROR>: Class-> ActiveDirectoryUtils Method -> GetDirectoryEntry, Message -> Exception Stack Trace : at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
    at System.DirectoryServices.DirectoryEntry.Bind()
    at System.DirectoryServices.DirectoryEntry.get_NativeObject()
    at Org.IdentityConnectors.ActiveDirectory.ActiveDirectoryUtils.GetDirectoryEntry(String path, ActiveDirectoryConfiguration configuration) in
    Any pointers for resolving this issue?
    Regards,
    Sunny
    Edited by: ajmerasunny on Nov 8, 2012 4:32 PM

    Hi All,
    My bad, I gave wrong search base. Issue resolved.
    However, I need to run the a trusted source recon for only active
    Users. I gave filter as useraccountcontrol=512 but got casting exception.
    Any pointers on how to specify the filter to get only active accounts from AD?
    Regards,
    Sunny

  • Reading offline form from mailbox and processing with scheduled job.

    Hi,
    i'm trying to prepare an application that runs scheduled on portal.
    This applcation will get attached .pdf form form mailbox and parse and process it.
    I can receive attached pdf form from mailbox. And i can develop a scheduled application for portal.
    My problem is to parse into fields the pdf form with java to use in scheduled portal app.
    Thanks.

    hi Chandra,
    I store the url in one of hidden field in form, then copy javascript below to click event, button control type: Regular.
    just replace all the "<>" in the code below.
    var message;
    var response;
    // The name of the data connection will be pulled from the WSDLConnection name in the ConnectionSet packet
    var sWSDLName = <DataConnection name>;
    // clone, modify and execute the connection.
    var vConnection = xfa.connectionSet[sWSDLName].clone(true);
    vConnection.soapAddress.value = <url>;
    // Execute the connection, without remerge data after the result.
      var ws_rc = vConnection.execute(true);
    for multiple data connection, you have to repeat these code with replace different data connection name and it's url address.
    you may use script object (something like subroutine).
    Regards,
    Kathy Lau

  • OIM 11 - Error while running scheduled job "Evaluate User Policies"

    Hello,
    We are trying to run the OOTB scheduled job " EValuate User Policies" with the default parameters. Job history shows the execution status success but diagnostic logs throw the following error. And the users donot get provisioned to their resources based on the access policies.
    We are on OIM 11 BP05.
    [2013-01-30T10:11:47.072-05:00] [oim_server1] [NOTIFICATION] [IAM-0080006] [oracle.iam.platform.kernel.impl] [tid: Thread-1033] [userId: oiminternal] [ecid: 3f3dc64898fb7625:-13c8cd5d:13c88a6943c:-8000-0000000000000002,1:26684] [APP: oim#11.1.1.3.0] Orchestration process moved to failed stage, and the corresponding error is - {0}[[
    oracle.iam.platform.kernel.EventFailedException: Operation - EVALUATE_POLICIES that is submitted as part of the orchestration is not supported.
    at oracle.iam.platform.kernel.impl.EntityDefaultActionHandler.execute(EntityDefaultActionHandler.java:53)
    at oracle.iam.platform.kernel.impl.DefaultActionHandler.execute(DefaultActionHandler.java:41)
    at sun.reflect.GeneratedMethodAccessor5717.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at oracle.iam.platform.kernel.impl.EventHandlerDynamicProxy.invoke(EventHandlerDynamicProxy.java:30)
    at $Proxy254.execute(Unknown Source)
    at oracle.iam.platform.kernel.impl.OrchProcessData.runActionEvents(OrchProcessData.java:1036)
    at oracle.iam.platform.kernel.impl.OrchProcessData.runEvents(OrchProcessData.java:644)
    at oracle.iam.platform.kernel.impl.OrchProcessData.executeEvents(OrchProcessData.java:227)
    at oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.resumeProcess(OrchestrationEngineImpl.java:764)
    at oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.process(OrchestrationEngineImpl.java:519)
    at oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.orchestrate(OrchestrationEngineImpl.java:459)
    at oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.orchestrate(OrchestrationEngineImpl.java:378)
    at oracle.iam.accesspolicy.impl.AccessPolicyServiceInternalImpl.evaluatePoliciesForUser(AccessPolicyServiceInternalImpl.java:78)
    at oracle.iam.accesspolicy.api.AccessPolicyServiceInternalEJB.evaluatePoliciesForUserx(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor5730.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
    at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
    at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    at $Proxy574.evaluatePoliciesForUserx(Unknown Source)
    at oracle.iam.accesspolicy.api.AccessPolicyServiceInternalEJB_bgsblp_AccessPolicyServiceInternalRemoteImpl.__WL_invoke(Unknown Source)
    at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
    at oracle.iam.accesspolicy.api.AccessPolicyServiceInternalEJB_bgsblp_AccessPolicyServiceInternalRemoteImpl.evaluatePoliciesForUserx(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor5727.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
    at $Proxy164.evaluatePoliciesForUserx(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor5726.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
    at $Proxy421.evaluatePoliciesForUserx(Unknown Source)
    at oracle.iam.accesspolicy.api.AccessPolicyServiceInternalDelegate.evaluatePoliciesForUser(Unknown Source)
    at com.thortech.xl.schedule.tasks.tcTskUsrEvaluatePolicies$PolicyEvalWorker.run(tcTskUsrEvaluatePolicies.java:319)
    at java.lang.Thread.run(Thread.java:662)
    at com.thortech.xl.scheduler.tasks.SchedulerBaseTask$XLSchedulerThread.run(SchedulerBaseTask.java:157)
    [2013-01-30T10:11:47.081-05:00] [oim_server1] [NOTIFICATION] [IAM-0080046] [oracle.iam.platform.kernel.impl] [tid: Thread-1030] [userId: oiminternal] [ecid: 3f3dc64898fb7625:-13c8cd5d:13c88a6943c:-8al.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
            at oracle.iam.accesspolicy.api.AccessPolicyServiceInternalEJB_bgsblp_AccessPolicyServiceInternalRemoteImpl.evaluatePoliciesForUserx(Unknown Source)
            at sun.reflect.GeneratedMethodAccessor5727.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
            at $Proxy164.evaluatePoliciesForUserx(Unknown Source)
            at sun.reflect.GeneratedMethodAccessor5726.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
            at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
            at $Proxy421.evaluatePoliciesForUserx(Unknown Source)
            at oracle.iam.accesspolicy.api.AccessPolicyServiceInternalDelegate.evaluatePoliciesForUser(Unknown Source)
            at com.thortech.xl.schedule.tasks.tcTskUsrEvaluatePolicies$PolicyEvalWorker.run(tcTskUsrEvaluatePolicies.java:319)
            at java.lang.Thread.run(Thread.java:662)
            at com.thortech.xl.scheduler.tasks.SchedulerBaseTask$XLSchedulerThread.run(SchedulerBaseTask.java:157)
    Any answer is highly appreciated.
    Thanks,
    MBiswal                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Ok, did you reimported the /metadata/iam-features-accesspolicy/event-definition/EventHandlers.xml from the BundlePatch folder?
    Have you followed Addendum to OIM 11.1.1.5.6 Bundle Patch 06 Readme (Doc ID 1543504.1)?

  • Problem with variable in scheduled job

    I'm trying to get the following scheduled job to run:
    switch(config)# scheduler job name backup_job
    switch(config-job)# cli var name timestamp $(TIMESTAMP) ; copy running-config bootflash:/$(SWITCHNAME)-cfg.$(timestamp) ; copy bootflash:/$(SWITCHNAME)-cfg.$(timestamp) tftp://1.2.3.4/
    switch(config-job)# exit
    switch(config)# scheduler schedule name backup_timetable
    switch(config-schedule)# job name backup_job
    switch(config-schedule)# time daily 1:23
    switch(config-schedule)# exit
    switch(config)# exit
    This job is taken directly from multiple Cisco MDS and Nexus documents. From what I can tell, the purpose of this job is to save the running configuration to a file on bootflash with date & time in the file name and then to copy the file from bootflash to tftp server.
    I can create the job and schedule successfully:
    switch(config)#show scheduler job name backup_job
    Job Name: backup_job
    cli var name timestamp $(TIMESTAMP)
    copy running-config bootflash:/$(SWITCHNAME)-cfg.$(timestamp)
    copy bootflash:/$(SWITCHNAME)-cfg.$(timestamp) tftp://1.2.3.4
    ==============================================================================
    switch(config)#show scheduler schedule name backup_timetable
    Schedule Name       : backup_timetable
    User Name           : admin
    Schedule Type       : Run every day at 10 Hrs 48 Mins
    Last Execution Time : Tue Mar  6 10:48:00 2012
    Last Completion Time: Tue Mar  6 10:48:00 2012
    Execution count     : 1
         Job Name            Last Execution Status
    backup_job                        Success (0)
    ==============================================================================
    The scheduled job runs successfully but the files that are created have the variable $(TIMESTAMP) in the file name instead of the actual date and time e.g. switch-cfg.$(TIMESTAMP)
    The logfile contains the following:
    Schedule Name  : backup_timetable                  User Name : admin
    Completion time: Tue Mar  6 10:59:26 2012
    --------------------------------- Job Output ---------------------------------
    `cli var name timestamp $(TIMESTAMP)`
    `copy running-config bootflash:/PEN-9509-2-cfg.$(TIMESTAMP) `
    Copy complete, now saving to disk (please wait)...
    `copy bootflash:/PEN-9509-2-cfg.$(TIMESTAMP) tftp://1.2.3.4 `
    Trying to connect to tftp server......
    Connection to server Established. Copying Started.....
    It looks to me that the $(timestamp) variable is being created successfully and is being replaced with the $(TIMESTAMP) variable but this is not being replaced with the actual date and time.
    The thing I don't get is that this looks to me that we're trying to nest variables and the same Cisco documents from which I get this configuration also state that nested variables are not allowed.
    I have tried this on different hardware - MDS9500, MDS9100, Nexus 5000, Nexus 7000 and different software - SAN-OS 3.3, NX-OS 4.1, NX-OS 5.2 but cannot get it to work. I have also tried to put the commands in a script and run with the run-script command but it still does not work.
    There is probably another method to achieve what this configuration is trying to achieve (and I would like to know if there is) but I want to know if this particular configuration will work.
    Can anyone tell me if they have got this working or can see what I'm doing wrong or can try running this in a lab please?

    I managed to get this resolved with a bit of a workaround. If I put the copy commands in a script and pass the variable to the run-script command as part of the scheduled job then it works ok. Trying to create the variable within the script (or as a separate scheduled job command) still doesn’t work.
    So, creating a script file (script) as follows:
    copy running-config bootflash:/$(SWITCHNAME)-cfg.$(timestamp)
    copy bootflash:/$(SWITCHNAME)-cfg.$(timestamp) tftp://1.2.3.4
    and creating a scheduled job with the following command:
    run-script bootflash:script timestamp=”$(TIMESTAMP)”
    achieves the desired result.

  • 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.

  • Scheduling jobs in OWB 10.2

    I'm busy with a migration of OWB 10.1 to 10.2 and I had almost everything up and running
    except
    the scheduled jobs.
    In 10.1 my predecessors made scheduled jobs which started in their turn a procedure which then started the process flow with wb_rt_api_exec.
    After migration I could not get those jobs going anymore.
    After investigation I could see that the procedures (starting the proess flows) ran when started with the runtime rrepository owner as launcher.
    Even te jobs ran when they were started with the session credentials (iow the credentials from the logged on user being the runtime repository owner).
    I've seen the atricles telling that you need to set the preferred credentials to the runtime repository owner in oem if you want to get it running from there.
    Anyhow I could start it by recreating the jobs with the runtime repository owner as the creator.
    Doens anybody know why it could run in owb 10.1 with sys as creator and why it nn longer works in 10.2.
    I checked the 10.1 installation and I haven't found any priviileges granted to sys that where not granted in the 10.2 installation, so there is no diff.
    Any help would be welcome.

    Hi,
    You cannot schedule direct mapping. You need create Process flow then u need to attach calendar for that. Go to Control Centre Deploy process flow and schedule and further click on start.
    Regards,
    Ava

  • BI Publisher (Obiee 11g) Scheduled jobs start randomly after services restarting

    Hi everybody,
    I've a problem with scheduled jobs on BI Publisher that start randomly after server restarting.
    For example if there's a job scheduled every day at 8.00 am it works fine until the server is not restarted but when I restart it next job running start at 9.28 am (it is an example because the real start time is very unpredictable).
    In my case bi publisher is integrated with obiee 11g (11.1.1.6.2) and I've scheduled jobs with administrative user (weblogic). For this user I've set the Bi Publisher Preferences (report locale = Italiano-Italia, Report Time Zone = GMT +1:00) from obiee analytics user account preferencies.
    Can anyone have this problem too and help me?
    Thanks
    Annalisa

    These are not helpful. The first link is to OBIEE 10g and the second is just an install guide. I am having the same issue with BI Publisher returning java.lang.NullPointerException in OBIEE 11g. Any help would be appreciated. Thanks,
    Paul
    Edited by: pneedleman on Nov 17, 2010 10:15 AM

  • A job I have seen was running since 11 hours but in history its duration is 48 minutes only

    SQL Server agent 2008 :
    A job I have seen was running since 11 hours but in history its duration is 48 minutes only.is It possible.
    Thanks

    Check all the steps and how much time each step took...
    SELECT sj.name
    , sja.*
    FROM msdb.dbo.sysjobactivity AS sja
    INNER JOIN msdb.dbo.sysjobs AS sj ON sja.job_id = sj.job_id
    WHERE sja.start_execution_date IS NOT NULL
    AND sja.stop_execution_date IS NULL
    http://thomaslarock.com/2012/10/how-to-find-currently-running-long-sql-agent-jobs/
    Raju Rasagounder Sr MSSQL DBA

  • CProjects Scheduled Jobs - Work Process UCP_00_DIA_W0-4 & UCP_00_BTC_W0-4

    Hi Gurus
    We have an issue whereby batch jobs are being scheduled during the day which when run have a negative impact on system resources.
    Our Basis team has identified the following work processes: UCP_00_DIA_W0-4
                                                                                    UCP_00_BTC_W0-4
    as being responsible for the issue.
    They have further identified that they are scheduled to run after users in cProjects save a project they have been working on.
    These work processes appear to kick in as scheduled jobs every 2 hours and run for about 10 minutes.
    Does anyone know under what Job Name they would be scheduled under and what there purpose is?
    I have tried to run a trace on the cProjects save but have not found anything that leads me to a answer woth this issue.
    Many Thanks
    Panduranga

    Hi  Panduranga Kumar,
    this sounds very much like the cProjects evaluation that's triggered by saving the project.
    You can easily check this if you inspect the customizing of the project type of such a project. There you can find a dropdown list (Check for Threshold Value Violations) that steers if and how the evaluation is started. Depending on the setting made here, such a job can be launched after a project has been saved.
    Hoping this provides the pointer you need.
    Best regards,
    Thomas

  • VCP Plans running long

    Hi
    our VCP Plan Programs are running long. There is no particular program which is running that I am unable to identify. We are running Executions and ATP plans after collections.  Either collections is running long or VCP ATP plan is running long or both. Please suggest.
    Ideal run time for collections is 40 mins. but it is taking 100 min + for the same. ATP plan used to complete in 50 -60 mins now it is taking 120mins.
    Thanks,

    Hi,
    On the Collections,Can you please plot the time taken by PDP or PDP Workers, Refresh Snapshot or ODS over few days. If the behaviour is not consistent, then you may try running the GSS on ERP instance and VCP instance at 50% or may be at 100%.
    Are there any other activities like backup being scheduled at the same time the Collections and plans are run?
    You may also monitor the DB sessions and see what are the other processes/concurrent programs that are running at the same time.

  • How to run tasks with priority?

    Hello everyone,
    I want to run tasks with priority, i.e. among several simultaneous running tasks, the task with the higher priority will have more chances to occupy CPU time. I have the following 2 issues dealing with the implementation of such feature.
    - To define each task as a thread or as a method? How to change the priority of each task dynamically when they are running?
    - The priority feature of Java thread does not meet my requirement, since I can not define priority precisely. For example, I want to define that a task with priority A will occupy CPU time 3 times than a task with priority B.
    I am wondering whether I can find similar open source projects or tutorials?
    Thanks in advance,
    George

    how to run autoconfig with out effecting database
    or
    which mode i have to run What do you mean by not affecting the database?
    The database and the database listener should be up and running when you run AutoConfig on the Application/Database tier nodes.
    Please see (Autoconfig FAQ [ID 218089.1]) -- Which files / profile options get changed when I run AutoConfig?
    Thanks,
    Hussein

Maybe you are looking for