Tools for running process flows and mappings
The operations/production area is responsible for running process flows and mappings in a day by day base. As developer, I need to implement a solution that allow them run these artifacts. For this purpose, is there any tool apart from Control Center ????
Thnks
The scripts you mentioned (sqlplus_exec_background_template.sql and sqlplus_exec_template.sql) can be used for command line execution of mappings.
We do not run these in Oracle Workflow, as we already have an enterprise scheduling platform, Redwood Cronacle in our case. (Also one finds AppWorx and others in this area, see e.g. http://www.bmc.com/USA/Corporate/attachments/BMC_Article2.pdf)
Regards, Erik Ykema
Similar Messages
-
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 YouHi,
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 -
Problem Running Process Flow When Database Objects Deployed Outside of OWB
Hi
I am having a few problems running process flows that I'm deploying through OMB.
My set up is as follows:
All database updates are done outside of OWB (for version control purposes).
Each object within OWB is exported to an MDL file, which is then imported into the production repository using an OMB Script.
Once everything has been imported into my production version, I'm then deploying the process flows from within the OMB script.
When I then go to run the process flow, I get the following error ...
RPE-02075: Oracle Workflow failed to process the execution request for Activity LOAD_COUNTRY_PF:LOAD_COUNTRY. This may be because dependent objects have not yet been deployed.
I can see through the Control Center, that the status of all the objects that the process flow is going to use are set to having a Design Status of 'New'. So obviously OWB doesn't realize that these objects already exist in the database, which is why the process flow errors.
Is there any way around this? Can I somehow set the Design Status of all the objects to 'Unchanged' through OMB? Is there a way to fool the process flow into thinking that the objects do exist? Can I run the process flow outside of OWB?
Any help would be appreciated.
Thanks
LiffeyHi Liffey,
Is there any way around this?
Can I somehow set the Design Status of all the objects to 'Unchanged' through OMB?
Is there a way to fool the process flow into thinking that the objects do exist?of course you must deploy mappings before deploying processflow
and as I know there is no legal method for avoiding this.
Regards,
Oleg
PS. Look at this thread [Deploying without Deploy|http://forums.oracle.com/forums/thread.jspa?messageID=2655726�]
It seems for OWB10gR1 exists method for manual modification OWB runtime repository tables for mark mappings as deployed -
Problem in running Process flow
Hi,
I’m bit new to OWB. I made mapping which I deployed successfully. I can run through control center and it works fine (it just fills a table). However when I made the process through process flow and after its validation , tries to start it gives me error RTC-5170: The selected objects do not require deployment as they are all up to date in the Control Center, which is followed by RTC-5006 and obviously no data generated in the table. How can I pass this error? Secondly I tried to schedule this, firstly it doesnot ask for the process flow during schedule, secondly even from schedule the map doesnot run.
Appreciate any help to run the process flow.
Regards
YasirIn the process flow validate and generate the process flow. then go back to design center and go one step above to process flow package module and right click and deploy the process flow package. once the deployment is successfull then go back to the process flow and right click and start the process flow.
This should work. -
Running process flow from sqlplus
hi everyone,
using sqlplus_exec_template.sql to run process flow.
but message keeps appearing that task is not found
I have an oracle workflow repository on another server.
what should I use as parameters?
for example location name?
thank you
owen veenemanHi
If you can create the Process Flow code, you can deploy and execute from SQLPLUS as follows.
1. First you have to compile the package from SQLPLUS into you target get schema. For example. SQL>@c:\package.pls.
2. Then find out the prarmeter from function main of the package. Write a simple code as follows and run it from SQL. Just substitute whatever applicable to you.
declare
V_PROCESS_CODE VARCHAR2(10);
V_FREQUENCY_CODE VARCHAR2(1);
V_RETCODE NUMBER(10);
V_WB_RT WB_RT_MAPAUDIT.WB_RT_NAME_VALUES;
begin
V_PROCESS_CODE := 'CF_SUMM;
V_FREQUENCY_CODE := 'D';
v_retcode := DM_CASHFLOW_SUMM_MAP.main(V_PROCESS_CODE, V_FREQUENCY_CODE, V_WB_RT);
dbms_output.put_line(v_retcode || ' Retcode.');
end; -
Creating variables in Process Flows and using thse variables in the filter
Hi,
I am new to OWB and in learing stage. Need to information.
*1. as to how pass/create/use variables to OWB mapping ?*
*2. Creating variables in Process Flows and using thse variables in the filter operator of the OWB mapping?*
*3. Other mechanisms of how to create/use variables within OWB mapping itself ?*
can you please provide the above details and guide me / help me in this regard.
Thanks,
skms.1. Add parameters to your mapping using the MAPPING INPUT PARAMETER from the pallette.
2. Add parameters to the START operator in the process flow. Bind the process flow parameter to the Mapping parameter.
3. May be appropriate to use CONSTANTS instead of parameters.
Regards
Si -
In SMO there is any option for run both ExecuteNonQuery and ExecuteWithResults.?
In SMO there is any option for run both ExecuteNonQuery and ExecuteWithResults query at simultaneously?
Hello,
First, in a client session nothing can run "simultaneously", all statements are executed in sequence. And what should
it be good for to run ExecuteNonQuery +
ExecuteWithResults; both executes the SQL batch, the only difference is, ExecuteWithResults returns a result?
But if you like, start one by one.
Olaf Helper
[ Blog] [ Xing] [ MVP] -
I recently bought an imac but then I got photoshop and it didn't meet the specs. So I was wondering wich computer/laptop would be the best for running Photoshop CC and After Effecs CC for under 700 Dollars.
I recently bought an imac but then I got photoshop and it didn't meet the specs. So I was wondering wich computer/laptop would be the best for running Photoshop CC and After Effecs CC for under 700 Dollars.
-
Process Flow and Passing Parameters to Mappings
I am missing something.
I have an Input Parameter on mapping Strategy_Start.
I want to pass a value from my Process Flow to the Mapping Strategy_Start that is in the Process Flow.
I have tried to create a Parameter on the Start that has a Literal value and bind that to the Strategy_Start Mapping.
That didn't work.
I tried to create variable and pass the value to the Strategy_start,
That didn't work, I got an error about binding to a out literal.
What am I missing.
I could not really find steps in Documentation for this.
I am using 11gr1
thanks for any advice or help.
greGOk,
For Literal Expressions It was easier than I thought.
In my Process Flow for the mapping that has a parameter,
I just set the value of the Parameter when looking in Explorer.
I thought I had to create a parameter or a variable and then pass that into the value. That is why it was yelling at me about
can't use a constant value as a parameter in value.
If this is not the way let me know, but it appears to be ok now.
thanks
greG -
Hi experts, does a process flow cannot be used if we dont have oracle workflow?
If yes, any of you know the alternative ways to run a schedule mapping sequentially?
Currently i am running schedule from OWB (Control center manager). And i am not satisfied because the lack of Log / information regarding the job execution. Is there a way to get more detail schedule job logs???
Thank you in advance guys...Oracle is pretty smart when it comes to those things, Im sure the table is not lock because one session is DML:ing it and one is querying it. You can get a deadlock when the sessions are trying to DML for the same row, because update/insert/delete is based on row lock, not table lock.
What you can do to test these kinds of long operation mappings is to generete the intermediate code from the map - open the map editor and click on genereate - choose intermediate from the dropdown list and click on your target table. Copy that code and run it from i.e toad, do the same thing instantly for the other map and you will found out if your sessions are locking each other.
Because the owb map is bascly configured in a way that it most of it is unnecessery when your are not running it thrue the repository, like I said. Try to run it they way it is - else create a new one by the code generated in the intermediate mapping.
Cheers -
Error time of running process flow.
Hi All,
I am new to datawarehousing . I have installed 11gR2 on linux machine without any error .
Now i have imported all object of ocdm_sys and ocdm_sample_sys .Now when i am trying to start the process flow .
Its throwing me error RTC-5190 There is no location associate with current module operation abandon .
Can u please tell also the steps to running the ETL process . I am trying using ocdm_sample_sys user with all sample data.
Please tell me the steps i need to do after installation to run ETL process also like any changes need to be done.?
At the time of workflow creation i got this error is that above error related to this ..
WorkflowCA: Workflow component container deployed in OC4J: /u01/app/oracle/product/11.2.0/dbhome_1/jdk/bin/java -Doc4j.autoUnpackLockCount=-1 -Doracle.security.jazn.config=/u01/app/oracle/product/11.2.0/dbhome_1/oc4j/j2ee/OC4J_Workflow_Component_Container/config/jazn.xml -Djava.security.properties=/u01/app/oracle/product/11.2.0/dbhome_1/oc4j/j2ee/home/config/jazn.security.props -jar /u01/app/oracle/product/11.2.0/dbhome_1/oc4j/j2ee/home/oc4j.jar -userThreads -config /u01/app/oracle/product/11.2.0/dbhome_1/oc4j/j2ee/OC4J_Workflow_Component_Container/config/server.xml
WorkflowCA: Executing :/u01/app/oracle/product/11.2.0/dbhome_1/jdk/bin/java -jar /u01/app/oracle/product/11.2.0/dbhome_1/oc4j/j2ee/home/admin.jar ormi://v-agilent29:6041 oc4jadmin welcome -application WFALSNRSVCApp -testDataSource -location jdbc/WorkflowDS -username OWF_MGR
WorkflowCA: :nullError: Could not connect to the remote server. Please check if the server is down or the client is using invalid host, ORMI port or password to connect: Connection refused for app:WFALSNRSVCApp
WorkflowCA: Executing: /u01/app/oracle/product/11.2.0/dbhome_1/jdk/bin/java -jar /u01/app/oracle/product/11.2.0/dbhome_1/oc4j/j2ee/home/admin.jar ormi://v-agilent29:6041 oc4jadmin welcome -application WFALSNRSVCApp -installDataSource -url jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=v-agilent29)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ocdm))) -username OWF_MGR -password ->pwForOwfMgr -className com.evermind.sql.DriverManagerDataSource -location jdbc/WorkflowDS -xaLocation jdbc/xa/WorkflowDS -ejbLocation jdbc/WorkflowDS -connectionDriver oracle.jdbc.driver.OracleDriver
WFCA OUT: Error: Could not connect to the remote server. Please check if the server is down or the client is using invalid host, ORMI port or password to connect: Connection refused
WorkflowCA: Exit Val: 2
WorkflowCA: Created a redirected data source with application WFALSNRSVCApp :
WorkflowCA: Executing :/u01/app/oracle/product/11.2.0/dbhome_1/jdk/bin/java -jar /u01/app/oracle/product/11.2.0/dbhome_1/oc4j/j2ee/home/admin.jar ormi://v-agilent29:6041 oc4jadmin welcome -application WFMLRSVCApp -testDataSource -location jdbc/WorkflowDS -username OWF_MGR
WorkflowCA: :nullError: Could not connect to the remote server. Please check if the server is down or the client is using invalid host, ORMI port or password to connect: Connection refused for app:WFMLRSVCApp
WorkflowCA: Executing: /u01/app/oracle/product/11.2.0/dbhome_1/jdk/bin/java -jar /u01/app/oracle/product/11.2.0/dbhome_1/oc4j/j2ee/home/admin.jar ormi://v-agilent29:6041 oc4jadmin welcome -application WFMLRSVCApp -installDataSource -url jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=v-agilent29)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ocdm))) -username OWF_MGR -password ->pwForOwfMgr -className com.evermind.sql.DriverManagerDataSource -location jdbc/WorkflowDS -xaLocation jdbc/xa/WorkflowDS -ejbLocation jdbc/WorkflowDS -connectionDriver oracle.jdbc.driver.OracleDriver
WFCA OUT: Error: Could not connect to the remote server. Please check if the server is down or the client is using invalid host, ORMI port or password to connect: Connection refused
WorkflowCA: Exit Val: 2
WorkflowCA: Created a redirected data source with application WFMLRSVCApp :
WorkflowCA: Executing: /u01/app/oracle/product/11.2.0/dbhome_1/jdk/bin/java -Djava.security.properties=/u01/app/oracle/product/11.2.0/dbhome_1/oc4j/j2ee/home/config/jazn.security.props -Doracle.security.jazn.config=/u01/app/oracle/product/11.2.0/dbhome_1/oc4j/j2ee/OC4J_Workflow_Component_Container/config/jazn.xml -jar /u01/app/oracle/product/11.2.0/dbhome_1/oc4j/j2ee/home/jazn.jar -user oc4jadmin -password welcome -adduser jazn.com pwForOwfMgr <WFCA WF PASSWORD>
The specified user already exists in the system.
WorkflowCA: Created obfusticated password for redirect datasource:
WorkflowCA: Executing: /u01/app/oracle/product/11.2.0/dbhome_1/jdk/bin/java -jar /u01/app/oracle/product/11.2.0/dbhome_1/oc4j/j2ee/home/admin.jar ormi://v-agilent29:6041 oc4jadmin welcome -shutdown
WFCA OUT: Error: Could not connect to the remote server. Please check if the server is down or the client is using invalid host, ORMI port or password to connect: Connection refused
WorkflowCA: Exit Val: 2
WorkflowCA: Executed OC4J Admin script to shut down the OC4J instance :
WorkflowCA: Mon Jun 21 18:03:30 IST 2010
WorkflowCA: Workflow Configuration has completed with error.
WorkflowCA: Terminating...
I drop the owf_mgr schema 3 4 times and tried it but still i am getting the error.Hi
If you check out the post here you will see the script sqlplus_exec_template.sql mentioned, this can be used to execute mappings and process flows from the command like;
http://blogs.oracle.com/warehousebuilder/2008/11/using_3rd_party_schedulers_with_owb_1.html
Cheers
David -
Run process flow over database link
Hi guys,
I have two projects here, A and B. Each project has its own process flow, lets say Process A (in project A)and process B(in project B). I need to run process B in process A, so I use the database link, and WB_RT_API_EXEC.run_task function. But when I run the process, I get the following error:
ORA-20001: Task not found - Please check the Task Type, Name and Location are correct.
ORA-06512: at "OWBRTR2.WB_RT_API_EXEC", line 704
does anyone have some idea how to fix this? or any other suggestions for how to do it? thanks.Hi Gowtham,
I am using the following function to send execution details of the process-flow. This process-flow is having 20 mappings. This is working fine.
The cIient requirment is to pass email-IDs from a back-end table(sam_mail_notification) with columns(smtp, from_address and to_address), right now the function is working on static(constant) values.
I had modified the function according to the requirement, can you please have a look at the function, and tell me is it correct. Because the values should come from database table. will this function work.
I got the following error, while deploying,
ORA-06550: line 55, column 1:
PLS-00103: Encountered the symbol "END" when expecting one of the following:
FUNCTION SEND_SUMMARY1()
RETURN NUMBER
--initialize variables here
-- main body
retval number := 0; --default
crlf CONSTANT VARCHAR2(2):= CHR(13) || CHR(10);
pSender VARCHAR2(30) := '[email protected]';
pRecipient VARCHAR2(30) := '[email protected]';
pSubject VARCHAR2(100) := 'Process REsults for: '||to_char(sysdate,'dd/mm/yyyy');
mesg VARCHAR2(32767);
mail_conn utl_smtp.connection;
cursor getResults is
select AREA.OBJECT_NAME,
AREA.CREATED_ON,
AREA.UPDATED_ON,
aramr.ELAPSE_TIME,
NUMBER_RECORDS_SELECTED,
NUMBER_RECORDS_INSERTED,
NUMBER_RECORDS_UPDATED,
NUMBER_ERRORS,
AREA.RETURN_RESULT,
AREA.EXECUTION_AUDIT_STATUS,
MESSAGE_SEVERITY,
MESSAGE_TEXT
from
all_Rt_audit_executions area,
all_Rt_audit_map_runs aramr,
all_rt_audit_exec_messages err
where AREA.execution_audit_id = ARAMR.execution_audit_id(+) AND
AREA.execution_audit_id = err.execution_audit_id(+)
and
trunc(area.created_on) = trunc(sysdate)
AND AREA.OBJECT_NAME IS NOT NULL AND AREA.TASK_TYPE!='ProcessFlow'
AND area.top_level_execution_audit_id =(select max(top_level_execution_audit_id)from all_Rt_audit_executions
where execution_name = (select execution_name from all_Rt_audit_executions where task_type ='ProcessFlow' and top_level_execution_audit_id =
(select max(top_level_execution_audit_id) from all_Rt_audit_executions)));
Cursor getMailDetails is select
mailhost
pSender,
pRecipient
from sam_mail_notification;
BEGIN
for maild in getMailDetails
loop
mail_conn := utl_smtp.open_connection(mailhost, 25);
mesg := 'Date: ' ||TO_CHAR( SYSDATE, 'dd Mon yy hh24:mi:ss') || crlf ||
'From: <'|| pSender ||'>' || crlf ||
'Subject: '|| pSubject || crlf ||
'To: '||pRecipient || crlf || '' || crlf ||
end loop;
'MAPNAME START_TIME END_TIME ELAPSED SELECTED INSERTED UPDATED ERRORS RESULT AUDIT_STSTUS SEVERITY MESSAGE_TEXT'||crlf ;
for rec in getResults
loop
mesg:=mesg || rpad(rec.OBJECT_NAME,30)||
rpad(to_char(rec.CREATED_ON, 'HH24:MI:SS DD-MON-YY'),20)||
rpad(to_char(rec.UPDATED_ON, 'HH24:MI:SS DD-MON-YY'),24)||
rpad(to_char(rec.ELAPSE_TIME),7)||
rpad(to_char(rec.NUMBER_RECORDS_SELECTED),8)||
rpad(to_char(rec.NUMBER_RECORDS_INSERTED),10)||
rpad(to_char(rec.NUMBER_RECORDS_UPDATED),10)||
rpad(to_char(rec.NUMBER_ERRORS),5)||
rpad(to_char(rec.RETURN_RESULT),8)||
rpad(to_char(rec.EXECUTION_AUDIT_STATUS),10)||
rpad(to_char(rec.MESSAGE_SEVERITY),10)||
rpad(to_char(rec.MESSAGE_TEXT),200)||crlf;
end loop;
utl_smtp.helo(mail_conn, mailhost);
utl_smtp.mail(mail_conn, pSender);
utl_smtp.rcpt(mail_conn, pRecipient);
utl_smtp.data(mail_conn, mesg);
utl_smtp.quit(mail_conn);
return retval;
EXCEPTION
WHEN OTHERS THEN
return 1;
END;
Regards,
Kumar -
OWB 11g Problem in running Process flow
I’ve build a process flow as described in “Getting Started with Oracle Warehouse Builder 11g”. But if I run the process flow I get a warning message “You have to deploy this object before running” followed by the error RTC-5170: The selected objects do not require deployment as they are all up to date in the Control Center.
Therefore I’m not able to run the process flow. What’s wrong? It looks so easy in Getting Started but it doesn’t work.
I’ve found two threads regarding this error from last year in this forum. But there is no solution for OWB 11g.
Has anyone an advice for me?I've successfully installed OWF as described in Installation guide (all components are on the sam server).
But when I deploy a workflow in OWB I get some errors. In the job details
I find ORA-00942 and RPE-02053. It seems that the workflow repository is missing.
Are there additional steps for creating a workflow repository?
Or what is wrong? All installation logs (wf.log and workflow.log) are without errors and with success messages.
Any idea? -
Can we run process-flow from outside OWB
Hi All,
I am scheduling my process-flows daily in night. If any process-flow fails, they will rectify the problems and they want to run the process flow manually, outside own, like SQL.
Regards,
Kumar.Hi Detlef,
I tried to execute the following, I dint get any response and the sqlplus closed automatically. When I saw the execution details no executing had taken palce. And even I tried to execute the command by commenting the exit in the script.
sqlplus RA_OWB1/RA_OWB1@RADEV1 @C:\OraHome_1\owb\rtp\sql\sqlplus_exec_template.sql RA_OWB1 PlatformSchema ProcessFlow SAI_PF "," ","
Is there any external (oracle function), so that I can pass any number of Process-flows as parameters for execution. Client will create a form with a list of check boxes and execute button. when the user selects the check boxes according to his rerquirements and click execute. then all the process-flows should run.
Regards,
Kumar. -
How to run process flow outside owner project?
Hi,
I have two process flows (process_flow_A and process_flow_B) in two different projects (projectA, projectB). Process_flow_A has to be run after process_flow_B is finished. So what I am thinking now is either put process_flow_A in Project B or put process_flow_B in project A. But how to see process flows which are not in it's owner project? Or is there any other ways to do this task?
thanks.It can be done - in a round about way.
You can call a SQLPlus operator. The operator will call sqlplus_exec_template.sql. You can use this script to call your other process flow in the other project.
..owb_home/owb/rtp/sql/sqlplus_exec_template.sql
If you open up the .sql file, you will see examples of how to use it to call mappings, process flows, etc.
Hope this helps..
Maybe you are looking for
-
When I downloaded (on PC) the new 5 it crashed my iPad 2. I worked for two days to get it to stop the malfuction, went to the apple store for four hours, iPad crashed again, got a new one, new iPad crashed when I tried to restore my back up. Down lo
-
The problem is that the phone stopped detecting the sim suddenly Vovi her out and replaced and it worked but it has happened again and no longer detected at all ... the card was cut at the store because it was not microsim format could be this the ca
-
Schedule CR reports to network printer
Hi, I would like to schedule a Crystal Report 2008 to a network printer as destination; we are using BOE XI 3.1 server. In the destination settings of the CrystalReportsJobServer I only can select FTP and E-Mail. Is my undertaking possible without us
-
T-code CO01 to create Production order:error message "No routing found"?
I use t-code CO01 to create Production order.At the first screen I select material 72 and plant HJW1 .At the Header creen,I input the data in the General tab and press return but the sap show the error message "No routing found".But I have create the
-
Problem: The user Graphics resources appears to be invalid
Hi, I have encrypted my boot drive in Lion using FileVault, so now it provides me with boot time login screen (from EFI as I understand), it shows the picture and asks for password. However, at some point, the picture became no longer visible, just a