Agent Scheduler - Schedule Scenario programatically

Hello
Im working with scenario scheduling using a scheduler Agent in Oracle Data Integrator 10g. I know the schedule can be set from the Designer or the operator tools but for some of the defined scenarios i need the user to set the execution schedule using a web application (Java Web application). I can´t let the users connect to the Work Repository to set the schedule for a scenario.
Is there a way to set the schedule for a scenario programatically using the ODI Java API or a Web service? I want to create new schedules for a scenario or change a schedule without of the Operator or Designer tools, and preferably without messing directly with the Master Repository
An alternative could be managing the schedule in the web application using Quartz or Cron and then invoke the scenario with the OdiInvoke public web services, but i prefer to use the scheduler agent.
Thanks in advance

There a lot of ways. It just depend on how you can customize it. Create a batch file to trigger the scenario.
Now a create small java program to run batch file and make a looping for infinite times and just after the trigger of scenario supply the sleep time for required interval.

Similar Messages

  • Unable to schedule a scenario

    Hi All,
    When I try to start an agent in odi 11.1.1.6.3, the agent has been started with exception
    C:\Middleware\Oracle_ODI1\oracledi\agent\bin>agent -NAME=PHYSICAL_AGENT
    OracleDI: Starting Agent ...
    2013-06-25 14:02:56.435 NOTIFICATION ODI-1128 Agent PHYSICAL_AGENT is starting.
    Application Server: STANDALONE. Agent Version: 11.1.1.6.3 - 08/05/2012. Port: 20910. JMX Port: 21910.
    2013-06-25 14:03:00.491 NOTIFICATION ODI-1136 Starting Schedulers on Agent PHYSICAL_AGENT.
    2013-06-25 14:03:00.881 NOTIFICATION ODI-1111 Agent PHYSICAL_AGENT started. Agent version: 11.1.1.6.3 - 08/05/2012. Port: 20910. JMX Port: 21910.
    Exception in thread "DwgCmdScheduler-PCS_WORKREP_PRD_NEW" java.lang.NullPointerException
    at com.sunopsis.timer.filterbased.SnpsBetweenHoursFilter.equals(SnpsBetweenHoursFilter.java:112)
    at java.util.AbstractList.equals(AbstractList.java:507)
    at com.sunopsis.timer.filterbased.FilterBasedTaskScheduleDefinition.equals(FilterBasedTaskScheduleDefinition.java:50)
    at com.sunopsis.timer.SnpsTaskManager.updateDefinitionList(SnpsTaskManager.java:94)
    at com.sunopsis.timer.SnpsAbstractScheduler.run(SnpsAbstractScheduler.java:161)
    at oracle.odi.runtime.agent.scheduler.OdiAgentScheduler.run(OdiAgentScheduler.java:138)
    at java.lang.Thread.run(Thread.java:662)
    2013-06-25 14:03:01.162 NOTIFICATION ODI-1137 Scheduler started for work repository PCS_WORKREP_PRD_NEW on Agent PHYSICAL_AGENT.
    The agent test is successful. Update schedule is also successful.
    But when I try to view the schedule, am getting "Unable to connect to agent" and the scenario is not executed at the scheduled time.
    Have checked every detail in odiparams.bat file.
    Everything seems fine.
    Could anyone please advise.
    Thanks

    Hi janakiram,
    There is some cause for this issue.
    Whenever u clicked "Scheduling Information" ODI queried your planned schedules (your Work Repository table, SNP_PLAN_AGENT) and did not see anything scheduled in the time frame of "Schedule from" and "To" to output for you (actually it wil take 2 hours from NOW, means will consider the current time when u clicked + 2 hrs).
    So whenever you click Scheduling Information it will fail saying Unable to retrieve scheduling information.
    The work around would be,
    The default "Schedule from" timestamp is the current timestamp on your machine and you can set the "To" timestamp by selecting an interval from the drop down (2 Hour, 1 Hours..) and clicking on either of the two yellow arrow buttons.
    When ODI finds a schedule in the time frame, it will automatically display it for you on the right, if there is none, you will see unable to retrieve agent's schedule message.
    Thanks,
    Guru

  • Schedule background job programatically

    Hi,
    I want to schedule background job programatically  .
    Also, I want to specify the scheduled start time & start date .
    Please suggest .
    Moderator message - This question has been asked and answered many times before. Please search before posting.
    Edited by: Rob Burbank on Apr 16, 2009 12:27 PM

    Hi
    Please check this link
    [http://help.sap.com/saphelp_46c/helpdata/en/fa/096ee5543b11d1898e0000e8322d00/frameset.htm]
    Thanks,
    Hari

  • Schedule a scenario to execute as soon as it gets completed

    Hi,
    Is it possible to schedule a scenario to execute again as soon as it gets completed?
    Please let me know.
    Thanks!

    Hi,
    If you want you scenario to go in an endless loop, you can simply create a new package. Drag your scenario into the new package, and add the "OK" to itself. Therefore unless it fails it will start again on completion.
    You may want to add a variable to you package so you can stop it, which you can set externally.
    The Final package would look like this...
    Declare variable-->Refresh variable-->evaluate variable (true)-->call scenario loop back to Refresh variable (step 2).
    If the evaluate variable is false, then the package will stop.
    Cheers
    Bos

  • Ho w to schedule a scenario from external system

    Hi
    Is ther any API or function we can schedule the ODI scenario from external system.We have a html page from whcih we are calling ODI scenario using startscen command.We would like schedule the scenario
    from HTML page is there any way we can achive this
    Thanks in advance...
    Baji

    What Zerome said is correct. Odi console is for managing and monitoring an Oracle Data Integrator run-time architecture and for browsing design-time objects.
    you can refer for information on this link aswell.
    http://docs.oracle.com/cd/E17904_01/integrate.1111/e12643/odi_console.htm
    Bhabani
    http://dwteam.in

  • Scheduling a Scenario question

    I have scheduled a Scenario to run every x minutes. I did this from ODI Studio and it works.
    Now say, I export this Scenario and import it into another ODI "Execution Mode" environment.
    There, the ODI admin wants to change the Scheduler of this Scenario, from x minutes to y minutes.
    How do they do it? I dont see any options to do that from ODI console.
    TIA.

    Ok, so seems like you cannot adjust Scenario's scheduling from ODI console. You can only do it from ODI Studio.
    Somebody, please let me know if I am wrong.
    Thanks!

  • SQL Server Agent Job Scheduler- Set time less than 10 seconds

    Hi,
    Could any one please let me know how to change the SQL server agent Job scheduler time to less than 10 secs?
    I wan to schedule a SSIS package run for every 5 secs.
    Thanks..

    Be careful, it is a bad idea to blindly just issue a new package run without knowing whether the previous package ended.
    It may lead to locking/dead-locking.
    Now re the Agent: the seconds are not exposed at all, why you say 10?
    But, there is a way, not through the UI, explained there:http://stackoverflow.com/questions/5569415/is-there-a-way-to-set-a-sql-server-job-scheduled-to-run-every-30-seconds + http://www.sqlservercentral.com/articles/Administration/sqlserverjobscheduling/2288/
    PS you can have it every sec
    Arthur My Blog

  • Unable to retrieve agent's schedule(SCHEDULER EXPERTS.. please come here)

    Hi,
    anybody encountered this warning while trying to view schedule for a particular agent? what do we do?
    regards
    B
    Edited by: user13279805 on Aug 31, 2010 12:26 PM

    Hi B,
    There is some cause for this issue.
    Whenever u clicked "Scheduling Information" ODI queried your planned schedules (your Work Repository table, SNP_PLAN_AGENT) and did not see anything scheduled in the time frame of "Schedule from" and "To" to output for you (actually it wil take 2 hours from NOW, means will consider the current time when u clicked + 2 hrs).
    So whenever you click Scheduling Information it will fail saying Unable to retrieve scheduling information.
    The work around would be,
    The default "Schedule from" timestamp is the current timestamp on your machine and you can set the "To" timestamp by selecting an interval from the drop down (2 Hour, 1 Hours..) and clicking on either of the two yellow arrow buttons.
    When ODI finds a schedule in the time frame, it will automatically display it for you on the right, if there is none, you will see unable to retrieve agent's schedule message.
    PS: I hope your Agent Scheduler is running in all cases. :)
    Thanks,
    Guru

  • How do i set the scheduler schedule property to run at 6am & 9pm daily?

    How do i set the scheduler's schedule property to run at 6am & 9pm daily?
    Do I have to use a PeriodicSchedule ?
    Edited by: DivyaR on May 19, 2013 11:10 PM

    Use the Calendar schedule. set the schedule property as following in your scheduler
    schedule=calendar * * * * 6,21 0
    The value of 6,21 specifies that its going to run once at 6AM and other time at 9PM everyday.
    Thanks

  • Query for the Problem of setting up agent and scheduling a scenario

    I have setup a agent called AGENT_SCHEDULER.I can start this agent from the windows service,but when I go to Topology manager and say test Test Connection I don't get any response. My ODI hangs up and I have to manually kill
    from the task Manager. Why is this happening?
    But when I start from the command prompt using agentscheduler "-port=20910" "-name=AGENT_SCHEDULER" "-v=5 its gets started and tehn when I go to topology Manager and test connection ,it says agent test successful.
    But in the windows service it is not started though. Is this correctly behaving?
    After that when I schedule a Package Scenario and give status "active " and execution on "startup",I able to save. At this I presume the schedule must have started and ran the process. But then when I Go to Operator,it gives me error UNPARSEABLE DATE "0" and the opens up and doesn't show me anything.
    what is this error unparseable date "0"?
    I have set my ODIPARAMS with corect master and work repository and encoded ODI_SECU_ENCODED_PASS with the latest one generated?because every time I generate I get a different one.I am using java version "1.5.0_05".
    Also I have a requirement that I schedule my package after every 30 mins? What I found that we can schedule hourly?How will I be able to achieve this?

    Hi user768175
    Ref Note 783671.1 In Iassets Security by Cost Center is not Working, The Symptoms is as below :
    In iAssets, users with "Enforce Security by Cost Center" are able to see assets from different cost centers then the one where they are restricted, when using Advance Search button.
    But I still not work when using Advance Search button....
    Anyway, do u know how to setup the Cost Center/Department for employee in the HRMS module? Is't correct as below?
    I tried to set in HRMS (HRMS Manager) -> People -> Enter and Maintain --> select user--> Assignment -> Purchase Order Information -> input value in Set of Books and Default Expense Account field
    Many thanks for your help...
    SamCH

  • How to create agent for scheduling an scenario???

    i want to scheudle a scenario... but it requires agent..
    so, please tell me the steps i have to follow inorder to create agent....

    Hi ,
    Refer
    http://odiexperts.com/?p=1043
    http://st-curriculum.oracle.com/obe/fmw/odi/10g/10135/setup_odi_agent/setup_odi_agent.htm
    Thanks,
    Sutirtha

  • Scheduled ODI scenario auto executed twice!!

    Hi All,
    I am using ODI 10.1.3.5 . I have an ODI scenario scheduled to run once everyday midnight. Normally it runs fine but on some irregular intervals, the scenario simply doesn't run or runs twice at the scheduled time .  Does anyone has any idea how to investigate/ solve this issue. Please help.
    I have checked in the SNP_PLAN_AGENT table and the entry is there as it should be .
    Thanks,
    Saby

    Not running a scheduled job sounds like a bug. please work with support channel to further investigation.
    You can check with view schedule dialog for a agent and see if its showing the scheduled jobs correctly. If so then agent should execute them on scheduled time.
    On running it twice: please check if you have configured the job to retry on failure or run multiple times. Otherwise this too sounds like a bug to me.

  • Scheduling a scenario

    Hello,
    I'm looking for a way to create a schedule for a scenario and refresh the agent automatically. The second part is easy with OdiUpdateAgentSchedule but what about defining the schedule? Is there any way other than clicking it out in ODI studio?
    Regards,
    Sebastian

    No, I don't think the first part is possible. There is no ODI tool I know of that will do this and no API calls either.

  • Schedule background Job Programatically at specified date and time

    Hi Everybody,
    how can i schedule a job  in background programatically for a spefic date and time ?
    Thanks and Regards
    srikanta

    Hi Chandrasekhar,
    my requirement is :
    in selection screen there will be two run mode :
    1) Run in Foreground
    2) Run in Background
    If user selects  ' Run in Background ' option , a block will open where user can give
    job schedule date  and
    job schedule time.
    Based on this date and time program will be scheduled in background.
    I have used like this :
    CALL FUNCTION 'JOB_OPEN'
          EXPORTING
            jobname                = v_jname
            SDLSTRTDT              = p_date
            SDLSTRTTM              = p_time
          IMPORTING
            JOBCOUNT               = v_jcnt
         EXCEPTIONS
           CANT_CREATE_JOB        = 1
           INVALID_JOB_DATA       = 2
           JOBNAME_MISSING        = 3
           OTHERS                 = 4.
    where v_jname is jobname
              v_jcnt   is jobcount
              p_date is  schedule date ( taken screen value)
             p_time is  schedule time ( taken screen value)
    but the job is sxcheduling immediately
    Give suggestion.
    Thanks in advance.
    Srikanta

  • Error while creating new Scheduling for scenarios in ODI

    Hi Experts,
    Good Morning.
    I am facing with the below error :
    ODI-23037: To use scheduling please associate a Logical Agent to a Physical Agent via the Logical Architecture Accordion in the Topology Navigator.
    But, when i try to create the logical agent then i need to create first physical agent, then i have created physical agent and going to test the physical agent then below error is showing.
    oracle.odi.runtime.agent.invocation.InvocationException: ODI-1424: Agent host or port cannot be reached using http://192.170.5.53:20910/oraclediagent.
    at oracle.odi.runtime.agent.invocation.RemoteRuntimeAgentInvoker.reThrowAgentErrorAsInvocation(RemoteRuntimeAgentInvoker.java:1301)
    at oracle.odi.runtime.agent.invocation.RemoteRuntimeAgentInvoker.invoke(RemoteRuntimeAgentInvoker.java:277)
    at oracle.odi.runtime.agent.invocation.RemoteRuntimeAgentInvoker.invokeIsAlive(RemoteRuntimeAgentInvoker.java:428)
    at oracle.odi.ui.action.SnpsPopupActionTestAgentHandler.actionPerformed(SnpsPopupActionTestAgentHandler.java:65)
    at com.sunopsis.graphical.frame.edit.EditFrameSnpAgent.jButtonTestAgent_ActionPerformed(EditFrameSnpAgent.java:990)
    at com.sunopsis.graphical.frame.edit.EditFrameSnpAgent.connEtoC2(EditFrameSnpAgent.java:212)
    at com.sunopsis.graphical.frame.edit.EditFrameSnpAgent$IvjEventHandler.actionPerformed(EditFrameSnpAgent.java:160)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    at java.awt.Component.processMouseEvent(Component.java:6289)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at java.awt.Component.processEvent(Component.java:6054)
    at java.awt.Container.processEvent(Container.java:2041)
    at java.awt.Component.dispatchEventImpl(Component.java:4652)
    at java.awt.Container.dispatchEventImpl(Container.java:2099)
    at java.awt.Component.dispatchEvent(Component.java:4482)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
    at java.awt.Container.dispatchEventImpl(Container.java:2085)
    at java.awt.Window.dispatchEventImpl(Window.java:2478)
    at java.awt.Component.dispatchEvent(Component.java:4482)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
    at java.awt.EventQueue.access$000(EventQueue.java:85)
    at java.awt.EventQueue$1.run(EventQueue.java:603)
    at java.awt.EventQueue$1.run(EventQueue.java:601)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
    at java.awt.EventQueue$2.run(EventQueue.java:617)
    at java.awt.EventQueue$2.run(EventQueue.java:615)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Caused by: ODI-1424: Agent host or port cannot be reached using http://192.170.5.53:20910/oraclediagent.
    Caused by: java.net.ConnectException: Connection refused: connect
    at oracle.odi.runtime.agent.invocation.RemoteRuntimeAgentInvoker.invoke(RemoteRuntimeAgentInvoker.java:278)
    ... 41 more
    Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:529)
    at java.net.Socket.connect(Socket.java:478)
    at java.net.Socket.<init>(Socket.java:375)
    at java.net.Socket.<init>(Socket.java:249)
    at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
    at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)
    at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
    at org.apache.commons.httpc

    You'll probably have better-er luck in the ODI forum.
    Data Integrator
    Cheers,

