DYNAMIC BEHAVIOUR OF A OWB MAP..Is it possible?

hi,
i have to implement a logic which goes like this....
A ETL job will run once weekly.
The JOB consists of 3 SEQUENTIAL RUNS of the SAME map.
In 1st run, map will do some logic, and produce some o/p (a file o/p)
In 2nd run SAME MAP will perform some other logic and produce a DIFFERENT
o/p (like Loading a table in delete mode)
In 3rd run, d same map will simply insert a row in a table.
pls reply urgently..
thanx in advance.

Hi,
You ca n do it by changing the load type of target table.
As you said, the conditions will be different for each load type insert, update and delete.
The flow will be in the following way.
Source ---> splitter (Here you need to define the conditions and separate the insert rows, delete rows, and update rows.) ---> Now drag the target table 3 times and give the name as table_insert_mode, table_delete_mode and table_update_mode.
Now link the records from splitter with insert logic to table_insert_mode. and make sure the load type of target table as insert.
Now do this for remaining modes, that are delete and update. And make sure that, the load types will be delete and update.
Now, the mapping will do three types of opeations can be possible on each row according to the defined logic.
Hope this helps you.
Thank you,
Regards,
Gowtham Sen.

Similar Messages

  • OWB mapping name function?

    Hi,
    I am currently using a pre-mapping and post-mapping operators to kick off stored procedures to insert/update a record in my 'execution status' table. The inserted record in 'execution status' table has details like mapping name, process flow name, target table name etc.
    I am presently hardcoding the parameters - mapping name, process flow name and targettable name in a constant operator to pass these as input parameters to the stored procedures used in pre & post mapping.
    My query is - is there anyway I can avoid hard coding the values? that is , in owb do we have a function which tells us the name of the mapping, target table and process flow which is executing a mapping ? If so I can use the function to pass the mapping name, process flow name and target name to feed my stored procs that way I do not have to change my mapping name, table name in each different mapping.
    Thanks & Regards

    Hi,
    If you wish to get mapping names in the current mapping (OWB 10g), then you can use dynamic parameter get_runtime_audit_id and owb system views owbrt_sys.ALL_RT_AUDIT_MAP_RUNS, wbrt_sys.ALL_RT_AUDIT_STEP_RUNS
    (for example select ... from owbrt_sys.ALL_RT_AUDIT_STEP_RUNS WHERE MAP_RUN_ID = get_runtime_audit_id) or use dynamic parameter get_model_name
    read this: http://blogs.oracle.com/warehousebuilder/newsItems/viewFullItem$184
    If you wish to get mapping names in the process flow then read this thread:
    How to know which map is failed in a process flow if we have more than 2
    Regards
    Message was edited by:
    user468943

  • Problem while using dynamic geo characteristic on a map

    Dear all,
    I'm not able to display dynamic geo characteristics on a map though I am able to display static geo chars on a map. I have done the following:
    - Define the characteristic as dynamic geo characteristic.
    - Download the Geo data from the char on my local system.
    - Edit the data and enter the value in the fields X & Y (For latitude and longitue).
    - Save the file as csv and load the master data attr file back to the system along with the value of latitude and longitue.
    - Create a query and add keep only this char in a rows.
    - Use this query as a data provider for a map web item in WAD.
    After doing this I get 'Map can not be displayed' error when I execute this web template. Is there some step I have missed here? There's no problem with the IGS because I'm able to display the queries with static geo characteristics on a map using WAD.
    Another query I have is which shape file will be used and displayed as a map in the web template in case of dynamic geo chars (I'm confused because dynamic geo chars do not allow shape files to be loaded unlike the static geo chars). I'll be grateful for any suggestions on this. Thanks in advance.
    Regards,
    Sumit

    Just follow instructions for query design for class 2 renderers (symbol, bar chart, pie chart for dynamic geo-characteristics).
    "For these renderers, the dynamic geo characteristic must appear in the related data provider in the rows. You must have also selected the Longitude and Latitude display attributes to be displayed. No other characteristics or key figures must appear in the rows. Only the first column is considered by the symbol renderers. The renderers bar chart, pie chart, and pie chart (split) consider all columns."
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
    In my case it helped

  • Problem in OWB map for source change capture

    The problem is as follows:-
    Our OWB map between two different databases, captures change in data at source and populates them in target. It is a one to one map. The map is failing to process some rows from source database though it gives no:of errors as 0 in the audit view thus we infer that the map is running successfully.
    In our case, we have a composite key ( Instance_id, Version_number) at source as well as target. One instance_id can has more than one version number. We have observed that the view is picking up all the version_number for a particular instance_id but the map is unable to populate the last version_number to the target table.
    But when this map was executed in another environment and it is successfully populating all the data in the target.
    The brief description of the map is as follows:-
    The map has a view which captures all the changes in data (insert and update) .From this view we filter the rows which were already processed in previous map run (with help of watermark). Then we sort the rows based on DML type and watermark . These rows are then mapped to a target table. The loading type of the map is INSERT/UPDATE.

    Hi Nagesh,
    When we are doing I18N for that Application. Go to Navigator Tab
    Here Select Particular Projects--à src-àPackages-àsap-àvijay
    To internationalize the Web Dynpro application, copy the automatically generated *.xlf files and save them under a new name in the same directory.
    The new name must meet the following convention:
    u2022 .xlf
    For example, if you are creating *.xlf files for German,
    Use the language key de.
    Here Click on OK
    After that we can edit and translate these new *.xlf files in the S2X Editor.
    ApplyTemFirstView.wdview_de.xlf-àClick on Resource Text Tab
    Select Particular Text and Change the language to German-àClick on EDIT Button
    Here Enter German Lang-àClick on OK
    Now Go to Web Dynpro Explorer Tab
    Select Project-àRC Click on Rebuild Project
    Select Project-àRC Click on Reload
    Then Deploye the Application
    How to Check in Explorer. It is converting to German Language or not
    Open Internet Explorer
    Tool-àInternet Options -àClick on Languages Button-àClick on ADD Button
    Select German Language--àClick on OK
    Now We will Check in Portal
    Created Web Dynpro iView in Portal. That iView assign to the particular WorkSet-àAssign to Role
    Select that user Can Change Language
    Regards
    Vijay Kalluri

  • Case statement in OWB mapping

    I am trying to use a case statement in an OWB mapping. I am attempting to use it in expression builder within a filter object. Each time I try to validate the expression in the expression builder I get an error:
    Line 4, Col 6:
    PL/SQL: ORA-00920: invalid relational operator
    Below is the code used in the expression builder window:
    CASE A.ATTRIBUTE_NAME
    WHEN 'CA COMPLETION DATE' THEN RTRIM(A.C_CODE_VALUE)
    ELSE NULL
    END
    Any help with what is happening would be appreciated.
    Thank you.
    Matt

    Thank you both for you help. I initially tried to use the expression operator but was confused since the expression builder in the expression operator has the drop down list with the available SQL clauses greyed out. In the OWB documentation it states that the drop down will contain SQL clauses that are appropriate for that expression type so when I saw it was greyed out I assumed that those clauses where not valid for this operator. Sure enough though when I pasted in my Case statement it verified correctly.
    Thanks again,
    Matt

  • Array of Parameters in OWB mapping

    How do i pass an array of parameters to an OWB mapping.

    Try this and similarly you can get all operator.
    OMBRETRIEVE MAPPING 'MAP_NAME' GET TABLE OPERATORS
    OMBRETRIEVE MAPPING 'MAP_NAME' GET VIEW OPERATORS
    OMBRETRIEVE MAPPING 'MAP_NAME' GET TRANSFORMATION OPERATORS
    OMBRETRIEVE MAPPING 'MAP_NAME' GET TABLE_FUNCTION OPERATORS
    Cheers
    Nawneet
    Edited by: Nawneet_Aswal on Aug 30, 2010 8:43 AM

  • Call a shell script from a OWB Mapping or Process Flow

    Hi,
    is it possible to call a shell script from a owb mapping or Process Flow and how can i do this?
    Greetings

    Check this :-
    http://blogs.oracle.com/warehousebuilder/2010/05/how_to_use_user_defined_activity_in_owb_process_flow.html
    Cheers
    Nawneet

  • How to Execute a OWB Mapping or a Process from SQLPLUS editor?

    I need to know how can we execute a OWB mapping from SQLPLUS editor or from a Stored Procedure.

    Hi,
    You can use the MDL export/import utility for this, but as you are importing into the same repository you will end up with importing into the same project again.
    So for this you can follow the workaround as:
    ->Take export of the required mapping from the project OWB_B
    -> Rename the Project OWB_B to some thing like OWB_B_1(or any other name), note that you have to rename both logical and physical name of the project
    -> Rename the project OWB_A to OWB_B and if you import the MDL all the objects will be imported to OWB_B then you can rename back the project to OWB_A
    -> Finally rename the project OWB_B_1 to OWB_B (to its original name).
    Regards,
    Pnreddy

  • Transformations not occuring properly using PIVOT operator in OWB mapping.

    Hi ,
    In our project we have a OWB Map UII_D_MAP_SPC_CUST_FAULT_NATTR which is used to populate UII_CUSTOMER_FAULT table in our target side.
    The source table which populate UII_CUSTOMER_FAULT is SR_S_TABLE_N_ATTRIBUTEVALUE (a materialized view in another External Db)
    This Mview has 2 columns: S_N_STRINGVALUE & N_NAME.
    When N_NAME is 'FAULT_REPORT_CODE' the corresponding S_N_STRINGVALUE value should populate the REPORT_CODE field in UII_CUSTOMER_FAULTin the target sde.
    This source to target transformations is being done by using UNPIVOT operator in this mapping UII_MAP_SPC_CUST_FAULT_NATTR.
    In ideal case when S_N_STRINGVALUE is NOT NULL, REPORT_CODE value should be populated with the value of source field value (ie the value of S_N_STRINGVALUE) and when S_N_STRINGVALUE is NULL , REPORT_CODE should be populated with 'XX'.
    But in some cases REPORT_CODE value in UII_CUSTOMER_FAULT table is populated as NULL when S_N_STRINGVALUE is NOT NULL
    which should not happen.
    We suspect that there is some prpblem in the UNPIVOT operator, but we are not able to track down the exact location where it is failing. Can you please help in resolving this problem?
    Shall we remove Unpivot operator and use CASE statement in some package that will be called through Expression operator?
    Please advise.
    Regards
    Arinjit Dhar

    Arinjit,
    Have got any solution forthis. Today I ran into exactly the same problem. If you have got the solution, can you please post it in the forum.
    Ott Karesz,
    I have posted my SQL which got generated. The problem is when I am running the SQL just for the particular data set, it is giving the output properly. But what confuses me more is, when I run the mapping just for few records, it is populating the values correctly, but when running the mapping for all the records, then it populates null values for those records.
    Generated SQL:
    INSERT
    INTO
    "TB_PIPE_1"
    ("ASSETNUM",
    "SITEID",
    "TYPE",
    "STATUS",
    "YEARLAID",
    "MATERIALCODE",
    "PRESSURECODE",
    "DIAMETER",
    "METHODLAID",
    "JOINTTYPE",
    "SDRCOL",
    "LENGTHLAID",
    "LENGTHDIGITISED",
    "MEASUREUNITID")
    SELECT
    "UNPIVOT"."ASSETNUM" "ASSETNUM$1",
    "UNPIVOT"."SITEID" "SITEID$1",
    "UNPIVOT"."CLASSIFICATIONID" "CLASSIFICATIONID$1",
    "UNPIVOT"."STATUS" "STATUS$1",
    "UNPIVOT"."YEAR_LAID" "YEAR_LAID$1",
    "UNPIVOT"."MATERIAL" "MATERIAL$1",
    "UNPIVOT"."PRESSURE" "PRESSURE$1",
    "UNPIVOT"."DIAMETER" "DIAMETER$1",
    "UNPIVOT"."METHODLAID" "METHODLAID$1",
    "UNPIVOT"."JOINTTYPE" "JOINTTYPE$1",
    "UNPIVOT"."SDR" "SDR$1",
    "UNPIVOT"."LENGTHLAID" "LENGTHLAID$1",
    "UNPIVOT"."LENGTHDIGITESED" "LENGTHDIGITESED$1",
    "UNPIVOT"."MESUREUNIT" "MESUREUNIT$1"
    FROM (SELECT
    "ASSETNUM" "ASSETNUM",
    "SITEID" "SITEID",
    "STATUS" "STATUS",
    "YEAR_LAID" "YEAR_LAID",
    "CLASSIFICATIONID" "CLASSIFICATIONID",
    MIN(CASE WHEN "ASSETATTRID" = 'MATERIAL' THEN "ALNVALUE" ELSE NULL END) "MATERIAL",
    MIN(CASE WHEN "ASSETATTRID" = 'PRESSUREREGIME' THEN "ALNVALUE" ELSE NULL END) "PRESSURE",
    MIN(CASE WHEN "ASSETATTRID" = 'DIAMETER' THEN "NUMVALUE" ELSE NULL END) "DIAMETER",
    MIN(CASE WHEN "ASSETATTRID" = 'METHODLAID' THEN "ALNVALUE" ELSE NULL END) "METHODLAID",
    MIN(CASE WHEN "ASSETATTRID" = 'JOINTTYPE' THEN "ALNVALUE" ELSE NULL END) "JOINTTYPE",
    MIN(CASE WHEN "ASSETATTRID" = 'SDR' THEN "ALNVALUE" ELSE NULL END) "SDR",
    MIN(CASE WHEN "ASSETATTRID" = 'LENGTHLAID' THEN "NUMVALUE" ELSE NULL END) "LENGTHLAID",
    MIN(CASE WHEN "ASSETATTRID" = 'LENGTHDIGITISED' THEN "NUMVALUE" ELSE NULL END) "LENGTHDIGITESED",
    MIN(CASE WHEN "ASSETATTRID" = 'DIAMETER' THEN "MEASUREUNITID" ELSE NULL END) "MESUREUNIT"
    FROM (SELECT
    "MV_PIPE"."ASSETNUM" "ASSETNUM",
    "MV_PIPE"."SITEID" "SITEID",
    "MV_PIPE"."STATUS" "STATUS",
    "MV_PIPE"."YEAR_LAID" "YEAR_LAID",
    "MV_PIPE_SPEC"."ASSETATTRID" "ASSETATTRID",
    "MV_PIPE_SPEC"."NUMVALUE" "NUMVALUE",
    "MV_PIPE_SPEC"."ALNVALUE" "ALNVALUE",
    "MV_PIPE_SPEC"."MEASUREUNITID" "MEASUREUNITID",
    "MV_PIPE"."CLASSIFICATIONID" "CLASSIFICATIONID"
    FROM "MV_PIPE_SYN" "MV_PIPE",
    "MV_PIPE_SPEC_SYN" "MV_PIPE_SPEC" WHERE "MV_PIPE"."ASSETNUM" in ('466651706','606703143') and ( "MV_PIPE"."ASSETNUM" = "MV_PIPE_SPEC"."ASSETNUM" )) "OUTGRP1"
    GROUP BY
    "ASSETNUM", "SITEID", "STATUS", "YEAR_LAID", "CLASSIFICATIONID") "UNPIVOT"

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

  • Can not run OWB Mapping automatically by OEM? .  Very urgent. Pls help me

    Hi all,
    Pls help me.
    I am using OWB 10g under Oracle 10g. I want to run OWB Mapping automatically by OEM.
    I installed Oracle Database 10g fully but don't have OEM in this. After that, I installed Oracle Client 10g. In this product, there is OEM 10g. I read some topic as "want to run owb mappings thru job schedule" and also read http://otn.oracle.com/products/warehouse/htdocs/oem_scheduling_viewlet_swf.html
    But my OEM not as same as in this . It don't have job menu and OEM Console Login window and don't have also where I can put username/pwd to login into OMS???
    I don't know this problem.
    Pls help me.

    Hi,
    Here are two possible solutions:
    1) If you have OEM 9i anywhere in your environment you can use this for scheduling the OWB jobs.
    2) If your environment is 10g only you need to install 10g Grid Controll. This product has replaced the OMS / Java console of earlier releases, and contains the same functionality for scheduling jobs.
    Note that if you are using the sql_exec_template to execute your mappings you can schedule and run these from any machine on the network, not just the target server.
    Hope this helps,
    Roald

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

  • Row movement Disabled at DB- creating problems in OWB mapping

    Hi All,
    We have a OWB mapping 'XXXXX' with Default operating mode set to 'setbased-failover to rowbased' mode.The generation mode is set to 'Row Based'.This is called in a processFlow 'YYY'
    This was running fine until sometime ago.
    Recently at the database row movement on tables was disabled.
    After this the 'YYYY' fails with a 'Warning:ORA-01403: no data found' when it calls 'XXXXX'.
    Any idea on what this means.Is it something to do with the row movement disablin done recently?
    Is the default operating mode and generation mode combination selected by us valid.
    Please provide any inputs /queries by which we can trace the exact problem.
    Many Thanks!!
    BRgds
    Sridha

    I don't think that issue will be with OWB.
    take generated code and run in directly in database and check are you getting the same error.
    Cheers
    Nawneet

  • How to use OMB to change filter conditions in OWB maps

    Hi,
    I want to know how we can use OMB to change filter conditions in an OWB map.
    As per my scenario i have a filter operator FLTR_1 in my maps and i have to change its filter condition from
    INOUTGRP1.ID IN (1,2)
    AND
    INOUTGRP1.VALUE > CONST_0_MAX_VAL
    to
    INOUTGRP1.ID IN (1,2)
    AND
    INOUTGRP1.VALUE > CONST_6_MAX_VAL
    Just for everybody's information we are migrating from OWB 9.2 to OWB 10.2 and we have called procedures in constants and used their values in filter conditions.OWB 10.2 generates the values for constants in a different way than OWB 9.2 thats why this change is required.I wish to automate the act of changing constant names so we can save time in changing the maps.
    Thx

    Carsten,
    I created a map in OWB 10.2 and ran the following command
    The filter operator name in this map is FILTER
    Carsten Herbe wrote:
    OMBALTER MAPPING 'TEST_MAP' MODIFY OPEARTOR 'FILTER' SET PROPERTIES (FILTER_CONDITION) VALUES ('INOUTGRP1.ID IN (1,2) AND INOUTGRP1.VALUE > CONST_6_MAX_VAL ')
    I got this error:
    OMB02933: Error getting child object of type OPEARTOR with name FILTER: MMM1034:
    Property OPEARTOR does not exist.
    Could you pls help on this.
    Thx

  • Problem in running OWB maps

    Hi ,
    We use DBMS to kick our OWB maps.Previously it worked very fine ..But from near about 2 weeks we are facing problems.
    Problem is though our JOB_QUEUE_PROCESS is set to 8 and even I can see 8 jobs with this_data populated in dba_jobs (means jobs are running as we cannot query DBA_JOBS_RUNNING view to see the no of jobs running as it is taking too much time ) we can see only entry of two of there maps in WB_RT_AUDIT.other maps start only if these two get complete .
    and there is huge time difference between actual job start time and the entry into WB_RT_AUDIT table .
    can any one help us with solution.
    Bcos of this issues load which used to take max 4 hours is now taking 24 hours..
    Thanks & Regards

    I've successfully installed OWF as described in Installation guide (all components are on the sam server).
    But when I deploy a workflow in OWB I get some errors. In the job details
    I find ORA-00942 and RPE-02053. It seems that the workflow repository is missing.
    Are there additional steps for creating a workflow repository?
    Or what is wrong? All installation logs (wf.log and workflow.log) are without errors and with success messages.
    Any idea?

