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
Similar Messages
-
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 ????
ThnksThe 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 -
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 -
Scheduled process flows are not running automaticaly-OWB database clonning
What I did:
1. Cloned the entire OWB repository database from live (bidb01.bh.xyz.com) server to new (green1.bh.xyz.com) server.
****** Source New
Physical Hostname bidb01.bh.xyz.com green1.bh.xyz.com
DB Logical Hostname xyzbidb bidb-lh
Service Name BIPROD BIPROD
Listener Port 1521 1521
Oracle Home of RDBMS /app/oracle/home/product/10.2.0 /orabidb/oracle/product/10.2.0
Oracle Home of OWB /app/oracle/home/product/10.2.0/owb /orabidb/oracle/product/10.2.0/owb
2. Followed the Metalink Note 434272.1 (How To Update Warehouse Builder After A Database Cloning)
Issue:
Before doing the step-2, every time we put the new database up the normal process flows which run every day (10 AM, 1 AM , 2 AM , 2 PM, etc.) got executed on the production environment and hung the original processes that are being run on the production environment.
After following the note 434272, scheduled process flows in production is working fine but in the new server it is not at all working.
Could anyone please help me to fix this?
Edited by: Padmanaban G on May 7, 2010 5:15 PMThe issue was resolved by renaming the workflow. What is learned here is, we should not have same workflow name for two different workspace.
-
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 -
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 -
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 KevinDear 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 -
Problems scheduling process flow
Using OWB I have create a number of mappings and also a process flow using the defined mappings. All the mappings and the process flow are successfully deployed and can be executed without problems from Deployment Manager. I can even successfully execute my process from OS command line using the sqlplus_exec_template.sql file :
sqlplus vlad_proiect/vlad@proiect @F:\Oracle\OraWB92\owb\rtp\sql\sqlplus_exec_template.sql vlad_runtime ORACLE_WORK_FLOW PROCESS INCARC "," ","
where :
vlad_proiect/vlad my user name and passwd
proiect my database SID
vlad_runtime is the Runtime Repository owner
ORACLE_WORK_FLOW is the location of the process flow
INCARC is the process name.
I tried to do the same thing using OEM. I followed the example
http://otn.oracle.com/products/warehouse/htdocs/oem_scheduling_viewlet_swf.html
and the indication from WB User guide chapter Scheduling Mappings and Process Flows (13-19) but the scheduled job fails with the following reason :
VNI-2015 : The Node preferred credentials for the target node are either invalid or do not have sufficient privileges to complete the operation.
On Windows platforms, the Node credentials specified for the Windows target should have the "Logon as a batch job" privilege.
I have created the job as follows:
Tab General
Job name: TEST
Selected target: Proiect
Tab Tasks
Tasks: Run SQL*Plus script
Tab Parameters
Parameters: vlad_runtime ORACLE_WORK_FLOW PROCESS INCARC "," ","
Override preferred credentials: checked
User name: vlad_runtime_acc the Runtime Repository access user
Password: vlad the Runtime Repository acc user passwd
I have imported the script oem_exec_template.sql
And in the Preferred credentials (from Configuration->Preferences->Administrator preferences) I set :
Database : Proiect with user vlad_proiect and my passwd.
Node : localhost with user vlad_runtime and his passwd.
Somewhere something is wrong set (or not set at all?) or ?Razvan,
When OEM executes a scheduled job, it will logon to the node (i.e. your machine) as the user that is specified in the preferred credentials of OEM. That user (provided there is one... which is not necessarily default) is an operating system user and must have the 'logon as batch job' privilege. You can set this option (on Windows 2000) by going into control panel, administrative tools, local security policy, local policies, user rights assignment. Look for 'logon as batch job' and make sure the user being used to logon to the node has the privilege.
This setup is actually provided in the installation guide as well.
Hope this helps,
Mark. -
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 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,
HarshaCreate 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;
/ -
How to schedule Process Flow in OWB10gR2 ?
Hi,
I have a mapping and a corresponding process flow that has the mapping within. Both the mapping and process flow are deployed successfully and they also execute successfully when executed from control center.
Now I want to run the process flow daily at 4 am in the morning. I have created a schedule and defined the parameters. Then for the process flow, I have added the schedule to the "Referred Calander". Then in control center I got a new object with _JOB as suffix. I deployed that as well and that was successfull. This implies that I have now a job that is scheduled to run daily at 4 am.
But the next day when I checked the target table that the mapping (wrapped in the process flow which in turn was scheduled to run at 4 am ) was supposed to insert some records, there was no record at all !!! Seemed to me that the job was not kicked off at all at the specified time.
I am using --
OWB client version : 10.2.0.1.31
OWB repository version : 10.2.0.1.0
Oracle Workflow Version : 2.6.4.0.0
Database version : 10g Enterprise edition release 10.2.0.1.0
Does anyone have any idea how do I make this arrangement running?
Regards,
SwagataChino -
Once you start the job, do you have to leave the "Job Details" window open in order for teh scheduled task to run?
thanks for the help ....
txb -
Hi
I'm having trouble setting up a schedule in OWB, can anyone help?
I'm using OWB 10.2.0.3, I've created a Schedule and Process Flow, I've configured the Process Flow so that the REFERRED SCHEDULE property is set. I've redeployed the process flow. So far so good?
I presume I now need to deploy the scheduled job (so I can start it?), however when I try I get error:
ORA-27475: "BIR_ROLAP.PF_SS_SCHEDULE_JOB" must be a job
ORA-06512: at "SYS.DBMS_ISCHED", line 178
ORA-06512: at "SYS.DBMS_SCHEDULER", line 544
ORA-06512: at line 1
PF_SS_SCHEDULE_JOB
Create
Error
RPE-02183: Task runner procedure PPF_SS_SCHEDULE_JOB is not valid.
Am I missing a step?
Cheers
SiCheck if the foll is done:
say there is a process flow 'PF1' and in this process flow click on configure and set the referred calendar to the new schedule that you have created.
also make sure the identification and evaluation locations are setup for the process flow.
Deploy the process flow.
This works for me. -
Hi All,
can any of you have sample process flow for Creating a work schedule.
Just to show how it floows,not based on client reqt's.
Could any one of you help me out.
Thanks,
LasyaHi Lasya...
Here is the process...
1. Public Holiday creation (Holiday classes are important here...b, 1, 2, 3 to 9)
2. Assigning them to Holiday Calendar
3. Creating break schedule...for the break timings
4. Creating Rules for variants for special cases like half days and PH's
5. Creating a Work Schedule...to define the working times of an employee
6. Creating a Period Work schedule....to define the week with the help of work schedules
7. Defining selections rules...to define the day (Day types,,,b, 1, 2, and 3 to 9)
8. Defining Groupings...to define diff emp and diff personnel areas
9. Generating the work schedules to get the calendar for employee/s (either by manual process or batch)
Regards
Vijay -
OWB Process Flow and Mapping Differences
IHAC where we have a mapping which produces two different operations depending on how the mapping is called from the Deployment Manager.
When you call the mapping as an individual job an INSERT is performed.
However, when the SAME MAPPING is called as part of a process flow a MERGE is performed instead.
The test data for each case is exactly the same and the result set at the end of the mapping, using either, method is the same.
Has anyone come across this sort of behaviour before ?
I would be grateful to know why this is happening and should I be concerned about it given the fact that the outcome is the same in both cases.
Thanks in advance
ChrisHi Christopher,
This is funky. I have not seen this before... The only thing I can think of is that in the process flow someone changed the runtime parameters for the mapping, doing a set based execution while the map itself is doing this row based...
Should not happen otherwise...
Jean-Pierre
Maybe you are looking for
-
i downloaded an adobe flash update and my computer after next logon got a blue screen. I could only start in safe mode and until uninstalling the flash player could i start in safe mode with networking. i cannot open any microsoft products now. I g
-
i have created a report and it is working fine but i need a simple modification there. my report is group left report and select bu,empcode,empname from afpftran here is the query.and "bu" is the group field.i want set idividual "bu" to be seen in di
-
Crashes iPhoto 8.1.2 when starting SlideShow
Background During last two days I have tried to find a solution. In vain so far. When highlighting an event and then pressing the button Slideshow the screen goes black for a while and the Crash reports appears. *Previous Actions* iPhoto Library Mana
-
We live in a rural area where we can not yet get high speed (except Hughes...too expensive--Wild Blue sold out of bandwidth--no one close enough for wireless yet). My dialup worked fine on my Mac until I attempted to setup a mixed Mac/PC 'network' by
-
Error in creating connection of worklist in custom webcenter application.
Hello All, I am creating a custom webcenter application and i need BPEL worklist connection to be set up in that application.I have created the connection from Jdeveloper as:- In ResourcePallete-> new -> connection->worklist and has given the worklis