OWB mapping execution details

Hi
Can you please let me know whether
there is any way to check the last execution details of
a mapping, apart from checking the repository browser in Warehouse Browser.
Sometime the Repository Browser web page does not open
properly, so i want to know whether there is any alternative to it.
-MD

Hi,
As far as I know OWB10g doesn't have workspaces, just check your runtime repository environment for the public views, and you're good to go.
To give you an example, see below the code I used (in OWB10gR1) to retrieve mapping run details; has been around for a while (I started it with 9.2.0.4) so probably some room for improvement.
I haven't done all that much in 'Paris' so maybe some views have changed a bit, at least it will give you some inspiration :-)
Good luck, Patrick
============================================
select rae.task_object_name    task_mapping
,      rae.creation_date       task_started_at
,      rta.last_update_date    mapping_ended_at
,      rae.return_result       task_result
,      rae.elapse              task_elapsed
,      rta.rta_elapse          mapping_elapsed
,      rta.rta_errors          "#ERRORS"
,      rta.rta_select          "#SELECTS"
,      rta.rta_insert          "#INSERTS"
,      rta.rta_update          "#UPDATES"
,      rta.rta_merge           "#MERGES"
,      rta.rta_delete          "#DELETES"
,      rte.rte_dest_table      error_tgt_table
,      rte.rte_sqlerrm         error_message
,      rte.rte_statement       map_statement
,      rte.nr_of_suberrors     "#STATEMENT_ERRORS"
from ( select rta_iid
        ,      rte_dest_table
        ,      rte_sqlerrm
        ,      rte_statement
        ,      count (rte_iid) nr_of_suberrors
        from pes_rep9204.wb_rt_errors
        group by rta_iid
        ,      rte_dest_table
        ,      rte_sqlerrm
        ,      rte_statement)              rte
,      pes_rep9204.wb_rt_audit            rta
,      pes_rep9204.wb_rt_audit_executions rae
where  rae.audit_execution_id = rta.rte_id(+)
and    rta.rta_iid            = rte.rta_iid(+)
order by rae.audit_execution_id desc;Note that pes_rep9204 was the repository owner here.

