Process Flow Scheduling

Hi All,
I have a Master Flow which has 5 process flows in it.
MF = PF1--->PF2--->PF3--->PF4--->PF5
This MF is shceduled to run every 30mins.(using the OWB10.2.0.4 inbuilt scheduler)
I have two questions....
1) MF first intance of MF started at 1200HRS ..... PF1,PF2 processes of MF flows gets completed ,but it hangs up at PF3 for more that 30min....
since MF frequency is 30min.....second intance of MF will be triggered at 1230HRS before MF first instance completes. now how can we revert back the changes of PF1 and PF2 processes happened during the first instance of MF.
2) hoc can we restrict second instance of MF to start only after the completion of first instance of MF if it takes more than 30mins
Hope my questions are clear.
Thanks

1. I dont think you can since every PF is in its own session and you dont have control over it once it ends. What you can do is create procedures and use them as control service for your PF execution so when your master PF starts again first two processes that have ended dont get started again.
2. Again, procedures to control your execution. This can be done using OWF views. Checking OWF views you can see that first instance is still running and using that you can make sure that second instance does not start until the first one ends.

Similar Messages

  • Start OWB Process Flow Schedule Job in Workflow Manager

    I am trying to get the Oracle Workflow Schedule to execute my Oracle Warehouse Builder (OWB) Process Flow. Please note that execute Process Flow from the OWB deployment manager works fine. I did the following but nothing being executed:
    Info:
    OWB: 10g
    Oracle DB: 10g
    Oracle Workflow: 2.6.3
    OracelAS: NONE
    1. From the Oracle Workflow Manager browser, click the Background Engines->Submit New
    2. Insert the following parameter:
    Work Item Type: LD_STG
    Run Date and Time: 10/18/2004 17:40:00
    Run Every: 0 days, 00 hours, 01 minutes, 00 seconds
    3. Click ok and system showed "Successfully submitted Background Engine with job number 107"
    However, after the specificied schedule time, nothing happened. No error shown in the Work Item.
    Any help are greatly appreciated. Thanks.

    This is a Oracle Workflow client problem. Can you post this to the workflow forum (Workflow
    Regards:
    Igor

  • Linking Location to Process Flow & Schedule OMB Script in OEM.

    Hi All,
    Oracle 9i Warehouse Builder Client: 9.2.0.4.0
    Oracle 9i Warehouse Builder Repository: 9.2.0.2.0
    I created a process flow in OWB proj1 & selected loc1 as deployment location from the drop down help.
    Is it possible to link a different location let us consider Loc2 from different OWB project prj2?
    Can OMB PLUS Script invoke OWB Mapping or OWB Process Flow? Also can the OMB Plus Scrpit be scheduled in OEM?
    Can someone please let me know ?
    Thanks in Advance.
    Regards,
    Vidyanand

    Hi Vidyanand,
    Lots of questions... but I'm not sure what you mean with linking Loc2 from Prj2. Can you elaborate?
    Easiest to execute mappings is SQL Plus or EM. You can use the SQL_EXEC_TEMPLATE to do this, take a look at the documentation in execution of mappings...
    Jean-Pierre

  • OWB Process Flow stuck

    Hi Gurus,
    I'm new to OWB, I hope to get some help from you!
    I'm supporting a ETL system based on OWB. We have daily process flows scheduled to run without any issue, however, these couple of days the ETL process can not complete. It's always stuck at certain step. We kill the process, and re-run the process, but still can not solve the problem.
    Have anyone of you encountered such a situation? What need to check?
    Thanks!

    You might want to check to see if you have anything "parallel" running
    We recently had an issue with one of our mappings where one day it decided to just stop working and "freeze"
    Our DBA found that we had a Oracle hint for "Parallel" in the code and removed it. After that the mapping ran fine.
    Best of luck

  • Help with scheduling Process Flows in Workflow in 10gR2

    Dear All
    I am after some help with the scheduling of process flows (PF) in Workflow in OWB 10gR2. I am trying to set up some PF’s to handle the refresh of some staging tables from various source systems. I have created a separate Process Flow Module for each source systems, mainly just to keep them separate and organised. I have a number of mappings which all run fine if execute manually or linked directly to a schedule/job. The problem I am encountering is when I try to run process flows from schedules. I have created process flows ok and have run them manually and they complete fine so I know that the content of the PF is ok. After linking and deploying the jobs I can never get all the process flows to run from the various schedules. What appears to happen is that the first PF works ok and any other PF that are within the same Process Flow Module/packages also runs ok even if its running off as different schedules. However PF’s under the other Process Flow Module fail with the following error
    CC_DAILY_0400
    Description :
    Runtime User : OWBRT_USER
    Started : 2006-08-31 04:00:00.0
    Status      Log
    Error      ORA-20002: 3114: Activity 'PACK_1/CC_DAILY_0400' is not a process.
    ORA-06512: at "OWF_MGR.WF_ENGINE", line 3920
    ORA-06512: at line 1
    Following this error the PF will not even run manually! If I then stop the schedule and either drop or replace this failed PF thus redeploying, the PF then runs fine manually and if the restart the schedule it runs ok the next evening. My problem is that this then appears to impact on the other PF’s which all though have not been touched and ran ok the previous evening they then fail the following evening with the same error
    WS_DAILY_2400
    Description :
    Runtime User : OWBRT_USER
    Started : 2006-09-01 00:00:01.0
    Status      Log
    Error      ORA-20002: 3114: Activity 'PACK_1/WS_DAILY_2400' is not a process.
    ORA-06512: at "OWF_MGR.WF_ENGINE", line 3920
    ORA-06512: at line 1
    ORA-20002: 3114: Activity is not a process.
    I basically can not get both sets to run even though they are on separate modules and separate schedules.Has anyone any idea as to what could be wrong or if I am setting something up in a strange way which would cause these symptoms.
    All help or advice greatly appreciated
    Regards Kevin

    Dear All
    I am after some help with the scheduling of process flows (PF) in Workflow in OWB 10gR2. I am trying to set up some PF’s to handle the refresh of some staging tables from various source systems. I have created a separate Process Flow Module for each source systems, mainly just to keep them separate and organised. I have a number of mappings which all run fine if execute manually or linked directly to a schedule/job. The problem I am encountering is when I try to run process flows from schedules. I have created process flows ok and have run them manually and they complete fine so I know that the content of the PF is ok. After linking and deploying the jobs I can never get all the process flows to run from the various schedules. What appears to happen is that the first PF works ok and any other PF that are within the same Process Flow Module/packages also runs ok even if its running off as different schedules. However PF’s under the other Process Flow Module fail with the following error
    CC_DAILY_0400
    Description :
    Runtime User : OWBRT_USER
    Started : 2006-08-31 04:00:00.0
    Status      Log
    Error      ORA-20002: 3114: Activity 'PACK_1/CC_DAILY_0400' is not a process.
    ORA-06512: at "OWF_MGR.WF_ENGINE", line 3920
    ORA-06512: at line 1
    Following this error the PF will not even run manually! If I then stop the schedule and either drop or replace this failed PF thus redeploying, the PF then runs fine manually and if the restart the schedule it runs ok the next evening. My problem is that this then appears to impact on the other PF’s which all though have not been touched and ran ok the previous evening they then fail the following evening with the same error
    WS_DAILY_2400
    Description :
    Runtime User : OWBRT_USER
    Started : 2006-09-01 00:00:01.0
    Status      Log
    Error      ORA-20002: 3114: Activity 'PACK_1/WS_DAILY_2400' is not a process.
    ORA-06512: at "OWF_MGR.WF_ENGINE", line 3920
    ORA-06512: at line 1
    ORA-20002: 3114: Activity is not a process.
    I basically can not get both sets to run even though they are on separate modules and separate schedules.Has anyone any idea as to what could be wrong or if I am setting something up in a strange way which would cause these symptoms.
    All help or advice greatly appreciated
    Regards Kevin

  • To open a BPC excel input schedule through a Business Process Flow

    Hi,
    I have a Business Process Flow that has to open an excel input schedule.
    In the define actions tab of a Process step, I have chosen the BPC for excel interface and open template option.
    I browsed the necessary template to be opened.I have also provided the required inputs for member selection.
    Now when I open the Business Process Flow and Select this Process step, it opens only the BPC for excel interface and not the excel input schedule template.
    Can anyone expalin the reason that caused this problem and also a solution to fix this issue ?
    PS :I am trying to open this Business Process Flow using BPC Web and my BPC for excel is not open yet.
    Thanks in Advance

    Hello Aparna,
    Please select Application name in BPF.
    Please check for Application name in which you are opening the template.
    Thanks,
    Satish

  • Scheduling process flows and mappings

    Hello
    I have created many process flows. Now i want to schedule it. I know i can use OEM, but i need to log in as DBA. i also know that you can use owb scheduler module to schedule a process flow. but i want to schedule it using sql plus. i found a link on scheduling process flow in sql plus for older versions of OWB. Can we use the same script for OWB 10.2? here is the link - http://www.dba-oracle.com/oracle_news/2005_7_7_Scheduling_an_OWB.htm
    Please let me know how to schedule a process flow in OWB 10.2 in sql plus. It would be great if you could post the sql script required to schedule OWB 10.2 process flows.
    Thank You

    Hi,
    the web server named by the link is down, so a general answer.
    You can use the scripts sqlplus_exec_template.sql and oem_exec_template.sql from the directory <OWBHOME>/owb/rtp/sql and schedule it with cron or at or scheduler or ...
    Regards
    Detlef

  • Scheduled process flow fails, run directly works ok

    I've got a hard time with a process flow tthat needs to be scheduled.
    When I start the process flow with wb_rt_api_exec it rus ok,
    when I schedule the job calling wb_rt_api_exec in the Oracle Job scheduler it fails the moment it starts. The error message tells me I've got invalid user credentials, I cannot acces the wokflow location with the supplied userid and password.
    It's the same user to schedule the job as the one that starts wb_rt_api_exec directly.
    What can be rwrong?

    Hi,
    I have not used oracle job scheduler but just a taught....If ur id is able to access the package to execute the processflow that does not mean that the same id has the rights to do such actions thru a oracle job scheduler right?hope this leads to something...Do let me know any details reagrding the same....
    Regards
    Bharath

  • Scheduling Mappings and Process Flows

    Can you please tell me how to schedule mappings and process flows in a little detail, if any one has done that. I think OEM can be used for this but dont have any clear cut idea of doing it. Can the mappings/process flows be scheduled without using OEM console ?
    Waiting for you suggestions.
    rgds
    -AP

    Hi
    You can schedule your mapping and process flows with OEM or database job.
    You will find script templates in the OWB HOME/owb/rtp/sql directory
    and you can scheldule them.
    If you want to do it in OEM use the oem_exec_template.sql file createing an OEM job. Read the OWB documentation about it. If you have any question about it ask it, I have done this procedure many times.
    Ott Karesz
    http://www.trendo-kft.hu

  • Oracle 10G Database Control and Scheduling OWB Process Flow

    Does anyone know how to go about scheduling an OWB Process Flow from
    Oracle 10G Data Base Control. I knew how to do this with Oracle Enterprise Manager 9.2 but we recently upgraded to Oracle Db 10G and the interface has changed significantly.
    Now the interface seems to require a PL/SQL stored procedure to be executed.
    Is there a template procedure that is installed with 10G Data Base Control as there was for 9.2 i.e. oem_exec_template.sql?
    Thanks! Deadline approaching fast...
    Marion

    I've used the oem_exec_template.sql successfully with OWB 10.1 and Oracle 10G Database Control, with a little trial and error at first.
    I'm assuming that your job execution environment is set up correctly, ie. that you can properly execute jobs via the host agent.
    1. Log on to Database Control as SYSTEM, select Jobs from the links at the bottom of the page
    2. In the Results section, Create Job, select "SQL Script" and press Go
    3. In the General section, enter Job Name, and as SQL Script enter e.g.:
    @/u01/app/oracle/owb_oracle_home/owb/rtp/sql/oem_exec_template.sql owb_runtime WF_LOC PROCESS MY_PROCESS , ,
    4. In the Databases section, add your target database
    5. In the Credentials section, I select "Override Preferred Credentials" and use the agent account (oracle on my Linux system) and db user owb_access (OWB Runtime Access user)
    6. Review Schedule tab and submit
    Comments on step 3:
    - the oem_exec_template.sql script must be installed according to the path specified in step 3, on the database host where the OWB Runtime Repository is located
    - owb_runtime is the owner of my OWB Runtime Repository
    - WF_LOC is the name of my Workflow Location as seen in OWB Deployment Manager
    - MY_PROCESS is the name of a deployed Workflow Process
    - the commas indicate that I don't supply any system or custom parameters.
    - step 3 is actually a shell command line that is interpreted by eg. /bin/sh on Unix or cmd on Windows, and must obey proper quoting rules. On windows, I had to specify the empty commas as "\," (including dblquotes)
    Regards, Hans Henrik

  • Scheduling Process flows

    I have created process flow and created and schedule and attached it to the process flow thru configure and refferred calander and depoyed the process flow again. But the flow doesnt start.
    Is there anything else to do. I read in form that some _job appears in Control center. I dont find in my control center.
    Can anyone explain me any other steps which are required to run PF based on schedue.
    Thanks..

    Hi Tom
    You will find pfname_JOB in the control center. if you expand the location under which you created your Schedule, you will see a scheduled jobs tree expand that and then you will find your schduled job( pfname_ JOB) which requires deployment to start running.
    Hope this helps
    Regards
    Vibhuti

  • Scheduling the Process Flows in Oracle Warehouse Builder

    Hi,
    Can you please let me know how to schedule the process flows.I mean to make the process flow to run on a daily, weekly basis etc.Where exactly we need to schedule the process flows.
    It would be great if you can help me out.
    Thanks
    Vinay

    You can schedule process flows the same way as you schedule mappings. See the following viewlet regarding the scheduling of OWB activities in Oracle Enterprise Manager (OEM):
    http://otn.oracle.com/products/warehouse/htdocs/oem_scheduling_viewlet_swf.html
    Regards:
    Igor

  • Scheduling Process flows in scheduling tool Control M

    Hi,
    We need to schedule 3 to 4 process flows through the general scheduling tool "Control M". So how do we do this? I mean where should we login to run the OWB jobs (Process Flows) through Control M.
    Any help will be appreciated.
    Thanks,
    Harsha

    Create a shell script that will take in the required parameters you need (i.e.connection User/pwd@SID and OWB mapping inputs if required), which call sqlplus with a procedure that will run your workflow.
    My current client migrates all OWB incl Worflows created through OWB by the means of export. This is why the prefix of the workflow activity will differ from an environment from another.
    Here is a procedure that will launch the OWF and wait for the workflow to be completed before it exits and return control to CONTROL-M.
    CREATE OR REPLACE PROCEDURE XX_OWF_Daily_Load (
    ATTR01 IN VARCHAR2(10),
    ATTR02 IN VARCHAR2(10),
    ATTR03 IN VARCHAR2(10),
    ATTR04 IN VARCHAR2(10),
    ATTR05 IN VARCHAR2)
    IS
    v_ITEM_KEY VARCHAR2(40);
    v_PREFIX VARCHAR2(4);
    v_ITEM_TYPE VARCHAR2(8):= 'MY_ITEM';
    v_PROCESS VARCHAR2(32):='MY_ITEM_KEY';
    /*Mapping Inputs for OWB */
    v_ATTRIBUTETXT01 VARCHAR2(1):='ATTR01';
    v_ATTRIBUTETXT02 VARCHAR2(1):='ATTR02';
    v_ATTRIBUTETXT03 VARCHAR2(1):='ATTR03';
    v_ATTRIBUTETXT04 VARCHAR2(1):='ATTR04';
    v_ATTRIBUTETXT05 VARCHAR2(1):='ATTR01';
    v_STATUS VARCHAR2(30):='RUNNING';
    BEGIN
    /* Generate a unique key */
    SELECT 'DAILY_PROCESS'||TO_CHAR(SYSDATE,'YYYYMMDD:HH24MI') INTO v_ITEM_KEY FROM DUAL;
    SELECT TRIM(TEXT_DEFAULT)||'_' INTO v_PREFIX
    FROM WF_ACTIVITY_ATTRIBUTES_VL
    WHERE
    ACTIVITY_ITEM_TYPE = 'MY_ITEM'
    AND ACTIVITY_NAME = 'MY_ITEM_KEY'
    AND NAME = 'SYS:TLA';
    /* Creating the Workflow Process */
    Wf_Engine.createprocess(ItemType => v_ITEM_TYPE,
    ItemKey => v_ITEM_KEY,
    process => v_PROCESS);
    /* Setting all required attributes for the Workflow Process */
    Wf_Engine.SETITEMATTRTEXT(ItemType => v_ITEM_TYPE,
    ItemKey => v_ITEM_KEY,
    AName => v_PREFIX || 'LOAD_WORKAREA_POLICY',
                                  AValue => v_ATTRIBUTETXT01);
    Wf_Engine.SETITEMATTRTEXT(ItemType => v_ITEM_TYPE,
    ItemKey => v_ITEM_KEY,
    AName => v_PREFIX || 'LOAD_WORKAREA_TR_POLICY',
                                  AValue => v_ATTRIBUTETXT02);
    Wf_Engine.SETITEMATTRTEXT(ItemType => v_ITEM_TYPE,
    ItemKey => v_ITEM_KEY,
    AName => v_PREFIX || 'LOAD_USER_DIM',
                                  AValue => v_LOAD_USER_DIM);
    Wf_Engine.SETITEMATTRTEXT(ItemType => v_ITEM_TYPE,
    ItemKey => v_ITEM_KEY,
    AName => v_PREFIX || 'LOAD_VEHICLE_DIM',
                                  AValue => v_ATTRIBUTETXT05);
    Wf_Engine.setitemowner(ItemType => v_ITEM_TYPE,
    ItemKey => v_ITEM_KEY,
    Owner => 'OWF_MGR');
    /* Starting the Workflow Process */
    Wf_Engine.startprocess (itemtype => v_ITEM_TYPE,
    itemkey => v_ITEM_KEY);
    WHILE (v_status <> 'COMPLETED')
    LOOP                              
    SELECT ACTIVITY_STATUS INTO v_status
         FROM WF_ITEM_ACTIVITY_STATUSES
    WHERE ITEM_TYPE='MY_ITEM' AND ITEM_KEY=v_ITEM_KEY;
    SYS.DBMS_LOCK.SLEEP(600);
    END LOOP;
    END;
    /

  • Process Flow errors in OEM Scheduler

    Hi
    I'm using OWB 10.1.03. I've created 2 process flows that load data from different sources. I have also set up a job schedule on Oracle Enterprise Manager (OEM) that runs a stored procedure. This procedure comprises two steps:
    (1) Start a loop and check for a table flag. If flag set then Run Process Flow 1 (using
    ret:= wh_runtime.wb_rt_api_exec.run_task('TARGET_LOC','PROCESS','WF_NAME','','',1)). Else keep looping until flag is set.
    Then immediately after Process Flow has run,
    (2) Start a loop and check for a different table flag. If flag set then Run Process Flow 2. Else keep looping until flag is set.
    If there has been an error in Process Flow 1, the mapping completes with error and an email notification is sent. However, according to the stored procedure, Process Flow 1 has completed and it therefore moves onto Process Flow 2.
    Is there a way of identifying if a Process Flow has completed with an error or warning, and therefore preventing the procedure moving onto step 2?
    Thanks
    GB

    Hi
    I managed to solve this by using part of the oem_exec_template.sql script within my stored procedure. I used l_audit_result to check the status of the workflow run and raised an exception if it was not a success.
    GB

  • Process Flow developing/deploying/executing and scheduling through OEM

    I have installed OWB92 and Oracle 9i, OEM configured, Oracle workflow 2.6.2 installed. I know OWB and scheduling mapping from OEM.
    I have created two mappings and a process flow. I want to schedule process flow from OEM. After creation of process flow, while I deploy it ask for a user/password/port/sid/host. I want to know which user I need to enter here.
    If anybody help me out in the this regard providing the detail steps.
    Thanks in advance.
    Liyakat

    Hi Henrik,
    After deploying the process flow, I am getting the following error:
    RPE-02085: Failed to test wb_rti_workflow_util.initialize through deployed Workflow Database Link R2MIS.US.ORACLE.COM@WB_LK_PACK1. Please check that "EXECUTE ANY PROCEDURE" privilege is set and that the OWB Runtime is available.
    - ORA-06550: line 1, column 7:
    PLS-00201: identifier '[email protected]@WB_LK_PACK1' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    OWB runtime is available.What I need to do now?
    Thanks and Regards,
    Liyakat

Maybe you are looking for

  • Bandwidth monitoring on a Catalyst 2960

    Hello all, I'm working with two Catalyst 2960 switches and I would like to know if there is a way to monitor bandwidth on individual ports. Ideally I would like to have one graph showing a bandwidth usage reading on each port. I tried using the Netwo

  • 参考:Photoshop Elements.Premiere Elementsでベータテスター募集

    本投稿はPhotoshop Elements.Premiere Elementsの両フォーラムに出しています. Windows環境だけのようですが.ベータテスターが募集されました.アドビでの公のベータテスター募集は珍しいのでは? 守秘義務の締結があるので.口外は出来ませんね. 詳細は下記サイトを. 急募!Photoshop Elements.Premiere Elementsベータテスター募集のお知らせ - http://www.adobe.com/jp/joc/psprelements/bet

  • Issue in inbound Idoc

    Hi Experts, I have one issue inbound idoc, actually we have 4 zfields, durring inbound process this 4 fields getting the records as well as its showing the correct values in we05. Even the idoc also getting success. But in the sales order its not sho

  • Starting FCP Unknown error 2

    Hi, I haven't used FCO on the MacPro since a week or so, mainly working with Motion and AE. I just started FCP and as soon as I click the icon on the dock a little window comes out with FCP icon and "Unkown error" and next line " 2", with the button

  • Intercept database error

    Hi, I would like to intercept a raise application error in a trigger. Is it possible? regards Luigi :)