Running groups of procedures in process flow

I am having an impossible time trying to conceptualize a solution to the following problem:
I am trying to build a process flow in OWB 9.2.0.2.8 that executes a group of procedures before continuing with the rest of the workflow which executes further mappings.
I have a java stored procedure that must be executed daily to produce text files of securities prices to be loaded into a datawarehouse. The Oracle JVM does not run multi-threaded code in stored procedures, so to speed up the acquisition of the text files, I run 40 simultaneous OEM jobs against the stored procedure to produce a de facto 40-threaded process. This works well, but is not integrated into the workflow to load the text files into the database.
I would like to integrate the 40 OEM jobs into a process workflow: (1) Run all 40 procedures simultaneously to acquire the text files, (2) on success of all 40, execute the mapping to load the datawarehouse. This would be simple if the text file acquisition could be done in one procedure, but to iterate sequentially over all the securities takes too long - hence my effort to run jobs simultaneously by security groups.
Is it possible to build a process to run a group of procedures simulteously?
Perhaps I must move the datawarehouse loading process that follows the text file acquisition out of OWB by having the java stored procedure itself execute the load.

Many thank for the reply.
If I were to employ a fork to execute the java stored procedures in parallel, I do not understand how to set the next stage in the process, namely the mapping of an external table to the datawarehouse tables, to execute on the condition that ALL the forked processes have finished in success.
For example, page 10-24 of the users manual shows ftp, FDS, and Email activities executed in parallel after a mapping. I need the next activity after the FTP, FDS, and email to execute on success of FTP, FDS, and email as a group - like a join in the workflow. This is the issue.
Rather than use an external process to invoke the java stored procedure, I create a pl/sql procedure wrapper like :
PROCEDURE GET_STOCKPRICES AS
language java name 'prices.getthestockprices();'
to enable me to call the wrapper as a private procedure from OWB.
Currently this java stored procedure uses regular expressions to build 40 different text files of proper format to load into the warehouse. A separate job consolidates each text file into one file that is used as the external table to load the datawarehouse.