Similar Messages

  • 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.

  • 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

  • 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 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?

  • Owb mapping parts execution order

    Hello.
    Let's imagine that we have a owb mapping with two independent parts (or threads or chains of operators, etc) inside it. Is it possible to investigate which one will be executed first?
    Sorry for my English :)

    There's a Target Load Order property of the mapping

  • What has caused "data error count"  under execution detail on Audit browser

    Hi,
    I have a simple mapping that load data from external table to target fact table. From OWB Runtime Audit browser, the Execution Details page show the status= Complete + <Red error sign>. And the value under Data error count is 2563. Where can I look for information about what has caused this errors or what the data error are? The SQL*Loader log file looks OK and no bad file generated. And I don't see suspecious under WB_RT_AUDIT*, WB_RT_ERROR tables It's owb9ir2 on 9iDB Thanks.

    Solved. I set the audit level to the highest and re-executed and can see the error msg now. It would be nice if audit broser can show the report for all the rejected rows.

  • Logging start & end time of map execution

    Hello,
    I want to log start & end time of execution of my map (OWB 11g), so I've created a table for this purpose and I used it in every map that I want to log time, twice; First for logging start time, and second for end time.
    I pass a constant with SYSTIMESTAMP value through my log table and also name of my map. but the problem is, both of my records' time (start & end) are very near to each other (difference is in milliseconds!) however my map takes time for more than 2 minutes! So, I've changed my map Target Load Order to: [log table for start time] + [Main tables of my map] + [log table for end time]. I've set my map Use Target Load Ordering option True, too.
    Why it doesn't work? Is there any better solution for logging every map execution time in a table, or not?
    Please help me ...
    Thanks.

    To do that, I have created a view that lists all processes that are running or finished. The view contains fields:
    process_name
    process_type (plsqlmap, plsqlprocedure, processflow, etc)
    run_status (success, error, etc)
    start_time
    end_time
    elapse_time
    inserted
    updated
    deleted
    merged
    You could insert into your log table using select x from this view after every map, or, how I do it, is to insert into log table after every process flow. That is, after my process flow is complete I then select all of the details for the maps of the process flow and insert those details into my log table.
    Here is the SQL for my view. This is for 10.2.0.3. For
    CREATE OR REPLACE FORCE VIEW BATCH_STATUS_LOG_REP_V
    AS
    (SELECT PROCESS_NAME,
    PROCESS_TYPE_SYMBOL,
    (CASE
    WHEN RUN_STATUS_SYMBOL IN ('COMPLETE_OK', 'COMPLETE') THEN 'SUCCESS'
    WHEN RUN_STATUS_SYMBOL IN ('COMPLETE_FAILURE') THEN 'ERROR'
    WHEN RUN_STATUS_SYMBOL IN ('COMPLETE_OK_WITH_WARNINGS') THEN 'WARNINGS'
    ELSE 'NA'
    END
    ) RUN_STATUS_SYMBOL,
    START_TIME,
    END_TIME,
    ELAPSE_TIME,
    NUMBER_RECORDS_INSERTED,
    NUMBER_RECORDS_UPDATED,
    NUMBER_RECORDS_DELETED,
    NUMBER_RECORDS_MERGED
    FROM OWB_RUN.RAB_RT_EXEC_PROC_RUN_COUNTS
    WHERE TRUNC (START_TIME) >= TRUNC (SYSDATE) - 3)
    ORDER BY START_TIME DESC;

  • OWB Mapping and Sqlloader error.

    Hi All,
    OWB Config Details is as follows:
    Oracle 9i Warehouse Builder Client: 9.2.0.2.8
    Oracle 9i Warehouse Builder Repository: 9.2.0.2.0
    I developed a mapping which involves a source text file delimited by comma with following structure.
    Deptno,Dname,Loc
    10,Account,New York
    20,Sales,Boston
    ,Logistic,New Jersey
    This data is uploaded into Table scott.dept.
    Deptno is primary key.
    The source file consist of one record with Deptno Null.
    For this mapping Number of errors is set to : 0.
    When the mapping is executed sqlloader rejects the record and append the same to bad file, although the sqlloader rejects the record mapping execution status is displayed as successful.
    This seems to be problem since we included above mappings in process flow and depending on success of the mapping update some control table. This results in inconsistency and also loss of data since we set loading type to Truncate / Insert for the target table.
    Can someone please let me know work around for this?
    Thanks in Advance.
    Regards,
    Vidyanand

    I have logged a bug (3940052) on this. As a workaround, have you tried to use an external table instead of a file, thus producing a PL/SQL map instead of SQLLoader?
    Regards:
    Igor

  • ORA-04052: error occurred when looking up remote obj in mapping execution

    Hi,
    While executing an OWB mapping, I am getting the following error:
    ============
    Starting Execution UII_D_MAP_SPC_INSTALLATION_SIT
    Starting Task UII_D_MAP_SPC_INSTALLATION_SIT
    ORA-04052: error occurred when looking up remote object [email protected]
    ORA-00604: error occurred at recursive SQL level 1
    ORA-02019: connection description for remote database not found
    ORA-02063: preceding 3 lines from BIP2S@BIPDRACONN
    ORA-06512: at "UII_ODS_OWNER.UII_D_MAP_SPC_INSTALLATION_SIT", line 73
    ORA-06512: at "UII_ODS_OWNER.UII_D_MAP_SPC_INSTALLATION_SIT", line 1672
    ORA-06512: at "UII_ODS_OWNER.UII_D_MAP_SPC_INSTALLATION_SIT", line 2353
    ORA-06512: at "UII_ODS_OWNER.UII_D_MAP_SPC_INSTALLATION_SIT", line 6838
    ORA-06512: at line 1
    Completing Task UII_D_MAP_SPC_INSTALLATION_SIT
    Completing Execution UII_D_MAP_SPC_INSTALLATION_SIT
    ============
    Actually, here UII_ODS_OWNER itself is the target schema and <<UIIVS.DEVENV1.BT.CO.UK>> is the database in which this schema exists. And the mapping "UII_D_MAP_SPC_INSTALLATION_SIT" is being executed in the same target schema UII_ODS_OWNER.
    I am not sure why this above error is coming because such a dblink 'UIIVS.DEVENV1.BT.CO.UK' does not exist in the OWB generated package code. And the 2nd dblink 'BIP2S@BIPDRACONN' does not exist in the code, intead it exists as "BIP2S.DEVENV1.BT.CO.UK@BIPDRACONN" in the package code which is correct (as per OWB configuration & database).
    Same error also comes when I try to execute the same mapping from the OWB DEPLOYMENT MANAGER.
    Thanks & Regards,
    lenin

    Good morning Lenin,
    Have you checked the implementation of the connectors and are your locations well registered?
    Has a similar setup ever worked well?
    Can you access the source table using SQL (e.g. with SQL*Plus or TOAD)?
    Regards, Patrick

  • Where is a process flow's Execution details - Log section stored ?

    Hi,
    We're using OWB 11.2.0.1.7.
    I want to know where in the database the Execution Details for a process flow is stored.
    When i run a process flow with a Java Activity, or a User Defined Activity, and it halts with an Error i can inspect what went wrong in the process flow by opening the job in the Control Center client.
    I doubleclick on the name of the job in the Control Center, the Job Details window opens.
    I click on the first node, that is the name of the Job(process flow).
    Then you click on the blue I aka 'Display Details'.
    That window has a tab called Log.
    The Log tab shows information that Java/Userdefined activity returns.
    (In my case return info from a javabased xmlparser, or exitinfo from a shell command.)
    This is the only place where i can find this info unfortunately.
    I want to know where this info is stored in the database. I tried the runtime audit vews such as:
    select e.*, m.*, l.*
    from owbsys.wb_rtv_audit_executions e
    LEFT JOIN owbsys.wb_rtv_audit_messages m ON e.audit_execution_id = m.audit_execution_id
    LEFT JOIN owbsys.wb_rtv_audit_message_lines l ON l.audit_message_id = m.audit_message_id
    left join owbsys.wb_rtv_audit_message_params p on p.audit_message_line_id = l.audit_message_line_id
    But although i can see my processflow i can not find the Log information here.
    Can someone tell me where this info is stored ?
    Edited by: MichaelR64 on 6-apr-2011 14:01

    Hi Michael
    The standard output and error streams for the Java activities are stored in
    -> ALL_RT_AUDIT_EXEC_FILES
    Is this what you are after?
    You can see the doc for it in the runtime public views section;
    http://download.oracle.com/docs/cd/E11882_01/owb.112/e10584/api_2runviews.htm#i707034
    The FILE_TYPE column will be set ot JavaErrorStream for example, with the information that was written to the Java std error stream, and JavaOutputStream will have the Java std output stream. This same technique is used for other activities - SQLPlus, SQLLoader, FTP.
    Cheers
    David

  • Unexpected error during mapping execution

    Hello,
    we are implementing business intelligence for Siebel 8.1. Having one strange issue and hoping anybody could help us out.
    We are using OWB 10.2.0.1. Certain error appears during mapping execution LOAD_SR which basically loads service requests from Siebel DB to data warehouse.
    The mapping is using two tables as input (S_SRV_REQ and S_SRV_REQ_X) which are joined by S_SRV_REQ.ROW_ID = S_SRV_REQ_X.PAR_ROW_ID (+) using Joiner operator, because I always need extension table (S_SRV_REQ_X) rows either filled either containing only nulls (when there is no corresponding extension row). Sadly, this does not work, during execution it generates:
    Error:
    ORA-00997: illegal use of LONG datatype
    ORA-06512: at "DWH_ADM.LOAD_SR", line 32
    ORA-06512: at "DWH_ADM.LOAD_SR", line 3507
    ORA-06512: at "DWH_ADM.LOAD_SR", line 4553
    ORA-06512: at "DWH_ADM.LOAD_SR", line 9984
    ORA-06512: at line 1
    Warning:
    ORA-00997: illegal use of LONG datatype
    In summary, these join conditions generate same error as above:
    S_SRV_REQ.ROW_ID = S_SRV_REQ_X.PAR_ROW_ID (+)
    S_SRV_REQ.ROW_ID (+) = S_SRV_REQ_X.PAR_ROW_ID (+)
    S_SRV_REQ.ROW_ID = S_SRV_REQ_X.PAR_ROW_ID
    Strangely, when I use join condition S_SRV_REQ.ROW_ID (+) = S_SRV_REQ_X.PAR_ROW_ID, it works. But then right join is used and some records get rejected by joiner operation (those who do not have corresponding rows in extension table).
    Could someone help me with this issue?
    Any feedback would be greatly appreciated. Thank you for your time reading this!
    Edited by: user8872556 on Sep 28, 2011 2:21 AM
    Edited by: user8872556 on Sep 28, 2011 2:23 AM
    Edited by: user8872556 on Sep 28, 2011 2:23 AM

    We still were not able to solve this issue, would greatly appreciate any effort to help us out.

  • SQL Query of an OWB map (row based)

    If I trace a session, execute an OWB map (row based), will the trace file contain the actual SQL query ?
    The problem with me is that when I am executing this row -based OWB map, it is throwing me an error CursorFetchMapTerminationRTV20007 BUT ( plus taking a long time) when I am taking out the intermediate SQL insert query,it is working fine ( and also within a very short period of time)
    Execution status = COMPLETE
    message text = ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    message text = CursorFetchMapTerminationRTV20007
    No. task errors = 0
    No. task warnings = 2
    No. errors = 1
    Since this OWB map (Truncate Insert)  is row based hence I cannot cannot get the back end query from the OWB generated pl/sql package so wondering if I trace the session, check the trace file, may be I will able to see the exact SQL query generated. But wanted to confirm the same.

    Yes, the actual SQL run in the session will be in the trace file.

  • How to track OWB mapping changes?

    Hi,
    I'm a new bee to OWB. And I have a scenario where in more than one person will work on the same mapping. so I dont see any way to track the changes made by others. Is there a way to track who updated the OWB mapping last time and the changes they have done on the mapping??
    Any help is Appreciated.
    Thanks!!

    I don't think there is a good way to track details for changes.  There is a snapshot feature, but I don't think you can see what the specific modifications were.  I don't use it.  I use periodic mdl backups in case I need to recover the design (fortunately never had to do it) or to move updated objects across (when needed I track which objects changed in a spreadsheet).  I also use a fairly primitve way of tracking my changes by storing prior versions of mappings (not all).  If I want to keep a prior version, I copy the mapping and add '_V#' at the end.  This indicates my last prior version.  Then if I want to create another copy I will rename the current '_V#' to '_V1' (i.e. '_Vn').  Next I will create a copy of the current mapping and add the '_V#' at the end.  Nothing sophisticated, but I use this sometimes and cleanup as things progress.
    If there is a way to track and see all detail changes I would love to hear about it also.
    Thanks!

  • Mapping Execution Status

    Hi,
    When we I want to see the mapping execution status, I used to look into the WB_RT_AUDIT and get the mapping name, map run id, start time, end time and status. Here the status field gives the information as COMPLETE/SUCCESS. This is relating to 9.0.4. Recently, when I upgrade to OWB 10g the same view for the status it gives as 1 and even for error also it shows as 1, how to exactly know the mapping execution status is successful or not. Pls mention the table name and column name to know the status
    Kishan

    Ola Koshan,
    When you look at the audit table WB_RT_AUDIT and check the column RTA_STATUS you'll get a number. When you decode the number you will see wether the mapping is completed, running or ended in an error.
    This can be done like this:
    DECODE (rta_status, 0, 'Running', 1, 'Completed', 2, 'Error','Else')
    Please keep in mind that if you kill a mapping, the status will still be 'running'. This is because the process will not be able to update oracle's repository (because you killed it).
    There is quite a lot you can extract from the Audit tables. I do not quite know what you mean with mentioning the table and column name to know the status... As far is I understood you are looking for the mapping status... Right?
    Regards
    Moscowic

Maybe you are looking for