OWB 11gR2 - Template Mapping execution failed: ORA-00936 (DB2 to Oracle)

I've created a mapping to load data from a DB2 table (using JDBC) and import into an Oracle table.
In the "Execution View", I've associated the LCT_SQL_TO_ORACLE code template to the DB2 execution unit, and the ICT_ORACLE_INCR_UPD code template to the Oracle execution unit (following the documentation: http://download.oracle.com/docs/cd/E11882_01/owb.112/e10935/sap_km_mappings.htm#insertedID9).
After that, I validated, ganerated and deployed the Mapping. When executing, I got the error *"Job 49 error: java.sql.SQLException: ORA-00936: missing expression".*
Please, how can I fix this problem?
Here is the complete log message:
Job     Rows Selected     Rows Inserted     Rows Updated     Rows Deleted     Errors     Warnings     Start Time     Elapsed Time     
APCLS_MAP                         2          2010-02-10 10:25:09.0     7     
Job 49 ended                                             
Job 49 error: java.sql.SQLException: ORA-00936: missing expression
while executing
"$g_stmt executeUpdate "$p_ddl_processed""
invoked from within
"set g_res [$g_stmt executeUpdate "$p_ddl_processed"]"
while executing
"error $errorInfo"
("if" then script line 12)
invoked from within
"if {[catch {set g_res  [$g_stmt executeUpdate "$p_ddl_processed"]} result]} {
global errorCode
global errorInfo
if {[llength $errorCode] =..."
(procedure "jdbc" line 12)
invoked from within
"jdbc $connection $p_tgtstmt"
while executing
"error $jdbc_errorInfo"
("if" then script line 2)
invoked from within
"if {[info exists jdbc_errorInfo]} {
error $jdbc_errorInfo
(procedure "execjdbc" line 31)
invoked from within
"execjdbc $tgt_stmt "TGT_AC" "$TGT_LOCATION" "" "true" "false" "false""
(procedure "10_INSERT_FLOW_INTO_I__TABLE_main" line 43)
invoked from within
"10_INSERT_FLOW_INTO_I__TABLE_main "
while executing
"error $errorInfo"
("if" then script line 4)
invoked from within
"if {[catch {
        logTaskStart Started $taskDetail {3} {}
global _OMBTaskFlowAudit
set _OMBTaskFlowAudit {TASK_LOADING|10_INSERT_FL..."
("if" then script line 2)
invoked from within
"if {$INSERT == "true" || $UPDATE == "true" || $FLOW_CONTROL == "true" || $SYNC_JRN_DELETE == "true"} {
if {[catch {
        logTaskStart Started..."
    (procedure "10_INSERT_FLOW_INTO_I__TABLE" line 39)
    invoked from within
"10_INSERT_FLOW_INTO_I__TABLE"
    (procedure "ICT_ORACLE_INCR_UPD::ICT_ORACLE_INCR_UPD_main" line 55)
    invoked from within
"ICT_ORACLE_INCR_UPD::ICT_ORACLE_INCR_UPD_main "jdbc/ORACLE_DATABASE_LOCATION-BB_WPC-BBDW-PUBLIC_PROJECT-BB_STG" "jdbc/ORACLE_DATABASE_LOCATION-BB_WPC-..."
    (in namespace eval "::BB_STG_EU" script line 4)
    invoked from within
"namespace eval BB_STG_EU {
  logPhaseStart "" {BB_STG_EU} "" {5}
eval [getScript "CODETEMPLATE-BB_WPC-BBDW-PUBLIC_PROJECT-BUILT_IN_CT-ICT_ORACLE_INC..."
null                                             
  BBDW_DB2_EU                              1     2010-02-10 10:25:10.0     3     
   BBDW_DB2_EU ended                                             
   1_VALIDATE_KM_OPTIONS                                   2010-02-10 10:25:10.0          
   2_DROP_WORK_TABLE                                   2010-02-10 10:25:10.0          
   3_CREATE_WORK_TABLE                                   2010-02-10 10:25:10.0          
   5_LOAD_DATA                                   2010-02-10 10:25:10.0     3     
   6_ANALYZE_WORK_TABLE                              1     2010-02-10 10:25:13.0          
  BB_STG_EU                         1          2010-02-10 10:25:13.0          
   Job 49 error: java.sql.SQLException: ORA-00936: missing expression
    while executing
"$g_stmt executeUpdate "$p_ddl_processed""
    invoked from within
"set g_res  [$g_stmt executeUpdate "$p_ddl_processed"]"
while executing
"error $errorInfo"
("if" then script line 12)
invoked from within
"if {[catch {set g_res  [$g_stmt executeUpdate "$p_ddl_processed"]} result]} {
global errorCode
global errorInfo
if {[llength $errorCode] =..."
(procedure "jdbc" line 12)
invoked from within
"jdbc $connection $p_tgtstmt"
while executing
"error $jdbc_errorInfo"
("if" then script line 2)
invoked from within
"if {[info exists jdbc_errorInfo]} {
error $jdbc_errorInfo
(procedure "execjdbc" line 31)
invoked from within
"execjdbc $tgt_stmt "TGT_AC" "$TGT_LOCATION" "" "true" "false" "false""
(procedure "10_INSERT_FLOW_INTO_I__TABLE_main" line 43)
invoked from within
"10_INSERT_FLOW_INTO_I__TABLE_main "
while executing
"error $errorInfo"
("if" then script line 4)
invoked from within
"if {[catch {
        logTaskStart Started $taskDetail {3} {}
global _OMBTaskFlowAudit
set _OMBTaskFlowAudit {TASK_LOADING|10_INSERT_FL..."
("if" then script line 2)
invoked from within
"if {$INSERT == "true" || $UPDATE == "true" || $FLOW_CONTROL == "true" || $SYNC_JRN_DELETE == "true"} {
if {[catch {
        logTaskStart Started..."
    (procedure "10_INSERT_FLOW_INTO_I__TABLE" line 39)
    invoked from within
"10_INSERT_FLOW_INTO_I__TABLE"
    (procedure "ICT_ORACLE_INCR_UPD::ICT_ORACLE_INCR_UPD_main" line 55)
    invoked from within
"ICT_ORACLE_INCR_UPD::ICT_ORACLE_INCR_UPD_main "jdbc/ORACLE_DATABASE_LOCATION-BB_WPC-BBDW-PUBLIC_PROJECT-BB_STG" "jdbc/ORACLE_DATABASE_LOCATION-BB_WPC-..."
    (in namespace eval "::BB_STG_EU" script line 4)
    invoked from within
"namespace eval BB_STG_EU {
  logPhaseStart "" {BB_STG_EU} "" {5}
eval [getScript "CODETEMPLATE-BB_WPC-BBDW-PUBLIC_PROJECT-BUILT_IN_CT-ICT_ORACLE_INC..."
null                                             
   1_VALIDATE_KM_OPTIONS                                   2010-02-10 10:25:13.0          
   2_CHECK_RDBMS_VERSION                                   2010-02-10 10:25:13.0          
   3_CREATE_TARGET_TABLE                                   2010-02-10 10:25:13.0          
   4_DROP_FLOW_TABLE                                   2010-02-10 10:25:13.0          
   5_CREATE_FLOW_TABLE_I_                                   2010-02-10 10:25:13.0          
   6_DELETE_TARGET_TABLE                                   2010-02-10 10:25:13.0          
   7_TRUNCATE_TARGET_TABLE                                   2010-02-10 10:25:13.0          
   8_ANALYZE_TARGET_TABLE                                   2010-02-10 10:25:13.0          
   10_INSERT_FLOW_INTO_I__TABLE                         1          2010-02-10 10:25:13.0          
------                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Hi Danilo
That's great. This combination is what we spoke about as a hybrid style mapping, leveraging the flexibility of an open template system for loading and staging, and then OWB's classic operator set for integrating. For Oracle database targets, the Oracle Target code template is great, you can also leverage pretty much all existing transformation capabilities, so use load templates/KMs for getting the data into Oracle and the Oracle Target template for transforming and integrating.
Cheers
David

Similar Messages

  • Owb beta 3 / master detail mapping with sequence ora-00936 error

    I'm not able to use sequence operator in mapping to create relationships between different record type from the same flat file. I have got an sql error ORA-00936: expression absente
    The problem seem to be the sequence is not referenced in the sql loader parameter. The sequence exists, was deployed sucessfully, the mapping is validated and successfully deployed. The problem occurs during execution

    Good afternoon "micwic",
    In general, mappings with flat files make use of data generators, not sequence operators. This is what the User Guide (10gR1 but I guess R2 works similar) says for the Data Generator Operator :
    Use a Data Generator operator to provide information such as record number, system date, and sequence values.
    For mappings with flat file sources, the Data Generator operator also provides a place to enter constant information. For mappings with Flat File sources and targets, the Data Generator operator connects the mapping to SQL*Loader to generate the data stored in the database record.
    The following functions are available:
    RECNUM
    SYSDATE
    SEQUENCE
    It is possible for Warehouse Builder to generate data by specifying only sequences, record numbers, system dates, and constants as field specifications. SQL*Loader inserts as many records as are specified by the LOAD keyword.
    Setting a Column to the Data File Record Number
    Use the RECNUM keyword to set an attribute to the number of the records that tthe record was loaded from. Records are counted sequentially from the beginning of the first data file, starting with record 1. RECNUM increments as each logical record is assembled. It increments for records that are discarded, skipped, rejected, or loaded.
    For example, if you use the option SKIP=10, the first record loaded has a RECNUM of 11.
    Setting a Column to the Current Date
    A column specified with SYSDATE gets the current system date, as defined by the SQL language SYSDATE function.
    The target column must be of type CHAR or DATE. If the column is of type CHAR, then the date is loaded in the format dd-mon-yy. After the load, you only access it in that format. If the system date is loaded into a DATE column, then you can only access it in a variety of formats including the time and the date. A new system date/time is used for each array of records inserted in a conventional path load and for each block of records loaded during a direct path load.
    Setting a Column to a Unique Sequence Number
    The SEQUENCE keyword ensures a unique value for a column. SEQUENCE increments for each record that is loaded or rejected. It does not increment for records that are discarded or skipped.
    Recommendation: For PL/SQL mappings use a Constant Operator or Mapping Sequence Operator instead of a Data Generator.
    etc.
    Good luck, Patrick

  • Process flow hangs when mapping execution fails

    Hi,
    Has anyone faced the 'process flow hanging' problem after upgrading to OWB 9.2.0.4? Don't know why this is happening again after the upgrade. The audit browser clearly indicates one of the mappings has failed and workflow tables indicate there was a notification upon failure. The process flow runs several sub process flows each containing 5-6 mappings.
    Also, the mapping that failed (due to unique key violations on the target table) executed the post mapping stored procedure although the post mapping run condition was set to 'ON SUCCESS'. Is this the expected behaviour for the post mapping operator when there are database related failures?
    Our environment is OWB 9.2.0.4 on AIX 5.2.
    Database version is 9.2.0.5. We recently upgraded the database from 9.2.0.4 to 9.2.0.5 and OWB from 9.2.0.2.8 to 9.2.0.4. Process flows are executed using sqlplus.
    Thanks,
    Chethan

    Hi,
    I would expect you to have less issues with 9204 as there were some fixes applied. So I have not seen this before.
    To get into the mapping a little bit more, is this a row based mapping that is under the tresshold? In any case, if you specify "on success" I would expect it to only work on success... A database related error will also cause it to get an error, so this is interesting as well.
    Does the error repeat at any case if there is a failure?
    Jean-Pierre

  • OWB Performance issue (mapping execution always takes min 60 sec)

    Hi All,
    any owb mapping we execute in one of our environment , it seems the execution hangs for some time before it build the Attempting to create native operator 'class.RuntimePlatform.0.NativeExecution.PLSQL' statement. The log file shows a constant difference of 30 sec. before executing the <map>.main() function. the data extraction is very low some thing like 10-1000 records
    Action taken : increase the SGA pool size to allow more resource. at the DB level
    changed the -Xms64M -Xmx256M to -Xms335M -Xmx440M.
    But no help
    Extraction from the owb log is as follows.
    2006/03/15-09:29:09-WST [1E0BF3BF] Initializing execution for auditId= 28339 parentAuditId= null topLevelAuditId=28339 taskName=XXIF_OUT_CSV_TRANS
    2006/03/15-09:29:09-WST [1E0BF3BF] Attempting to create adapter 'class.RuntimePlatform.0.NativeExecution'
    2006/03/15-09:29:09-WST [1E0BF3BF] Attempting to create native operator 'class.RuntimePlatform.0.NativeExecution.PLSQL'
    2006/03/15-09:29:39-WST [1E0D73BF] PLSQL callspec: declare l_env wb_rt_mapaudit.wb_rt_name_values; l_IN_BATCH_ID null........
    Kindly note the difference of 30 sec between create native operator to actual execution of PLSQL code.
    The same set of mapping is working fine(5-15secs) in our Dev env. but is taking additional time (kind of 1-3 mins ) in Test env. and the execution of mapping does not go in parallel mode(Is this an expected behaviour ?) and if we have 10 seperate excution of the mapping , it takes 30mins to complete in TEST env. compare to 3mins in DEV env.
    The noticible difference between these two env. is
    These mapping been created using 10.1.0.2.0 client and deployed on 10.1.0.1.0 repository. in DEV env.
    but the TEST Env. uses 10.1.0.4.0 repository.
    When check the audit browser .. Can see the total elapse time is 61sec but the actual mapping exec time is only 1 sec.
    Is there any configuration settings which cause this delay.
    Any pointers on this will be of great help.
    Regards,
    njain

    I am having exactly the same issue as you have described here. i.e. my mappings are taking some time to initialize before they run. Did you or anyone find a solution to this problem?

  • Mapping execution failed

    Hi All,
    One of my customer is facing the following issue:
    Customer has a mapping that loads tha data from an external table to two staging tables.
    Deployment of the mapping went fine.
    When trying to run the mapping mapping fails with status 'Error'
    But there are no errors displayed in Job details window ,runtime log file , Repository
    Audit Browser or even in database trace.
    Please suggest to trace this issue.
    Thank you,
    Regards,
    Padmanabh.

    Check mapping Default audit level. it must be none.
    Change it to Error_details (Right Click mapping-> Configure -> Default_audit level )
    Cheers
    Nawneet

  • Owbsys.wb_rt_api_exec.open fails after upgrade to OWB 11gR2

    The following code is used as a PLSQL wrapper to execute OWB mappings and is based on the good old run_my_own_stuff.sql. We have been mandated to use Tivoli as the corporate scheduler, meaning we do not have Workflow as a solution. We have implemented the audit_execution_id as an input parameter to all the mappings to be able to link the data to the OWBSYS audit tables, as well as return mapping performance and success info to the execution process/session. I have implemented this exact same procedure in 10gR1, 10gR2 and 11gR1 (current dev env) with no problems at all - the code ports easily. However following an upgrade (actually an export/import of the repository from 11gR1 on a 64bit solaris to 11gR2 on Exadata running enterprise linux 5) - actually the test server (I know, I know, I said the same thing!), the code now fails on the wb_rt_api_exec.open line (highlighted).
    CREATE OR REPLACE PROCEDURE bi_ref_data.map (p_map_name IN VARCHAR2)
    -- Procedure to execute ETL mapping package via command line call
    -- Mapping names are held in the BI_REF_DATA.MAP_NAME table
    -- with the mapping type and location data
    AS
    v_repos_owner VARCHAR2 (30) := <repository_owner>;
    v_workspace_owner VARCHAR2 (30) := <workspace_owner>;
    v_workspace_name VARCHAR2 (30) := <workspace_name>;
    v_loc_name VARCHAR2 (30);
    v_map_type VARCHAR2 (30);
    v_map_name VARCHAR2 (30) := UPPER (p_map_name);
    v_retval VARCHAR2 (255);
    v_audit_execution_id NUMBER; -- Audit Execution Id
    v_audit_result NUMBER;
    v_start_time timestamp := LOCALTIMESTAMP;
    v_end_time timestamp;
    v_execution_time NUMBER;
    v_record_rate NUMBER := 0;
    v_records_selected NUMBER;
    v_records_inserted NUMBER;
    v_records_updated NUMBER;
    v_records_deleted NUMBER;
    v_records_merged NUMBER;
    v_errors NUMBER;
    v_failure VARCHAR2 (4000);
    e_no_data_found_in_audit exception;
    v_audit_exec_count NUMBER;
    e_execution_id_error exception;
    BEGIN
    SELECT UPPER (loc_name), UPPER (map_type)
    INTO v_loc_name, v_map_type
    FROM bi_ref_data.owb_map_table
    WHERE UPPER (map_name) = UPPER (v_map_name);
    IF UPPER (v_map_type) = 'PLSQL'
    THEN
    v_map_type := 'PLSQL';
    ELSIF UPPER (v_map_type) = 'SQL_LOADER'
    THEN
    v_map_type := 'SQLLoader';
    ELSIF UPPER (v_map_type) = 'SAP'
    THEN
    v_map_type := 'SAP';
    ELSIF UPPER (v_map_type) = 'DATA_AUDITOR'
    THEN
    v_map_type := 'DataAuditor';
    ELSIF UPPER (v_map_type) = 'PROCESS'
    THEN
    v_map_type := 'ProcessFlow';
    END IF;
    -- Changed code for owb11gr2
    -- owbsys.wb_workspace_management.set_workspace (v_workspace_name, v_workspace_owner);
    owbsys.wb_rt_script_util.set_workspace (v_workspace_owner || '.' || v_workspace_name);
    v_audit_execution_id   := owbsys.wb_rt_api_exec.open (v_map_type, v_map_name, v_loc_name);
    IF v_audit_execution_id IS NULL
    OR v_audit_execution_id = 0
    THEN
    RAISE e_execution_id_error;
    END IF;
    v_retval := v_retval || 'audit_execution_id=' || TO_CHAR (v_audit_execution_id);
    v_audit_result := owbsys.wb_rt_api_exec.execute (v_audit_execution_id);
    IF v_audit_result = owbsys.wb_rt_api_exec.result_success
    THEN
    v_retval := v_retval || ' --> SUCCESS';
    ELSIF v_audit_result = owbsys.wb_rt_api_exec.result_warning
    THEN
    v_retval := v_retval || ' --> WARNING';
    ELSIF v_audit_result = owbsys.wb_rt_api_exec.result_failure
    THEN
    v_retval := v_retval || ' --> FAILURE';
    ELSE
    v_retval := v_retval || ' --> UNKNOWN';
    END IF;
    DBMS_OUTPUT.put_line (v_retval);
    owbsys.wb_rt_api_exec.close (v_audit_execution_id);
    v_end_time := LOCALTIMESTAMP;
    v_execution_time := bi_ref_data.get_seconds_from_interval (v_end_time - v_start_time);
    v_retval := 'Execution time = ' ||
    v_execution_time ||
    ' seconds.';
    DBMS_OUTPUT.put_line (v_retval);
    SELECT COUNT (w.rta_select)
    INTO v_audit_exec_count
    FROM owbsys.owb$wb_rt_audit w
    WHERE w.rte_id = v_audit_execution_id;
    IF v_audit_exec_count = 0
    THEN
    RAISE e_no_data_found_in_audit;
    END IF;
    SELECT w.rta_select,
    w.rta_insert,
    w.rta_update,
    w.rta_delete,
    w.rta_merge,
    rta_errors
    INTO v_records_selected,
    v_records_inserted,
    v_records_updated,
    v_records_deleted,
    v_records_merged,
    v_errors
    FROM owbsys.owb$wb_rt_audit w
    WHERE w.rte_id = v_audit_execution_id;
    v_retval := v_records_selected || ' records selected';
    DBMS_OUTPUT.put_line (v_retval);
    IF v_records_inserted > 0
    THEN
    v_retval := v_records_inserted || ' inserted';
    DBMS_OUTPUT.put_line (v_retval);
    END IF;
    IF v_records_updated > 0
    THEN
    v_retval := v_records_updated || ' updated';
    DBMS_OUTPUT.put_line (v_retval);
    END IF;
    IF v_records_deleted > 0
    THEN
    v_retval := v_records_deleted || ' deleted';
    DBMS_OUTPUT.put_line (v_retval);
    END IF;
    IF v_records_merged > 0
    THEN
    v_retval := v_records_merged || ' merged';
    DBMS_OUTPUT.put_line (v_retval);
    END IF;
    IF v_errors > 0
    THEN
    v_retval := v_errors || ' errors';
    DBMS_OUTPUT.put_line (v_retval);
    END IF;
    IF v_execution_time > 0
    THEN
    v_record_rate := TRUNC ( (v_records_inserted + v_records_updated + v_records_deleted + v_records_merged) / v_execution_time, 2);
    v_retval := v_record_rate || ' records/sec';
    DBMS_OUTPUT.put_line (v_retval);
    END IF;
    IF (v_audit_result = owbsys.wb_rt_api_exec.result_failure
    OR v_audit_result = owbsys.wb_rt_api_exec.result_warning)
    THEN
    FOR cursor_error
    IN (SELECT DISTINCT aml.plain_text
    FROM owbsys.owb$wb_rt_audit_messages am
    INNER JOIN
    owbsys.owb$wb_rt_audit_message_lines aml
    ON am.audit_message_id = aml.audit_message_id
    WHERE am.audit_execution_id = v_audit_execution_id)
    LOOP
    DBMS_OUTPUT.put_line (cursor_error.plain_text);
    END LOOP;
    END IF;
    -- OWBSYS.wb_rt_api_exec.close (v_audit_execution_id);
    COMMIT;
    EXCEPTION
    WHEN e_execution_id_error
    THEN
    raise_application_error (-20011, 'Invalid execution ID returned from OWB');
    -- RAISE;
    WHEN e_no_data_found_in_audit
    THEN
    raise_application_error (-20010, 'No data found in audit table for execution_id - ' || v_audit_execution_id);
    -- RAISE;
    WHEN NO_DATA_FOUND
    THEN
    raise_application_error (-20001, 'Error in reading data from OWBSYS tables.');
    -- RAISE;
    END;
    Does anyone out there know if there is a difference between 11gR1 and R2 in the way that the wb_rt_api_exec function works?
    Is there a simple way to retrieve the audit_id before executing the mapping, or at a push during the mapping so that we can maintain the link between the session data and the OWBSYS audit data?
    Martin

    Hi David, I have been reading some of your posts and blogs around OWB and I still have not found the answer.
    OK, thereis/was a script that Oracle Support/forums/OTN sent out a while ago called "run_my_iowb_stuff" - I am sure you will be familiar with it. I based the code I uploaded on it and added additional functionality. In essence, I wanted to use the audit_id as an input parameter tot he mapping, so that I can register the audit_id in the management tables, and associate each row of loaded data with a specific mapping_id which would allow a simple link to the owbsys audit tables to complete the audit circle. To that end, I used the owbsys.wb_rt_api_exec.open procedure to register the mapping execution, and then on the execute procedure of the same package, I passed this audit_id in as a custom parameter:
    <<snip>>
    owbsys.wb_workspace_management.set_workspace (v_workspace_name, v_workspace_owner);
    v_audit_execution_id := owbsys.wb_rt_api_exec.open (v_map_type, v_map_name, v_loc_name, 'PLSQL');
    IF v_audit_execution_id IS NULL
    OR v_audit_execution_id = 0
    THEN
    RAISE e_execution_id_error;
    END IF;
    v_retval := v_retval || 'audit_execution_id=' || TO_CHAR (v_audit_execution_id);
    IF v_include_mapping_id > 0 -- if non-zero, submit owb execution id as an input parameter to the map process
    THEN
    owbsys.wb_rt_api_exec.override_input_parameter (
    v_audit_execution_id,
    'p_execution_id',
    TO_CHAR (v_audit_execution_id),
    owbsys.wb_rt_api_exec.parameter_kind_custom
    END IF;
    <<snip>>
    The execution is closed, also by the use of the audit_id ( "owbsys.wb_rt_api_exec.close (v_audit_execution_id)" )
    I can also use the audit_id to inspect the audit tables to retrieve the records processed as well as any associated error messages, and format them for the calling application (owSQL*Plus, which is normally the context of our current use).
    This procedure has been working weel up to now until we moved over to 11gR2 when all of a sudden the audit_id is not returned when executing "v_audit_execution_id := owbsys.wb_rt_api_exec.open (v_map_type, v_map_name, v_loc_name);". Prior to 11gR2 this worked like a charm - now it has crashed to a halt.
    As an interesting twist, I have tried to substitute a sequence number for the audit_id, and then tried to get the audit_id after the mapping completes, so that I can put both the sequence and audit id in a table so it maintains the link. However in attempting to use the owbsys.wb_rt_script_util.run_task procedure which now appears to be the only thing left working, I was astonished to see the following output in sqlplus:
    SQL> exec map1('stg_brand')
    Stage 1: Decoding Parameters
    | location_name=STAGE_MOD
    | task_type=PLSQLMAP
    | task_name=STG_BRAND
    Stage 2: Opening Task
    | l_audit_execution_id=2135
    Stage 3: Overriding Parameters
    Stage 4: Executing Task
    | l_audit_result=1 (SUCCESS)
    Stage 5: Closing Task
    Stage 6: Processing Result
    | exit=1
    --> SUCCESS
    Execution time = .647362 seconds.
    records/sec
    PL/SQL procedure successfully completed.
    SQL>
    This output seems so identical to the "run_my_owb_stuff" that either Oracle support generated their "run_my_owb_stuff" as a lightweight owbsys.wb_rt_script_util.run_task procedure, or Oracle incorporated the "run_my_owb_stuff" script into their owbsys.wb_rt_script_util.run_task procedure! Which way round I cannot say, but it is surely one or the other! To make matters worse, I have raised this with Oracle Support, and they have the temerity to claim that they do not support the "run_my_owb_stuff" script, but think enough of it to incorporate it into their own package in a production release!
    To overcome my problems, in the short term, I need to be able to access the audit_id either during or after the execution of the mapping, so that I can at least associate that with a sequence number I am having to pass in as a parameter to each mapping. In the longer term, i would like a solution to be able to access the audit_id before I execute the mapping, as I could by calling the "owbsys.wb_rt_api_exec.open " procedure. Ideally this would be solved first and I would not need to use a sequence at all.
    Hope this clarifies things a bit.
    Regards
    Martin

  • Regarding default select clauses executing during OWB Mapping execution -

    All-
    While observing the statements executing during an OWB(11gR2) Mapping execution,by monitoring the session using SQL Developer
    Iam finding the following statements executing multiple times and possibly consuming more of the mapping execution time:-
    SELECT MAX(EXECUTION_AUDIT_ID) FROM ALL_RT_AUDIT_MAP_RUNS WHERE MAP_NAME = :B1
    SELECT SYS_CONTEXT('owb_workspace' , 'workspaceID' ) FROM DUAL
    SELECT nvl2(translate(20040101, 'A1234567890','A'), 'F', 'T') FROM DUAL
    SELECT USER FROM SYS.DUAL
    These statements have no relation to be business logic being implemented.And seem to be generated by OWB default settings.
    Can anyone please let me know how to reduce the frequencey of the above mentioned statements or if possible remove them from the OWB mapping execution.
    So that the mapping would run more faster

    Hi,
    these statement are required to set the runtime audit data. Usually, they do not really impact the performance of a mapping so there is not need to bother about them.
    What causes performance problems is usually the business logic part of the mappings.
    You may purge old runtime metadata manually. Look at the script
    %ORACLE_HOME%\owb\rtp\jrtaudit\owbsys\purge_audit_tables.sqlDocumentation is included.
    Regards,
    Carsten.

  • OWB11gR2: Mapping execution in a process flow not visible in OWB Browser

    When a mapping is executed inside a process flow, execution details are not visible in OWB Repository Browser (Control Center reports) - rows processed, errors etc. Mapping row is missing in a log, like it never happened (but it did).
    This auditing information is very important for monitoring reasons (to our customers also) and I just don't get it how this functionality is lost with this version. Another serious bug?

    Hi David,
    I was rather tired and frustrated last evening, so today I noticed some things I didn't yesterday. Your reply gave me a new motivation.
    The conclusion is - a mapping execution in a process flow is logged, but the way activities are displayed in OWB Browser are now different than in previous versions. If I click on 'Execution Job Report' on a process flow, I see all the activities listed except mappings (transformations, assign, file exists, subprocess etc.). If I want to see mapping execution row, I must click on a plus (expand) sign.
    This kind of behavior will make processes with a complex hierarchy (usually we have more than 5 levels of subprocesses) rather vast to monitor. In 10gR2, a drilling down was accomplished by opening a new browser tab (Execution Job Report link) for each subprocess/mapping activity. Now it shall remain on one huge screen (list) that keeps expanding.
    But, if that is the new feature, we shall live with that. If our customers won't like it, they will have to get used to it.
    Thank you for your reply!

  • OWB 11gR2 - ORA-01017/ RPE-01008

    OWB 11gR2 - ORA-01017/ RPE-01008
    =======================================
    I am using OWB 11gR2 (11.2.0.1) on Win XP 32 bit. We applied the suggested patches for our earlier issues.
    We changed our database passwords. We tested our locations via location navigators/Control center. We did not get any errors. We are able to see the data for tables defined under modules on OWB design center.
    We tested the defined DB LINKS via SQL Developer. Testing was OK .
    We tried to deploy the mappings, we are getting
    *•     ORA-01017: invalid username/password; logon denied*
    *•     RPE-01008: Recovery of this request is in progress.*
    I reviewed earlier posting, where some suggested to re-register the locations. Is it the right approach?
    We have number of mappings worked OK before changing passwords.
    What are the steps to resolve this issues?
    We know that locations are linked via DB LINKS defined in database. How does changing passwords impact DB LINKS in database?
    What is the recommended approach to change database passwords, when we work with OWB?
    What is happening here?
    Thanks in helping.
    Edited by: qwe16235 on Jul 8, 2011 4:07 PM

    Thanks in for your reply. Is it a issue with in OWB?
    This issue was raised in earlier versions as well. Are there any plan to fix this issue?
    Do we have any standard script to work with in this situation?
    I did not find any impact of DB LINK access in database level. I am able to simulate the situation using SQL, but it is working.
    I am curious to know, what does OWB do differently with DB Link to cause this issue.
    Is it a difficult issue to fix?
    Thanks in helping.

  • Selective (Conditional) export failing with ORA-00936: missing expression

    HI Experts,
    I was doing selective (Conditional) export of one table. But the export is failing with the following error.
    ORA-00936: missing expression
    I have been trying for the past 2 hours on this to resolve. But not.
    Could anybody please how can i export the data..
    Oracle Version : 10.2.0.5
    OS : SOLARIS 10 SPARC
    exp E3DAIUSR/E3DAIUSR@ORCL statistics=none file=exp_TABLE.dmp log=exp_Conditional.log TABLES=PGTB_IFDATA query=\'where CRE_DT=\''20120513\'
    The error is as follows
    ==============
    About to export specified tables via Conventional Path ...
    . . exporting table PGTB_IFDATA
    EXP-00056: ORACLE error 936 encountered
    ORA-00936: missing expression
    Export terminated successfully with warnings.
    Please help me on this..

    Hi ,
    Now i am using the query like below. But still getting the error.
    exp E3DAIUSR/E3DAIUSR@ORCL statistics=none file=exp_TD17870_1_TABLE.dmp log=exp_TD17870_1_TABLE_Conditional.log TABLES=PGTB_IFDATA query=\"where CRE_DT=\'20120513\'"
    Error
    ====
    LRM-00111: no closing quote for value 'where CRE_'
    EXP-00019: failed to process parameters, type 'EXP HELP=Y' for help
    EXP-00000: Export terminated unsuccessfully
    This is Solaris OS
    Please provide me correct query if possible

  • Logging OWB mapping execution in Shell script

    Hi,
    I am executing a OWB mapping from a shell script like this
    $OWB_SQLPLUS MY_WAREHOUSE plsql MY_MAPPING "," ","
    I want to log this mapping execution process into a file.
    Please let me know if this will work:
    $OWB_SQLPLUS MY_WAREHOUSE plsql MY_MAPPING "," "," >> LOGFIL.log
    I will just be using this log file to track all the execution and use it for logging purpose.
    If this wont work, please tell me the proper way to do this...
    Thanks.

    Avatar,
    ">>" is the Unix operator that will redirect output and append to a particular file, so what you have should work if you're executing it from the shell prompt. Although I don't know specifically what OWB_SQLPLUS and MY_WAREHOUSE are.
    In my company, we have the call to the owb script inside another script. For example, file x contains the following line:
    sqlplus repository_user/pwd@database @sqlplus_exec_template.sql repository_owner location task_type task_name custom_params system_params
    Then at the prompt, we enter:
    nohup x > x.log &
    And the mapping or workflow executes.
    Jakdwh,
    Are you redirecting your output to a file so you can see why it's returning a '3'? The log file will usually tell you where the error occurred. I don't know what your input parameters for your mapping is, but the script is pretty picky about the date format. Also, even if you don't have any input parameters, the "," still has to be sent into the script.
    Hope this helps,
    Heather

  • ORA-12001 : execution of 1 Job faile ORA-06512

    Hello,
    I am execute a procedure than run a Job of Visual Basic 6.0, the connection is with oo4o.
    This code :
    PROCEDURE SP_EXECUTE_PROC
    DBMS_JOB.SUBMIT(n_jobnow, 'BEGIN USROWSUC.USP_PRC_VERIF_PREC; END;', SYSDATE, 'NULL');
    DBMS_JOB.RUN(n_jobnow);
    COMMIT;
    END;
    The error is the next :
    ORA-12011: execution of 1 jobs failed ORA-06512: at "USROWSUC.SP_EXECUTE_PROC", line 27
    ORA-06512: at line 1.
    This error is only once, the next execution is ok
    The database es Oracle 8.1.7.
    Help me please!
    Best regards,
    Joseph

    Why you don't call your USROWSUC.USP_PRC_VERIF_PREC procedure directly from VB? You have the same result.
    VERY VERY BAD: Executing your job you will create each time a new DB-JOB.
    If you want to mantain your very bad procedure try to move the commit statement after the submit call.
    PROCEDURE SP_EXECUTE_PROC
      DBMS_JOB.SUBMIT(n_jobnow, 'BEGIN USROWSUC.USP_PRC_VERIF_PREC; END;', SYSDATE, 'NULL');
      COMMIT;
      DBMS_JOB.RUN(n_jobnow);
    END;Bye, Aron

  • How to get source table inside Template Mapping code template

    Hi guys,
    I have the following scenario, I have an table from external database and want to map it to an oracle table. This is done with Template mapping and I selected an Load code template on the execution unit that holds only the external table, this load code template will read row by row from source table and make the inserts into the flow table. I know that oracle use odiRef.getFrom() in order to construct the select statement from the external table. Because i need to do something custom i will need to have a list of the source tables inside the Load code template.
    Is this possible?
    P.S. I use owb 11gr2.
    Regards,
    Cipi
    Edited by: Iancu Ciprian on Jan 11, 2011 10:58 AM

    Hi Suraj,
    Thx for your answer!
    After posting the message i found in ODI documentation about odiRef other function and this I'm trying now to see if works, will let you know my results ...
    I implemented an custom iterator that retrieves the data from an external source and pass it to INSERT commands to execute against flow table. In order that this iterator to work i need the source table name of the current execution unit. Then the iterator is using the that name to get the data from the external entity and retrieve it as an array of Objects, this array of objects will be inserted in the flow table.
    Regards,
    Cipi

  • Error while running code template mapping between two oracle tables

    Hello All
    Iam getting the following error while running code template mapping between two oracle tables. Using OWB 11gR2 and oracle 11gR2 DB.
    java.sql.SQLException: ORA-20001: The active workspace is not valid as a target for this mapping
    c: at "OWBSYS.WB_RT_MAPAUDIT_UTIL", line 1065
    ORA-06512: at "OWBSYS.WB_RT_MAPAUDIT_UTIL", line 1087
    ORA-06512: at "SOURCE.FILENET_EX_UNIT_3", line 555
    ORA-06512: at line 4                                        
    Job 51 error: java.sql.SQLException: ORA-20001: The active workspace is not valid as a target for this mapping
    ORA-06512: at "OWBSYS.WB_RT_MAPAUDIT_UTIL", line 1065
    ORA-06512: at "OWBSYS.WB_RT_MAPAUDIT_UTIL", line 1087
    ORA-06512: at "SOURCE.FILENET_EX_UNIT_3", line 555
    ORA-06512: at line 4
    Quick help is highly appreciated.

    Dera Dallan
    its only a target user for the workspace where you are deploying the mapping from.
    I have two repositories for two different projects. each repositary has its own workspace.
    ex:-
    Project 1
    Work space bpms_rep_owner
    Repositary owner bpms_rep_owner
    Repositary user bpms_rep_user
    Project 2
    Work space dem_rep_owner
    Repositary owner dem_rep_owner
    Repositary user dem_rep_user
    Reg
    S.Gyazuddin

  • OWB 11gR2 extracting data from SAP - HELP

    Hi everyone,
    I have a question regarding the way OWB 11gR2 uses its SAP connector. I will present the scenario.
    OS on Server: Windows Server 2003 64bit
    DB: 11gR2 - 64bit
    SAP JCO 2.19 (64bit)
    OS on Client: Windows XP 32bit
    Oracle Client 11gR2 - 32bit
    SAP JCO 2.19 (32bit)
    We are trying to get the data from SAP and it is simply not working. The error that we receive is:
    20B40EC4][OWBWS.OWB] java.lang.Exception:
    Starting Execution of ABAP Report CSKS_CSKS_TBL on Thu Jul 01 18:48:42 CEST 2010
    JOBCOUNT = 17484201
    $JOB_NAME
    Completing Execution of ABAP Report CSKS_CSKS_TBL on Thu Jul 01 18:48:44 CEST 2010
    2010/07/02-10:20:23-CEST [18987A33][OWBWS.OWB] Foreground Execution
    2010/07/02-10:20:24-CEST [18987A33][OWBWS.OWB] Foreground Execution deployment failed
    2010/07/02-10:20:24-CEST [18987A33][OWBWS.OWB] java.lang.Exception:
    Starting Execution of ABAP Report ZOWB on Fri Jul 02 10:20:23 CEST 2010
    ERROR: The file C:Öxxxxx.dat is already open
    Exit on error: Execution of ABAP Report ZOWB on Fri Jul 02 10:20:24 CEST 2010
         at oracle.wh.runtime.platform.operator.sap.NativeSAPOperator.execute(NativeSAPOperator.java:224)
         at oracle.wh.runtime.platform.adapter.rtp.NativeExecutionAdapter.execute(NativeExecutionAdapter.java:43)
         at oracle.wh.runtime.platform.service.controller.ExecutionController.execute(ExecutionController.java:70)
         at oracle.wh.runtime.platform.service.controller.ExecutionController.execute(ExecutionController.java:23)
         at oracle.wh.runtime.platform.service.ExecutionManager.run(ExecutionManager.java:36)
         at java.lang.Thread.run(Thread.java:595)
    Thank you.
    Edited by: user8916416 on 02-Jul-2010 03:57

    Problem solved by recreating the mapping. Strange though.
    Edited by: user8916416 on 02-Jul-2010 03:56

Maybe you are looking for

  • What will happen to the stuff in my keychain after today? I don't want iCloud. Can I keep the keychain? in my system?

    what will happen to the stuff in my keychain after today? I don't want iCloud. Can I keep the keychain in my system under lion? Can someone please help me?

  • LaserJet Pro 200 color MFP M276nw scan to computer file

    when we attempt to scan  we have three options on the printer 1. Scan to usb drive 2. Scan to Network folder 3. Scan to e-mail the only way we can scan is to choose #1. If we want to  attach a scan to an e mail or place it in a file the only way that

  • Dunning Issue in ECC 6.0

    Hi Experts, I am having some issues in dunning, looking forward some help on this. Here is the requirement. The company sends out dunning letter every 15th and 20th of the month for the items due for last month, for example if a customer has transact

  • Notification Action Log missing fields

    Hello, We are working with Quality Notifications in SAP and have found the following issue: Some of the changes made on a quality notification do not get recorded in the action log. Examples are: Additional batch field, Subject long text, adding or d

  • C03 Error - 1.5 Months after activation date still...

    Hi, I ordered BT vision and broadband back at the start of April. Activation date was 21st April. Broadband worked straight away but I received the c03 error on my bt vision service. 9 Calls later still no further forward. Each call they helpline peo