Maybe you are looking for

  • Report for Maintenance orders-Plant Maintenance

    Dear all, I have some maintenance orders, in that i have done cost settlement  for few orders through KO88.I want to take a list of  settled and not settled maintenance orders. Is there any standard SAP reports or any way to findout setlled /not sett

  • Error -1950678991 saving LV8.2 library of shared variables

    I used to be able to programmatically save my library of shared variables using "ProcessToLib.vi" (set to Process mode) after changing properties of some or all variables.  Now, and I don't know what has changed, I get this error: Error -1950678991 o

  • Itunes wont open i have tried literally EVERYTHING

    i unpgraded to 6.04 and it wouldnt open, so i tried downloading 6.03 again, then i tried using the ipod cd and it wont open... Ive read all the posts i have downloaded ewido, and deleted the sc file, i have removed and reinstalled at least 10 times,

  • Nokia PC Suite 6.8.13 Available

    Hi All, Nokia PC Suite version 6.81.13 has been released and is available from www.europe.nokia.com/pcsuite If you have questions or problems with this version, please make a post on the PC Suite and Other Software board: http://discussions.europe.no

  • Advanced TDMS, Set Channel Information

    Hello, I have a problem with scaling in and TDMS File. I´ll try to explain what i want to do. I work on a system that streams data from 2 PXIe 5122 via peer to peer streaming to 2 NI 7962R FPGA FlexRIO cards. After that I want to stream my measuremen