Similar Messages

  • Running sqlplus from an OWB process flow

    I have two SQLplus scripts that I need to run as part of a process flow. The flow calls the scripts at different moments, using Unix commands that look like
    sqlplus userid/passwd@sname @startReadseq.sql
    sqlplus userid/passwd@sname @idenTransac.sql
    Script startReadseq.sql drops and then re-creates a sequence that I need to begin at 1 every time. Script idenTransac.sql runs a PL/SQL program on a table. Both scripts have been tested many times from the SQL prompt and they always run satisfactorily there, under the same userid employed by the process flow at runtime.
    However the two calls to SQLplus are ignored by the flow. The sequence is not reset, and the PL/SQL routine doesn't even write its log file. I looked up our forum but apparently there's no article on this topic yet.
    What am I missing or doing wrong? ... thank you for any help.
    Santiago Gomez

    Santiago, Would you help me?
    I have problems in starting sqlplus activity from a process flow. The process flow is very simple ( START - sqlplus activity - END).
    I wanted to start sqlplus and execute some commands in it.
    I set PARAMETER_LIST as @absolute_path_to_script_that_starts_sqlplus@
    and left the other three parameters(RESULT_CODE, SCRIPT, SUCCESS_THRESHOLD) blank.
    Inside the script that starts sqlplus is:
    sqlplus user/password@sid @absolute_path_to_script_that_contains_commands_to_run_in_sqlplus
    The Validation, generation and deployment passed successfully, but the following message is logged during execution:
    SQL*Plus: Release 10.2.0.1.0 - Production on Thursday Sep.27 17:26:25 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    password: ERROR:
    ORA-12560: TNS: protocol adapter error
    please enter user name:
    I've tried using "sqlplus /nolog" and "sqlplus" to avoid verifying user name and password, but I still got the message above.
    I also specified the absolute path to OWB's sqlplus executable and still failed.
    If I execute "sqlplus user/password@sid @absolute_path_to_script_that_contains_commands_to_run_in_sqlplus" in dos command line, it just works fine.
    I'm used to start just the listener and OracleService<sid>, and I also started OracleDBConsole<sid> to wish it works, but it doesn't help.
    It's really gnawing :-(
    Thanks in advance.
    My environment is Windows XP, Oracle 10.2.0.1.0, workflow server 2.6.4, OWB repository 10.2.0.1.0 design center 10.2.0.1.31

  • How to run procedure in Process flow

    Hello,
    I have a small procedure which I want to run in between two different mappings. I want to achieve it in process flow.
    I had understanding that this can be done using transformation but didn't had much success.
    Please suggest.
    Thanks

    You are correct that this is done with a transformation in the process flow, and this is the way to do it.
    What kind of error message did you get?
    Was it something with the deployed location for the transformation not being set?
    If thats the case, in the design center, mark the process flow and right click, then choose configure. Find the transformation and set the location for where the procedure is deployed.
    Ragnar

  • Mapping is not run after adding to existing Process Flow

    I am about to scream.
    I have a process flow that has been running fine.
    I added a mapping to the existing process flow, deployed the process flow, and now when I run the process flow it will not run the new added mapping.
    What gives? I am going to recreate the process flow, but I will not recreate a new process flow everytime I add a mapping to it.
    What am I doing wrong.
    thanks for any help.
    greG

    Oleg,
    Thanks so much for all the help. I read the other posts and checked my mapping but nothing helped.
    I had to put a transition line directly from the fork to my new process and it worked.
    I think it was kind of a logic error on my part.
    I forgot had all my maps that were called from the Fork just going straight to either Error Warning or Success endpoints.
    I tried to add another process after one of the mappings.
    I forgot that to do that I would have to "OR" up all the transitions coming from the forked maps.
    Then proceed from there.

  • Run/Schedule HANA Procedure via Process Chain or Similar - BW on HANA

    Hello Experts,
    We have BW 7.4 on HANA database(rev 74). We are working on mixed scenario approach.
    We have few of the stored procedure in HANA. We want to schedule it.
    Is there any way to schedule it via BW process chain or any similar thing?
    Thanks in advance.
    Regards
    Rakesh

    Hi Rakesh,
    there is already a nice blog post which describes one way to integrate your stored procedures in a process chain: How to schedule SAP HANA procedures by using SAP BW Process Chains
    As Lars said. If you do not need the process chain integration you can use the XS Jobs: Scheduling XS Jobs - SAP HANA Developer Guide for SAP HANA Studio - SAP Library
    Best regards,
    Florian

  • Cannot deploy process flow package specification from file

    Hi,
    we are using owb 11gr2 on linux. We successfully managed to deploy mappings and tables into a specification file, and then deploy from that file into the target database (RAC). But when we try to deploy a process flow package we run into an error:
    A process flow package can be deployed to a specification file. But a deployment from that specification file fails with the error: " OMB05623: Cannot deploy specification from file. Exception follows. nulll"
    ### SETUP
    set CONN_DESIGN "xxx"
    set CONN_TARGET_DESIGN "yyy"
    set CONN_TARGET_RT "xxx'"
    set DIR "D:\\tmp"
    set RELEASE "V0_2"
    set file "$DIR\\$RELEASE"
    set plan "FILE_DEPLOY_$RELEASE"
    ### Deployment via control center: works!
    OMBCONNECT $CONN_DESIGN
    OMBCONNECT CONTROL_CENTER $CONN_TARGET_RT
    OMBCC '/KLINGEL_DWH'
    OMBCREATE TRANSIENT DEPLOYMENT_ACTION_PLAN '$plan'
    OMBALTER DEPLOYMENT_ACTION_PLAN '$plan' ADD ACTION 'PF_TEST' SET PROPERTIES (OPERATION) VALUES ('REPLACE') SET REFERENCE PROCESS_FLOW_PACKAGE '/KLINGEL_DWH/WF_DWH/PF_TEST'
    OMBDEPLOY DEPLOYMENT_ACTION_PLAN '$plan'
    OMBDISCONNECT CONTROL_CENTER
    OMBCOMMIT
    OMBDISCONNECT
    ### Deployment via specificatin file: fails!
    OMBCONNECT $CONN_DESIGN
    OMBCONNECT CONTROL_CENTER $CONN_DESIGN
    OMBCC '/KLINGEL_DWH'
    OMBCREATE TRANSIENT DEPLOYMENT_ACTION_PLAN '$plan'
    OMBALTER DEPLOYMENT_ACTION_PLAN '$plan' ADD ACTION 'PF_TEST' SET PROPERTIES (OPERATION) VALUES ('REPLACE') SET REFERENCE PROCESS_FLOW_PACKAGE '/KLINGEL_DWH/WF_DWH/PF_TEST'
    OMBDEPLOY DEPLOYMENT_ACTION_PLAN '$plan' AS SPECIFICATION TO '$file.xml'
    OMBDROP DEPLOYMENT_ACTION_PLAN '$plan'
    OMBDISCONNECT CONTROL_CENTER
    OMBCOMMIT
    OMBDISCONNECT
    OMBCONNECT CONTROL_CENTER $CONN_TARGET_RT
    OMBDEPLOY SPECIFICATION FROM '$file.xml'
    ### OMB05623: Deployment von Spezifikation aus Datei nicht möglich. Exception folgt. null
    ###OMB05623: Cannot deploy specification from file. Exception follows. nullIf we use the operation DROP it works. But REPLACE and CREATE do not work.
    We get the error regardless whether the code is executed as an expert or on the command line at a windows client.
    Does anyone knows a workaround?
    Deployment via a specification file is a must due to license and architecture requirements.
    Thanks,
    Carsten.

    Its woked fine for me for OWB 10.2.0.4 .... some steps are missing from code like
    when you are connecting again it should be
    OMBDISCONNECT
    OMBCONNECT CONTROL_CENTER $CONN_TARGET_RT
    OMBDISCONNECT
    OMBCC '/KLINGEL_DWH'
    OMBCONNECT CONTROL_CENTER $CONN_TARGET_RTI think you can try the same on different system .
    Cheers
    Nawneet

  • SQL PLUS In Process Flow

    Hi
    Im Trying to include run a sql script thru Process flow.
    Am giving the connection specification as
    /oracle/oracle10/bin/sqlplus schema_name/password@DB
    followed by the copy command...
    While executing am getting the error as
    SP2-0306: Invalid option.
    Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]
    where <logon> ::= <username>[<password>][@<connect_identifier>] | /
    SP2-0306: Invalid option.
    Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]
    where <logon> ::= <username>[<password>][@<connect_identifier>] | /
    SP2-0306: Invalid option.
    Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]
    where <logon> ::= <username>[<password>][@<connect_identifier>] | /
    SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
    Can anyone help on this?
    Regards
    Ela

    you cannot put the copy command (or any commands) after the user/pass
    make a sql script with your copy command
    run_copy.sql:
    copy...
    exit
    [eof]
    sqlplus user/pass@db @RUN_COPY

  • FI Functional Audit questionnaire procedure and  process

    Hi Friends
    Pls provide me the information or related documentaion for FICO Audit Questionaire procedure and process flow
    Thanks in advance
    Srini
    Edited by: Srinivas A on May 8, 2009 5:07 PM

    Hello,
    http://www.auditnet.org/sapaudit.htm
    Hope this will good resource for you.
    The is a free site providing the information on audit. You can register and go throgugh the materials.
    Regards,
    Ravi

  • Error in process flows

    Hi,
    I can't get rid of the following error when running my mappings through a process flow:
    "connection reset by peer" .... result is that the mapping ends.
    It happens when 7 mappings run parallel (forked in OWB).
    This error particulary happens during the first 2 to 3 times after deploying a changed process flow.
    We use OWB 9.2.4 on database 9i rel2 database.
    Anyone familiar with this message? Any workarounds?
    The message is without any ORA or PF number.
    Thanks in advance,
    Cees

    I have found this problem myself,
    the only workaround I found is to not run more that 5 mappings in parallel.
    I speculate that this is caused by the amount off cursors that are opened to run everything in parallel,
    If so, you might try to increase the parallel settings of your database.
    cheers
    Robbert

  • When a process flow activity takes a long time to run.

    Hello,
    I have a process flow activity that sometimes takes a long time to run so that the process flow never ends. Is it possible that I can set the activity so that during a certain time that this has not been executed automatically flow process to continue?
    I'm Using Oracle Warehouse Builder 11g on Windows Server 2003 R1.
    Greetings and thanks.

    What I've done in the past is just use a small polling procedure (PL/SQL) and a conditional transition in the process flow, depending on what the proc returns (Continue or Fail) then the flow of control in the Process is changed.
    I think the key also is to not have too much paralellism going on too, that way it's easy to streamline the PF and remove slow moving processes to a more linear path (stopping bottle necks on your logical AND).
    Edited by: NSNO on Apr 29, 2010 2:31 PM

  • Selective run in process flow

    Hi all,
    Can i run the process flow selectively? For example i have 10 activities in a process flow. I want to run only 3 of them when the process flow execute. is it possible to do? if possible then how can i do this? plzz help.
    Thanks & Regards,
    Sumanta

    RE: have one doubt similar to this.
    I defined the processflow. It has lets say 10 activities.
    It ended up with error due to some error at 3rd activity. I would like to continue from 3rd activity withou doing the same process with the first 2 activities.
    Can we do this?
    Yes, you just need a way for a current run to be able to check to see if the previous run completed as part of the code mentioned above to test for a "need to run this time" condition.
    How to do that? Well, you could log to your own tables in standardized pre- and post-mapping procedures so you could check your own tables to see what ran successfully last time and not run them this time if the whole process flow did not complete.
    Or, you could write code to mine the Runtime Repository views such as all_rt_audit_executions, all_rt_audit_map_runs, etc. to do the same thing.
    The advantage over using your own tables is that you can engineer simplicity of logic, and also the runtime repository won't give you what you want if someone set the audit level to "none" for a given run.
    I would also recommend including a variable in the process flow that is referenced by your conditional code which allows you to force a total rerun in cases where you want to do a full rebuild regardless of how the last run went.
    That is how I do it, anyway. My process flows will restart automatically at point of failure on a subsequent run without any need for operator intervention besides calling to start it.
    Mike

  • How to run an OWB 11gR2 process flow using OEMS Jobs?

    How to run an OWB 11gR2 process flow using OEMS 11g Jobs?
    In other words iam trying to create an Oracle Enterprise manager job for scheduling and running an OWB Process flow.
    Can any one of you please route me to a documentation for the same,or enlist the steps involved?

    Hi,
    look at OWB API Reference (it is of 11gR1 OWB release but you can apply this procedure to OWB11gR2 as well)
    http://download.oracle.com/docs/cd/B28359_01/owb.111/b31279/api_4sqlforjobs.htm#BABEBGHA
    Regards,
    oleg

  • Spawning off process flow that runs independent

    Is there a way to setup the warehouse builder to spawn off another process flow that the first process flow will not depend upon waiting for the second to complete before moving on.  I presume I could right a stored procedure that schedules a job that calls the other process flow but is there a way built into the builder that would allow me to do this?

    Hi
    If you have any map inputs make sure they are also declared in the processflow map - you basicly need to bind them.
    You probably need to investigate from the beginning to understand your result of incoherent data.
    What I would to first is.
    1. Generete an intermediete code - choose your table as outgroup.
    2. Review the code - are there any loading hints ?
    3. Debug the map
    Check your locations.
    If everything seems right then the problem should lay on your workflow manager.
    Remember that the workflow manager has only one namespace, so watchout for mapping name. I had strange executions on my PF because one of my maps had a "½" in the name.
    Check the settings of the map - if you have enterd a set based run in your map and a row based run in the processflow.
    Remember the setting in the processflow is the "superior" one
    Just ideas what you can do.
    Cheers

  • Can I change a process flow at run time??

    Hello everybody,
    I work in Oracle BPMS 11.1.1.5. I need to change a process flow at run time due to changes in the business logic, I mean add, delete and modify tasks, navigation flow, etc. I know business rules can be modified using Oracle BPM Composer, but I couldn't find the way to modify the process flow. I have seen other BPMS, like BizAgi, for ex. that can do that. Do Oracle BPMS have that functionality? Please I need it a lot!!!!
    Regards and thanks in advance,
    isabelbernely

    Hi
    As JonPetter mentioned, you can get this and preferably get only from Support. I hope you have some license if you going to prod with this. Use that and if possible talk to your sales guy and create a support account. Then request the feature pack. The thing is, if we put it in some public shared location, it is the violation of using the oracle product. Unless someone takes risks they may upload but still its not advisable.
    Sorry
    Ravi Jegga

  • How to get the package name of a procedure used in a process flow activity

    Hi all. I'm on OWB 11.2.0.2.0.
    When I used a packaged procedure or function in a mapping operator, I can find out the package.program_unit name by getting the operator's FUNCTION_NAME property. For example,
    OMBRETRIEVE MAPPING '$mapName' OPERATOR '$operName' GET PROPERTIES (FUNCTION_NAME)
    But when the same is used in a process flow activity, I can't find a property name that will give me the same information. I can get the BOUND_NAME, it does not tell me the package name. It must be stored in the activity properties because when you pull up the Synchronize dialog for the activity, it knows the package name.
    Is there a way to get this via an OMBRETRIEVE?
    Thanks.

    ANA, this is exactly what I needed. Thank you so much. I saw REFs also in the OMBRETRIEVE MAPPING/OPERATOR syntax, but went cross-eyed trying to figure out if I could use the same there. The closest I found was GET BOUND_OBJECT.
    Thanks again!