Maybe you are looking for

  • ASA VPN - Overlapping networks

    Hello. I have a problem that I have a small branch with ASA-5505 using the VPN connects to two branches and headquarters, unfortunately, even though I used the crypto-map priority, in this configuration, it does not work. I mean, first to move traffi

  • IMac 10.6.8 to Mountain Lion

    Version:1.0 StartHTML:0000000105 EndHTML:0000010785 StartFragment:0000008258 EndFragment:0000010749                     Hello everyone: I have and old iMac (the white one), upgraded with Mac OS X 10.6.8. The computer works perfectly, I´m a photograph

  • Creation of Library and Report in Report Painter with Z tables.

    HI, When I am creating library in report painter with Z table it is giving the following error message 'Table ZCO_SEMI_FIN_VAL is not installed in Report Writer'. Can u help me how u install Z table in report painter and create the characteristic and

  • Battery Failure and Kernel Panics. Help!

    Hi all, Thanks in advance for your help. About a week ago, after I had left my computer alone for two days, it randomly shut off when the meter up top said it had 40 minutes. Then, when it was closed in sleep mode and I opened it, it told me it had t

  • Remove unnecessary field in Web UI - not applied

    Hello, dear Experts! I'm trying to remove unnecessary fields from contact view page in Web UI. I performed the following steps: 1. created new config role key ZTMP 2. created new business role and binded it with my config role key 3. bound business r