Calling procedure in owb mapping

Hi,
I am calling a procedure in a OWB mapping. THis procedure deletes the records from the target table based on key column of source table with some additional logic involving tables from other schemas. I dont know how to connect this procedure in the mapping to the target. Can u help. Thanks

I am using a transformation operator to call the procedure. Should i use post mapping op and include the logic to delete those recs.Its depents on you if you use the transformation operator it will be part of mapping if using in Map.
and if use Post mapping that will be called once mapping will be executed.
Cheers
Nawneet

Similar Messages

  • How to use external procedures in OWB Mapping

    Hi,
    Does anyone have an exmple of using external procdures in Mapping.
    Thanks
    mandi

    Hi Mandi,
    you can use Public and self created external Procedures/Functions in a Mapping.
    You can integrate them in Expressions, e.g.
    or use them as Post or Premapping in a Mapping.
    It´s simple, just play a bit :-)
    Only on a few Things you´ve to watch:
    Every external Objects you want to use in a Mapping must be known in the Metadatas.
    If you create a Mapping under the User scott,(e.g.), and you want to use
    an external Procedures/Functions from the User Tiger,(e.g.), you must make sure
    that theres a connection between these two Schematas.
    For such things you can create a Connector in the Control Center.
    Regards
    Lone

  • How to call Stored Procedure in OWB?

    Hi,
    I'm not able to call stored procedures in the OWB. There are transformations available to call the functions namely Mapping Transformation, but i didnt find any such transformation for stored procedures.
    I was able to validate, generate ad deploy the stored procedure, but coudn't find any trasnformation which calls the stored procedure.
    And my source and the target are in the same schema, hence a connector module is also not needed.
    Can anyone help me in this regard and explain how to call a stored procedure in the Oracle Warehouse Builder?

    Hi Patrick,
    Thanks a lot for your reply.
    Hey Patric, sorry to bug you again.
    Regarding calling the Stored procedure, mine is a very simple scenario.
    I have created a table with two fields say A and B. My stored proc takes an input A1. The stored proc then selects the B field from that table when A1 has the same value as A.
    Then i check the condition, if the selected value is null then set the output variable to 'N'. Else to 'Y'.
    The logic that i'm following in OWB is:
    1.) create a mapping which contains the source as a table.
    2.) Give the field A in that table as an input to the Stored procedure which i can have it my Mapping Trasformation.
    3.) Then i need to specify the condition that the field A in the table should be equal to A1. And if equal, then fetch the value from the table and display either 'Y' or 'N' based on the condition that is checked in the Procedure.
    But the problem here i'm facing is that,i'm not able to store the output into a file, since the procedure doesnot return a value. And my target is a file.
    should i need to change my logic.
    Regards,
    Abhinav.

  • 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

  • Importing packages/procedures into OWB

    Is it possible to import packages or procedures into OWB that are stored on a different database?
    I want to call a procedure in a mapping that is stored on a different database. I can only import tables and views (as data source ) from other databases.
    I can only import PL/SQL packages into OWB if they're stored in the current database.
    Does anybody have a solution?
    Regards,
    Maurice

    Maurice,
    Essentially the import uses a dblink, so you have the option to specify the dblink to another place and you should be able to see/import that pl/sql.
    The most elegant and prefered way however is to import the pl/sql into the public transformations node (I'm using OWB 9.0.4). This is a bucket that holds sharable pl/sql and seems to address the need for you.
    Here again you create the dblink and point at the remote db schema that owns the pl/sql.
    Hope this helps,
    Jean-Pierre

  • Stored procedure in OWB

    Hi ,
    I am new to OWB.
    I want to call a stored procedure in my Mapping and out put stored procedure is Complete dataset (i.e Multiple rows).
    Please help me how to implement this in OWB
    Regards
    Regards
    Kandasamy

    Hi
    I think you should use table function.
    Ott Karesz
    http://www.trendo-kft.hu

  • 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

  • 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

  • Set parameter (call procedure) before selecting view

    Dear all,
    we want to query a view from an oracle database. The view requires a workspace to be set using a procedure (background: we want to report Oracle Warehouse Builder execution time. to query the table/view with the performance data a procedure called wb_workspace_management.set_workspace('OWB','OWB') needs to be called at the beginning of the session.
    We have imported the view to OBIEE but don't know how we can set the workspace - execute the procedure - at the beginning of each session.
    Any idea where to go ?
    Regards,
    Knut
    Edited by: knherzog on 20.06.2011 06:44

    Hi Knut,
    I do not understand exactly what you are trying to achieve, but I think you have to take a look at the Connection Pool. Here you can add some scripts / procedures to be executed on connect or disconnect. You can also execute these scripts / procedures before or after query.
    Hope this is what you are looking for.
    Cheers,
    Daan Bakboord
    http://obibb.wordpress.com

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

  • 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

  • Calling Procedure for each record ?

    Hi,
    I am using a procedure in a mapping.
    I defined the procedure which is having 4 out parameters.
    I am assigning these default values to the tables in a mapping.
    When I see the generated code in a mapping, I observed that, the procedure is being called for each record.
    But actually, its enogh to be called only once.
    Could any one please help me, how can I restrict the procedure calling for each record.
    Any help would be greatly appreciated.
    Thank you,
    Regards,
    Gowtham Sen

    Hi,
    U can use MAP-INPUTS operator to give the inputs to the procedure and use a PRE_MAPPING operator to call the procedure. this way even if u feel u want to make the mapping running thru an scheduler u can still use it without changing the code.
    Regards
    Bharath

  • OWB mapping issue

    Hi,
    I we have an issue with 10gR database and OWB mapping.
    When I run the generated SQL of the OWB mapping it hardly takes any time to complete.
    But when I run the mapping through OWB client or Run
    the process flow which calls the mapping it takes huge amount of time and does'nt complete sometimes.
    Please can someone suggest something ?
    Regards,
    S

    Hi ,
    Check if that mapping is taking time for auditing purpose only .
    If yes then you can consider to pure old audit information from OWB repository .
    You can use the script provided by Oracle to purge audit information .
    Else read Metalink Note 430755.1 "How To Purge OWB Execution Audit Tables Using The Truncate Command"
    Thanks,
    Sutirtha

  • Executing an OWB mapping from sqlplus

    Hi
    I am trying to run an OWB mapping using the OWB provided script sqlplus_exec_template.sql. Here is the syntax I use:
    @Script\sql\sqlplus_exec_template.sql OWB_RUN_OWNER CODE_LOC PLSQL MAPPING_TI "," ","
    I am able to successfully execute my task when I use the above script. However, when the account pertaining to 'CODE_LOC' is locked, the script fails and gives me an error message that the account is locked.
    Our security standards expect the CODE_LOC account to be locked. Is there a way around it ? When the mapping is executed, does the Runtime repository owner lookup the task from the Code location or attempts to connect to the account ?
    Can someone advise me on whether I can successfully execute a mapping that is deployed to a locked account ?
    Thanks

    Hi
    The only way I can think of is when the account X is locked, to have granted execute on the packages for the map to schema Y which is unlocked and execute the package MAIN procedure/function from schema Y.
    Cheers
    David

  • 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

Maybe you are looking for

  • QT 7 PRO?

    If i get Quick Time 7 Pro, can i convert my movies that i purchase off of iTunes to regular ol' MP4 so i can play it on my Cell Phone and my PSP?

  • Difference in balance Drag year 2013 2014

    I have a problem; when I run the drag balances; the balance of 2013 was doubled in 2014. But at the level of visualization; because when I check for fagll03 shows the correct value. I appreciate your help

  • Non Archivelog Database- Undo Data files Deleted-How to Open Database ??

    I am doing some test in Lab server. Unforunately Undo Tablespace datafiles are deleted from the server. Database is running in No archivelog Mode and I don't have any any type of Backup. Last one week, i was doing only read only work with database. S

  • Zooming in with Mac Acrobat

    Hello, I've just gotten my Mac here at work, after being a PC user for 20 years. I love it. But, I'm flummoxed by some "shortcuts" I was used to on the PC. Specifically, I need to be able to zoom in on PDF pages. I know I can zoom with command + +. B

  • Minimum Trusted RFC's for productive system

    Hi! We have very strict requirements dealing with set up of Trusted RFC for productive system for ChaRM approach in SOLMAN. Can some one tell me which Trusted RFC's and users for the productive system do I need? a) Trusted RFC is not mandatory for th