Maybe you are looking for

  • Backup problems with external hard drive

    I bought a WD passport external hard drive and copied my itunes library onto a file there. I re-set the location of the library on itunes to the drive on the external hard drive. So far I have not deleted anything from my computer hard drive. However

  • How to set new hostname

    Hi Experts Right now my solaris box have a hostname= unknown. I want to change the hostname to myhost. My system takes the ip from the DHCP server. I did try the following changes to set the new hostname But it doesn't work. I changed the host name i

  • Failed to start ASM instance "+ASM1" on node "rac1"

    I have a problem, because when I start RAC and write command crs_stat -t column State have 2 wrong parameter.. Name Type Target State Host ora.....CRM.cs application ONLINE ONLINE rac2 ora....db1.srv application ONLINE ONLINE rac2 ora.devdb.db applic

  • Can you open Garageband '09 files in Garageband '11?

    I've been wondering whether you can open a song made in Garageband '09 in Garageband '11? I want to know before possibly buying iLife 11, since the last time I had a Garageband update I could not open any songs made in previous versions (which frustr

  • PacMan and His Many Friends (Ghosts)

    Well, my friend and I are working very diligently on a Pacman game and had it working perfectly... with just PacMan. We have never really explored or used threads, and have only used buffering sporadically. So we decided to use Threads on this projec