Call/Invoke an OWB Process Flow from a Windows Command/batch

Hi everyone,
I'm newbie in Oracle Warehouse Builder and I've developed some process flows to load data from one database to another.
One of these process, called "MAIN", is the beginning of the execution. I need to call these process flow (MAIN) from the Windows Command Line
or batch (.bat file) to schedule in Windows Sckeduler Tasks.
Anyone have an idea to how to do this?
Thanks a lot!
Edited by: Maximiliano García on 24/02/2012 05:41 PM
Edited by: Maximiliano García on 24/02/2012 05:41 PM

Check this blog post here that shows how to execute via sqlplus, which you will then be able to wrapper in a batch script or whatever to schedule.
https://blogs.oracle.com/warehousebuilder/entry/how_to_execute_process_flow_from_sqlplus
Cheers
David

Similar Messages

  • How to call OWB Process Flow from APEX?

    Hello.
    I was wondering if there is a way that I can have a OWB process flow kick off from a button in APEX? I know you can have APEX perform PL/SQL upon being clicked, so I am wondering if there is a way that I can do the same for a process flow? We are looking to have a manual kick off for a job and we are trying to use APEX for this. Any information would be great!
    Thank you

    Hi,
    Using SOAP ?if there is a way ... please provide some examples.
    I finished my EDQ process, and now i am trying to find how to call it from APEX
    My web service WSDL is
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Header/>
      <soap:Body>
        <dn:request xmlns:dn="http://www.datanomic.com/ws" id="?">
          <dn:record>
            <dn:ID>?</dn:ID>
          </dn:record>
        </dn:request>
      </soap:Body>
    </soap:Envelope>You did not state your Apex version. If you are on 4.x then see
    Creating a Web Service Reference Based on a WSDL
    Cheers,

  • Error when running the OWB process flow from the shell script

    Hi,
    I am able to deploy the process flow succesfully but when I execute the process flow from the shell script,I am getting the following error.Previously it worked fine.
    I had to make some chnage in the IP address,so i had to deploy again.
    Connected.
    SQL> @/oracle/product/owb92028/owb/rtp/sql/oem_exec_template.sql OWB_RTR LOC_P_REL PROCESS P_W_SOURCE "," ","
    Elapsed: 00:00:00.00
    Elapsed: 00:00:00.01
    Stage 1: Decoding Parameters
    | location_name=LOC_P_REL
    | task_type=ProcessFlow
    | task_name=P_W_SOURCE
    Stage 2: Opening Task
    declare
    ERROR at line 1:
    ORA-01422: exact fetch returns more than requested number of rows
    ORA-06512: at "OWB_RTR.WB_RT_API_EXEC", line 17
    ORA-06512: at "OWB_RTR.WB_RT_API_EXEC", line 137
    ORA-06512: at "OWB_RTR.WB_RT_API_EXEC", line 164
    ORA-06512: at line 205
    Thanks in advance.
    Vinay

    Hi Kamal and kanakam kolla,
    This is just to let you know that,I solved my problem little differently by creating a new location and deployed the process flow.Now my process flow is working fine when i call from the shell script.What i see is that, it does not update properly when we update and redeploy the process flow.So far this is the work arround i could think off and i succesfully tested this.
    Thank you Kamal and kanakam kolla,for giving a thought towards my problem.
    Thanks
    Vinay

  • 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

  • Execute Shell Script from OWB Process Flow

    I am trying to execute a Shell Script from a User Defined activity of OWB Process Flow. As I have not done such things earlier
    I need to know:
    1. Where I will put the Shell Script (move_file.sh)?
    2. What are the values in need to enter in the external process parameters (such as Command, Script, Result Code, Parameter List, Sucess Threshold etc)
    Please reply this thread. It would be a big help for me and probably for others as well.
    Kind Regards
    Zakir
    Message was edited by:
    Zakir

    Check this out,.
    http://download-uk.oracle.com/docs/cd/B31080_01/doc/owb.102/b28223/ref_processflows.htm#i1173362
    And answer to your question1, the shell script should be on the unix server.
    Regards

  • Passing parameters from shell script to OWB process flow

    Hi all,
    I am running OWB process flow (using the template script provided by oracle) and i want to pass two date parameters as shown below:
    sqlplus -s $SQL_USER/$SQL_PWD@$ORACLE_SID @$HOME_DIR/src/vmc_oem_exec_script.sql OWB_OWNER VMC_POST_DW_PF_LOC_SIT PROCESS VMC_NM1_PORT_MAIN "," "P_DATE_FROM=$DATE_FROM,P_DATE_TO=$DATE_TO"
    How do i catch those values in process flow and pass those to mappings in Process flow?
    Do i need to create PF variables with same names or any name will do?
    Thanks in advance

    This document is explaining how to pass data between activities in process flow.
    I am passing parameters from a shell script.
    Any ideas,how to pass parameters from shell script and then initialize the process flow variables based on those values and then pass them further to mappings.
    Thanks

  • Possible to call owb process flwo from trigger?

    Hi,
    We wish to have a trigger which calls a owb process flow.
    Is this possible?
    Anybody an example?
    Using Oracle 11.2.0.3
    Thanks
    Edited by: user5716448 on 12-Sep-2012 08:53

    Hi,
    Thanks but
    Tried this but got following error
    ORA-01919 - role OWB_D_OWBSYS does not exist.
    Even tried in the obsys schema
    Tried controcl centre owner as OWBSYS ( this is where the wb_rt_api_exec.run_task lives).
    declare
       v number;
    begin
      -- Test statements here
    v := POR_execute_code('OWF_LOCN', 'PROCESS', 'WAREHOUSE_PF/POR7/POR_PF', ',', ',');
    DBMS_OUTPUT.PUT_LINE(V);
    end;Also tried the api itself - can execute mapping fine but problem with process flow says task not found/check type name and location
    tried
    works
    DBMS_OUTPUT.PUT_LINE('Result: ' || TO_CHAR(owbsys.wb_rt_api_exec.run_task(
    'TERMSPRD_DECOM_LOCATION','PLSQLMAP','MAP_POR10', null, null, 1)));
    Not working
    DBMS_OUTPUT.PUT_LINE('Result: ' || TO_CHAR(owbsys.wb_rt_api_exec.run_task(
    'OWF_LOCN','ProcessFlow','POR_PF', null, null, 1)));
    Tried WAREHOUSE_PF/POR7/POR_PF and POR_7/POR_PF but still no joy.
    Any ideas?
    Thanks fort your help so far

  • OWB Process flow restart??

    OWB Process flow restart??
    Set up:
    OWB repository 10.2.0.2.0
    OWB client 10.2.0.2.8.
    Oracle version 10G (10.2.0.3.0).
    I have created a process flow(PF1) that has say 5 maps and on'SUCCESS' or FAILURE sends an email.
    I would like to restart the PF1 (after data fix) from the point of failure.
    Did any one has any idea for such a scenario ?
    Thank you!

    So, if you have a process flow package with 2 processes, process1 and process2, create a third process called RunAll.
    In process RunAll you will first run process1, then connect it to process2 with an transition arrow having the conditon set to Success.
    You could also have 2 other transition arrows going from process1 having conditions of Error and Warning (these would go somewhere else besides process2.).
    Then, you would merely run process RunAll. If process1 fails, then process2 never runs, since the transition arrows define the path of success, error, and warning.
    Hope this helps!

  • External commands in OWB Process Flow

    Hello *,
    how can I embed an external command (e.g. a batch file) in an OWB process flow.
    I know the User Defined Activity but I didn't succeed in embedding this.
    Has someone an example for me?
    Thanks and regards
    Michael

    hi thomas...
    thanks for your reply...
    I changed the parameters of runtime.properties to NATIVE_JAVA as u said...but it still not running....
    I will give u a celar pic..what I am doing now..
    I wrote a bat file called cmd.bat with the following commands..
    d:
    cd temp
    copy var.dat d.txt
    del var.dat
    I kept the path of this file(d:\temp\cmd.bat)..in the script parameter of userdefined activity...
    and the path of the cmd.exe (c:\windows\system32\cmd.exe) file in command parameter
    I created a basic process flow(ch)..with start, userdefined and stop activities...
    I just want to copy the data from var.dat to d.dat and delete the var.dat..
    the deployment and running of this process(ch) from the control center manager is success...but the actual copying and deletion that was mentioned in my cmd.bat..is not happening...
    I am using owb 10gr2....
    anymore suggestions plzz..
    thanks
    gopi

  • Job Schedular status running after killing process flow from OWF monitor

    Hi,
    PROBLEM SCENARIO:
    Scheuled job called 'TEST' kicks off process flow called 'Child_load' under 'Parent_load_all' and gets stuck. I go into OWF (ORACLE WORK FLOW MONIOTOR) and kill both the process flows and then complete the Process flow run manually from OWB. Now, next day the scheduled job 'TEST' should execute 'Parent load all', but it doesn't do that instead it shows 'TEST' in 'Running' STATUS from yesterday when I see it in toad under Sched.Jobs. I have to drop the scheduled job and redeploy it from OWB in order for it to work.
    Any idea why its doing that?
    Thanks in advance.

    hello
    the status of the scheduled job should be 'running'
    here is what i received from oracle support on that matter:
    A scheduled job is always in BUSY status, till the moment it is stopped in the Control Center Manager.
    If you open the Control Center Manager, goto the Location and expand the plus "+" in front of Scheduled Jobs. There should be your job DLOAD_JOB.
    On the right bottom appears the dialog Control Center Jobs. And there is a tab "Scheduled". Click on that tab and you should see a green arrow in front of the job DLOAD_JOB. This means the job is running. (In fact it is not running but waiting to be executed again according scheduled time)
    To stop the job to run according schedule, you can right-click on the job and choose "Stop". The green arrow will disappear and the status in the Repository Browser will be "Completed"
    To start the job again, you can right-click on the job and choose "Start". The green arrow will appear again and the status in the Repository Browser will be "Busy"
    so according to this the scheduler job should be in status running;
    why it does not trigger your processes however is another thing;
    rgds

  • (urgent)how to run the sqlldr script in owb process flow?

    dear all:
    In my oracle warehouse ,i have to load much *.dat file
    into database with sqlldr in owb process flow. In owb process flow, I use the external process to run the sqlldr file with following configuration:
    1:======external process==========
    command : /app/ftpfile/sqlldr2.sh
    parameter list:
    success_threshold:0
    script:
    ================================
    2:create a file location in FILE LOCATION node:
    =============
    ODS_LOCAL_LOC
    =============
    3: in the runtime repository i register the location
    ============
    user name: oracle (for the sqlldr should run in oracle user)
    password : oracle
    host name: localhost
    root path: /app/ftpfile/
    ============
    4:configure the process flow
    ============
    path settings
    working locations:ods_local_loc
    ============
    after deploy them success in runtime repository,
    i run it ,it show me error following:
    ==========
    SQL*Loader-704: Internal error: ulconnect: OCIServerAttach [0]
    ORA-12545: Connect failed because target host or object does not exist
    ===========
    please help me!
    with best regard!

    Hello,
    our developers were getting this error code just the other day. They are using "sqlplus_exec_template" script to initiate these things. In our case, I had to do two thing:
    1) Modify their "initiator" script (the one that connects to runtime access user, and then calls "template") - it has to use tns connectivity "user/passwd@service_name"
    2) Create TNS entry (server side) for the "service_name" above.
    Now these SQL*LOADER mappings run successfully.
    Alex.

  • 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

  • OWB process flow & Oracle Workflow

    Hi,
    In order to deploy the OWB process flow packages, is it necessary to have Oracle workflow installed on the Target server? When I tried to deploy a process flow package to the target database (10gR2 db), it required a user called owf_mgr. As far I know, owf_mgr is the admin user for workflow. Can this feature work without OWF being installed?
    Thanks for your help
    regards

    You also might be interested in this thread...
    OWB and Work Flow (being dessuported)
    Just in case you are starting an implementation.

  • Using .sql files in OWB Process flow

    Hi,
    Is it possible to use the .sql files in Process flow and schedule them?
    If so,can you please let me know the procedure.
    Thanks for your help and hoping to hear from you soon.
    Thanks
    Vinay

    Process flow is not a scheduler, to schedule, you will have to run the process flow from a scheduler system, such as the one in Oracle Enterprise manager.
    You can run an sql file from a batch file (or a shell file, if you are on unix), and then call the batch file from an external activity in the process flow.
    Regards:
    Igor

  • How to stop OWB Process Flow job

    I have a problem.
    For scheduling OWB Process Flows I use EM (create Job - SQL Script) in which I schedule jobs with script @/home/oracle/scripts/oem_exec_template.sql.
    Sometimes it happens, that the job doesn't finish and I also can't expedite it through Workflow manager because it is not listed there. So next executions for this job doesn't fire, because it is still active (it is shown in EM as Running …..and also I can't stop it there).
    I also can't find the session for this job and also in dictionary I can't find the job, I went through these views, but nowhere I can't find any of my scheduled jobs, and of course also not the ones that are still running.
    DBA_SCHEDULER_JOBS
    DBA_SCHEDULER_RUNNING_JOBS
    DBA_SCHEDULER_JOB_RUN_DETAILS
    Where in dictionary can I find my jobs?
    How can I kill my running jobs?
    OS: Red Hat Linux 3
    DB: 10.1.0.3.0
    OWB: 10.1.0.2.0
    I'm quite desperate about this isue,
    Thank you,
    Gorazd

    Gorazd,
    the best way to identify problem with processflow execution - using OWB Runtime Audit Browser.
    Other variant - using public OWB runtime view, for example for reporting executions of you process run this select under OWB repository owner or any OWB user:
    select created_on,elapse_time,return_result from all_rt_audit_executions
    where object_name='<your processflow name in uppercase>' order by created_on;
    RETURN_RESULT must be equal 'OK' and ELAPSE_TIME (in seconds) greater then 0.
    If this query returns rows with null RETURN_RESULT or RETURN_RESULT<>'OK' or with zero elapse_time and this cases match (by date) with EM problems then you need analyze process executions in more detail with Runtime Audit Browser.
    Alternatively use select from view ALL_RT_AUDIT_EXEC_MESSAGES / ALL_RT_AUDIT_MAP_RUN_ERRORS / ALL_RT_AUDIT_PROC_RUN_ERRORS.
    Oleg

Maybe you are looking for

  • Is it possible to make my phone number private?

    I have a lot of contacts on Skype, but some of them I either do not know well enough or do not trust enough, and I don't want them to have access to my phone number unless I explicitly give it to them. I'm sure a lot of other people have the same iss

  • Is there any option to install SQL server in mac os 10.9

    is there any option to install SQL server in mac os 10.9

  • I can't copy a song from my PC to itunes or to my ipod

    For some reason I can't seem to copy files from my PC to iTunes or to my ipod.  I've trid drag and drop,  add song and add folder.  None seem to work.  Please help!!

  • New intel Mac

    Hi everyone. I'm looking at buying a new iMac 20" core duo with 1 Gb of RAM and no other upgrades. I am likely to use it for general surefing the web, creating documents, slideshows and spreadsheets, playing around with some of apples cool apps like

  • Reason codes

    Hi , We have a contact center UCCE 8x, in which few of the Agents are migrated to Siebel CRM CTI Application from CAD. We are using Cisco CRM adapters for the CTI communications between CRM and ICM. So the call is maturing to the agent properly, but