OWB Schedules
Hi All,
I have created a schedule in OWB by selecting the local time zone and choosing a start time (which is some future time on the same date) and a end time which is greater than the start time and also on the same date. The frequency is set to one time.
I have configured the mapping to use this schedule and have deployed both the mapping and the scheduled job from the control center.
But the mapping does not run in the scheduled interval. Is there something that I am missing ?
Also the documentation mentions a node called calendars where it mentions that default schedule module called MY_CAL_MODULE should be present. I am not finding that as well. Is this due to something that is missed during installation?
If anyone who has worked in OWB shedules please let me know if I am missing out on anything ?
Regards
-AP
Hi,
I remember having a similar problem, but not sure if it is the same as yours. After deploying a process flow, and the associated scheduled job I was expecting it to run but it didn't.
Looking at the job in Grid Controll (or the DB console) showed that the job had indeed been deployed, but it had a "Scheduled date" as "not scheduled". Turned out I had to start the schedule from the Control Centre after having deployed it in order to get it to run
Hope this helps,
Roald
Similar Messages
-
OWB Scheduled job generates infrastructure problem..
Hi everyone,
I'm experincing a strange problem while scheduling a process flow using OWB schedule. The job is created and started fine. But the job throws up an exception of the kind 'Infrastructure Problem' etc when the machine is shut down after I start the job from the Control Center. The oracle enterprise manager shows that the job is scheduled and enabled after the job is started via the Control Center.
Can anyone suggest anything regarding this?
Thanks in advance.
Regards,
SayantanHi Sayantan,
Which machine is being shut down, the design client? If so do you use the control center on that machine?
JP -
Is Oracle Workflow required to execute OWB schedules?
Hi,
I want to create and deploy a schedule in OWB 10gR2 to automatically run my OWB process flow every week. I would like to know
1) Whether I need to install Oracle workflow too in order to execute the process flow as per the schedule created?
2) If not, how does the OWB scheduler work?
3) Also, if the scheduled proces flow terminates due to some error, how do I resume executing it from the point of termination after correcting the error?
Thanks
AmitHi Amit,
1. Is the workflow monitor a standard part of Oracle workflow,or does one need a separate license for it?All parts Oracle workflow (workflow server, workflow monitor, workflow builder) licensed with Oracle database licenses,
so if you buy Oracle database you can use workflow components without any limitations.
2. In your approach, you had mentioned that there should be no transitions for error, but I would like to send an email notification to the DW administrator incase of an error before suspending the process flow.My recomendation is to use additional PL/SQL procedure which will executed periodically (for example every 30 minutes, scheduled with DBMS_JOBS/DBMS_SCHEDULER),
in this procedure you can use query on OWB public view (ALL_RT_AUDIT_EXECUTIONS) or workflow repository views/tables
for identification failed steps/mappings (if you decide to use OWB public view) or "stucked" processflow (if you will use workflow views/tables,
algorithm of identification stucked processflow you can see in workflow PL/SQL package WF_ENGINE, procedure ProcessStuckProcess).
Using post-mapping is more expensive because you need modify each mapping which you want to monitor for fails.
Example of query for identifiaction failed steps (PL/SQL prcoedures and mappings) within period of time datetime1..datetime2 with ALL_RT_AUDIT_EXECUTIONS
select * from ALL_RT_AUDIT_EXECUTIONS where task_type in ('PLSQL','PLSQLProcedure')
and NOT (return_result is null or return_result='OK') and :datetime1<=created_on and created_on<:datetime2
Regards,
Oleg -
Anyone knows about OWB Scheduler
Our Potential client mentioned that they have some OWB Scheduler issue. Realy appreciate if you have any clue about this.
Thanks,there is a list of jdbc drivers at:
http://industry.java.sun.com/products/jdbc/drivers
they have several ms access drivers listed.
also, you can use a jdbc-odbc bridge which allows you to use jdbc to connect to any odbc data source:
http://java.sun.com/j2se/1.3/docs/guide/jdbc/getstart/bridge.doc.html -
OWB 11G R1
11G Source/Target DB
Created a job schedule and set the location to be one of the target locations
Create a one off schedule and scheduled for 10 minutes in the future
Open configuration of a process flow and selected the one off schedule
Re-deployed process flow
deployed schedule
Schedule visible in Control Center in the Scheduled tab
waited - nothing happened
Questions
Does the location of the schedule matter
Is there any DB configuration require to make schedules work?I've noted a feature in the log files that are produced from the scheduled process flows.
The log files created from a process flow executed through "Execution" tab of the Control Center lists all the mappings / sub-process flows run. However the log file created when the same Process flow is executed from the "Scheduler" tab of the control center only shows the last task executed.
I created a situation where a mapping would fail and the process flow would handle the error and end in a controlled manor. The when this process flow was executed the error message was not shown and so the cause of the failure is not visible.
Is not being able to see a executed tasks and error messages a bug or a feature of the scheduler that just reduces usability?
Are there works arounds?
Does anyone run SQL against the runtime repository tables to see log / error data?
Should I just ignore the scheduler feature and use OEM or cron to manage execution?
I would appreciated anyone elses experience or thoughts on the matter.
Cheers
Pavel -
I changed the scheuler timing and deployed it. Now my scheduler does not run.
How do I solve this problem.
Thank you.Check the following points:
- In the mapping or process flow, goes to configure option and verify the calendar options (if the scheduler is correctly associated)
- Go to the execution and schedule windows at control center and check the processes that are running. The scheduler must appear at schedule window with running status and each execution of the schedule must appear at the execution panel. If it doesn't appear, start the scheduler again. -
Hi,
We are using processflows to load the data.I have created mappings and corresponding process flows.
I have to schedule my jobs using owb scheduler.
How can I configure my mappings/process flows to the scheduler.
The scheduler is not asking for any particular mappings/process flow.
Please give me the suggestions.
Thanks,
Venkat1.Define the Scheduler a..
2.Right click the mapping or process flow which ever to schedule
under Configure > Refered Calendar select the schedular name.
3 Deloy the mapping .
4.Deploy the Sechdular then run the scheduler.
It will run according to schedular. -
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 -
Integration of Oracle Workflow with OWB
Hi,
I am using OWB 10gR2. Can you please give me some guidelines on integrating Oracle workflow with OWB? I have to deploy OWB schedules to Oracle Workflow.
Thanks,
PraveenKeep in mind that these are really two different products.
First make sure you have installed workflow (2.6.3 for Oracle10gR1, 2.6.4 for Oracle10gR2 for the TARGET database).
Then create a connection to the workflow schema (default would be OWF_MGR). Then you can start creating your OWF packages using OWB and finally deploy your packages to the newly defined Workflow connection.
On a sadder note, OWF really blows. But that's just me. -
Scheduled Job - clock/time change miscalc
Following the clock change at the weekend for British Summer Time (GMT + 1hr) the Process Flow to run our OWB schedule has the next run date as 30 October 2011!
Usually the schedule runs every 2 hours between 06:00 and 18:00 every day, the last successful run was 18:00 on Saturday.
Versions are OWB 10.2.0.3.33 and Oracle 10.2.0.3.
Is this a known bug, any workaround to avoid in future?
Regards
SiHi,
Yes, its normal since the schedule discovery setting is different from Ad hoc discovery settings.
Explanation :- Ad hoc discovery gives you the option to check the discovery of the network devices on ad hoc basisi and if you like it, then you can get this settings implemented in the schedule discovery too by using the same settings in schedule discovery.
Similary you can check and run different schedule discovery, that means using different options you can run different schedule discovery and then finally select the one which suits as per your network requirements.
Hope it helps,
Many Thanks,
Gaganjeet -
Process flows without Oracle Workflow?
I am using OWB 10.2, running with a 10.2 database. I want to create a new workflow module, package, and flow, and execute it the process flow using the OWB scheduler. The documentation implies that this configuration is possible, but when I create the workflow module it wants an Oracle Workflow connection for the location. I get the feeling that I'm overlooking something basic in the documentation.
QUESTION:
1) Is Oracle Workflow REQUIRED to create, deploy, and execute a process flow?Hi,
Oracle Workflow is required for deploying processflow.
Where did you read in documentation about possibilities of running processflows without OWF? OWB instalation guide tells:
"If you plan to use Warehouse Builder process flows, you need to install Oracle Workflow to enable deployment."
Regards,
Oleg -
Hi,
WE have a master flow which contains 5 process flows in it....
We have scheduled this master flow using the inbuilt OWB scheduler(OWB 10.2.0.4 version)
I have a shell script which alerts our support team when there is any failure....
Now how can i call this script when OWB process flow FAILS or HANGS or loads records into error tables.
ThanksCreate your script as procedure in database and then use it in your process flow in combination with email notification operator to send message where returned error message from procedure will be input parameter to email activity as message body in email.
-
I have a number of OMB Scripts which import/export etc.. Within this script I capture the password from the user so that I can connect to the repository. I found a new class in the latest java which will mask this password and I want to use this within my TCL Script. From what I've read you should be able to call Java Classes from a TCL Script however it gives me a java.lang.reflect.InvocationTargetException
error. Any help you would be appreciated. (Error at bottom of post)
Thanks
Sean
I've included the Call and the class below.
Within my tcl script
package require java
set t [ java::new finance.ombpass ]
set owbreppass [$t run]
JAVA ombpass.Java
(The Class file ombpass.class in contained in the folder "finance" located under
oracle\product\owb\10204\owb\bin\admin\)
The TCL Source is being called after performing a cd to that directory.
package finance;
import java.io.Console;
public class ombpass{
public String run() {
Console cons = System.console();
char [] pswd = cons.readPassword("Password: ");
String s = new String(pswd);
System.out.println(s);
return s;
ERROR THROWN...
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at Launcher.main(Launcher.java:167)
Caused by: java.lang.UnsupportedClassVersionError: finance/ombpass (Unsupported major.minor version 50.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at tcl.lang.TclClassLoader.loadClass(TclClassLoader.java:148)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at tcl.lang.JavaInvoke.getClassByName(JavaInvoke.java:712)
at tcl.lang.FuncSig.get(FuncSig.java:216)
at tcl.lang.JavaInvoke.newInstance(JavaInvoke.java:67)
at tcl.lang.JavaNewCmd.cmdProc(JavaNewCmd.java:105)
at tcl.lang.Parser.evalObjv(Parser.java:818)
at tcl.lang.Parser.eval2(Parser.java:1221)
at tcl.lang.Parser.evalTokens(Parser.java:1001)
at tcl.lang.Parser.eval2(Parser.java:1208)
at tcl.lang.Procedure.cmdProc(Procedure.java:161)
at tcl.lang.Parser.evalObjv(Parser.java:818)
at tcl.lang.Parser.eval2(Parser.java:1221)
at tcl.lang.Interp.eval(Interp.java:2189)
at tcl.lang.Interp.eval(Interp.java:2273)
at tcl.lang.SwitchCmd.cmdProc(SwitchCmd.java:141)
at tcl.lang.Parser.evalObjv(Parser.java:818)
at tcl.lang.Parser.eval2(Parser.java:1221)
at tcl.lang.Procedure.cmdProc(Procedure.java:161)
at tcl.lang.Parser.evalObjv(Parser.java:818)
at tcl.lang.Parser.eval2(Parser.java:1221)
at tcl.lang.Interp.eval(Interp.java:2189)
at tcl.lang.Interp.evalFile(Interp.java:2368)
at tcl.lang.SourceCmd.cmdProc(SourceCmd.java:75)
at tcl.lang.Parser.evalObjv(Parser.java:818)
at tcl.lang.Parser.eval2(Parser.java:1221)
at tcl.lang.Interp.eval(Interp.java:2189)
at tcl.lang.Interp.eval(Interp.java:2273)
at tcl.lang.Interp.recordAndEval(Interp.java:2328)
at tcl.lang.TclConsoleThread$2.processEvent(TclShell.java:424)
at tcl.lang.Notifier.serviceEvent(Notifier.java:444)
at tcl.lang.Notifier.doOneEvent(Notifier.java:585)
at tcl.lang.TclShell.run(TclShell.java:170)
at tcl.lang.TclShell.run(TclShell.java:68)
at oracle.owb.scripting.OMBShell.main(OMBShell.java:38)
... 5 more
java.lang.reflect.InvocationTargetExceptionBesides "package require java", you also need to "java import" your class into TCL. For example, this is how I implemented my OMB-SQL package:
package require java
# PVCS Version Information
#/* $Workfile: omb_sql_library.tcl $ $Revision: 2.3 $ */
#/* $Author: michael.broughton $
#/* $Date: 16 Dec 2008 10:10:36 $ */
proc oracleConnect { serverName databaseName portNumber username password } {
# import required classes
java::import java.sql.Connection
java::import java.sql.DriverManager
java::import java.sql.ResultSet
java::import java.sql.SQLWarning
java::import java.sql.Statement
java::import java.sql.CallableStatement
java::import java.sql.ResultSetMetaData
java::import java.sql.DatabaseMetaData
java::import java.sql.Types
java::import oracle.jdbc.OracleDatabaseMetaData
# load database driver .
java::call Class forName oracle.jdbc.OracleDriver
# set the connection url.
append url jdbc:oracle:thin
append url :
append url $username
append url /
append url $password
append url "@"
append url $serverName
append url :
append url $portNumber
append url :
append url $databaseName
set oraConnection [ java::call DriverManager getConnection $url ]
set oraDatabaseMetaData [ $oraConnection getMetaData ]
set oraDatabaseVersion [ $oraDatabaseMetaData getDatabaseProductVersion ]
puts "Connected to: $url"
puts "$oraDatabaseVersion"
return $oraConnection
proc oracleDisconnect { oraConnect } {
$oraConnect close
proc oraJDBCType { oraType } {
#translation of JDBC types as defined in XOPEN interface
set rv "NUMBER"
switch $oraType {
"0" {set rv "NULL"}
"1" {set rv "CHAR"}
"2" {set rv "NUMBER"}
"3" {set rv "DECIMAL"}
"4" {set rv "INTEGER"}
"5" {set rv "SMALLINT"}
"6" {set rv "FLOAT"}
"7" {set rv "REAL"}
"8" {set rv "DOUBLE"}
"12" {set rv "VARCHAR"}
"16" {set rv "BOOLEAN"}
"91" {set rv "DATE"}
"92" {set rv "TIME"}
"93" {set rv "TIMESTAMP"}
default {set rv "OBJECT"}
return $rv
proc oracleQuery { oraConnect oraQuery } {
set oraStatement [ $oraConnect createStatement ]
set oraResults [ $oraStatement executeQuery $oraQuery ]
# The following metadata dump is not required, but will be a helpfull sort of thing
# if ever want to really build an abstraction layer
#set oraResultsMetaData [ $oraResults getMetaData ]
#set columnCount [ $oraResultsMetaData getColumnCount ]
#set i 1
#puts "ResultSet Metadata:"
#while { $i <= $columnCount} {
# set fname [ $oraResultsMetaData getColumnName $i]
# set ftype [oraJDBCType [ $oraResultsMetaData getColumnType $i]]
# puts "Output Field $i Name: $fname Type: $ftype"
# incr i
# end of metadata dump
return $oraResults
proc run_exec_template { oraConnect rtOwner locName taskType taskName {custParms ""} {sysParms ""} } {
# rt_owner := e.g. MY_RUNTIME - Name of the Runtime Repository Owner
# location_name :- e.g. MY_WAREHOUSE - Physical Name of the Location to which this task was deployed
# (i.e. a DB Location or a Process Location or the Platform Schema)
# Note: Always use "PlaformSchema" for SQL_LOADER and SAP types.
# task_type :- PLSQLMAP - OWB PL/SQL Mapping
# | SQLLOADERCONTROLFILE - OWB SQL*Loader Mapping
# | PROCESSFLOW - OWB ProcessFlow
# | ABAPFILE - OWB SAP Mapping
# | DATAAUDITOR - OWB DataAuditor Mapping
# | SCHEDULEDJOB - OWB Scheduled Job
# task_name :- e.g. MY_MAPPING - Physical Name of the Deployed Object. This can be optionally qualified
# by the name of a deployed parent, such as the Processflow Package name
# of a Processflow. A module name cannot be used here because it is not
# a deployable object.
# system_params :- { , | (name = value [, name = value]...)}
# e.g. ","
# or MY_PARAM=1,YOUR_PARAM=true
# custom_params :- { , | (name = value [, name = value]...)}
# e.g. ","
# or MY_PARAM=1,YOUR_PARAM=true
# RETURNS
# 1 if task reports SUCCESS, 2 if WARNING, 3 if ERROR
set oraStmt [ $oraConnect createStatement ]
set tmpRslt [ $oraStmt execute "alter session set current_schema=$rtOwner" ]
set tmpRslt [ $oraStmt execute "set role owb_o_$rtOwner" ]
set tmpRslt [ $oraStmt execute "set role owb_d_$rtOwner" ]
set callString "declare x number; begin x := wb_rt_api_exec.run_task('$rtOwner','$locName','$taskType','$taskName','$custParms','$sysParms'); end;"
set oraCall [ $oraConnect prepareCall $callString ]
#$oraCall registerOutParameter { 1 java.lang.Integer int} {4 java:lang:Integer int}
#$oraCall setString 2 $rtOwner
#$oraCall setString 3 $locName
#$oraCall setString 4 $taskType
#$oraCall setString 5 $taskName
#$oraCall setString 6 $sysParms
#$oraCall setString 7 $custParms
$oraCall execute
#set retVal [$oraCall getInt 1]
#set back to the default schema
set oraDatabaseMetaData [ $oraConnect getMetaData ]
set oraUser [$oraDatabaseMetaData getUserName]
set tmpRslt [ oraStmt execute "alter session set current_schema=$oraUser" ]
# SAMPLE CODE to run a quick query and dump the results. #
#set oraConn [ oracleConnect myserver orcl 1555 scott tiger ]
#set oraRs [ oracleQuery $oraConn "select name, count(*) numlines from user_source group by name" ]
#for each row in the result set
#while {[$oraRs next]} {
#grab the field values
# set procName [$oraRs getString name]
# set procCount [$oraRs getInt numlines]
# puts "Program unit $procName comprises $procCount lines"
#$oraRs close
#oracleDisconnect $oraConnI do not know if you will need to play with classpaths or anything to get a successfull import as I never tried to do anything with custom classes. Oracle also has a demo example of integrating java with OMB+ to create modal dialogs which might provide additional guidance. It is available here: http://www.oracle.com/technology/sample_code/products/warehouse/files/owb_params.html
Good luck with it! -
Using Scheduling in OWB 10.2.0.1 (Paris)
Dear all after some clarification on the use of scheduling in OWB 10G R2. We have just installed this version but i have a couple of questions surrounding the scheduling, may i point out that i have no knowledge of schedling in OWB so am relying on the user manual. It states that in R2 for each project it creates by default a MY_CAL_MODULE where you can then create schedules. Having got 10G R2 installed i cant see either Calenders folder or this MY_CAL_MODULE it talks about. I must also point out that at this stage we do not have Workflow installed because R2 relies on 2.6.4 of workflow but we can only find 2.6.3 or 2.6.3.5 on OTN (we are waiting for an Orcale rep to confimr if 2.6.4 exists). My thoughts maybe that OWB gets its calender from workflow but this is an assumption. Is there anyone out there who has any experience of Scheduling mappings direct in OWB R2 Paris who could advise how it needs to be set up it would be very much appreciated
Regards Kevin
e-mail [email protected]
Message was edited by:
user515912Hello
Workflow is part of the actual database distro. It will be in the extras download, the same one where you would find HTML-DB
So for your version of database, locate the extras download, and you will find the small apache server, workflow db install, and mid tier along with html-db. Depending on your version of DB you need to install the apache server first, then workflow schema, then mid tier
If you get the client download for the db you have the option of installing the actual WF builder client.
There will be install docs too.
Richard. -
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
Maybe you are looking for
-
I need to determine the agent for the approval of employees change in pay. First of all the workflow will be tiggered from a transcation. As soon as it is triggred it should go to the HR Manager for approval, who is not neccesarily the superior of th
-
Lookup of alternativeServiceIdentifier via CPA-cache failed for channel
Hi, In RFC(ECC) to File(PI) scenaio i am facing the following error in sender CC: Error in processing caused by: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: lookup of alternativeServiceIdentifier via CPA-cache failed for channel SND_RFC
-
HT201272 Why is the library button not appearing in iTunes 11.0.1?
Followed steps as outlined in article, no button appears. I wish to have access to the content I paid for.
-
We are considering a migration from Hyperion Planning 11.1.1.3 to 11.1.2.2 and have found lots of documentation describing the technical exercise but little on the functional differences between the two products that would be of more interest to our
-
How do you create PopUp Layer Window?
Hi! I have a question... How do you create PopUp Layer Window? PopUp Layer Window is a popup window that moves as an user scrolls up and down. And it cannot be blocked by popup bloacker. Please teach me! -p.b.p.