How to call OWB Mappings?

Hi,
I need to call the OWB mappings from an Oracle stored procedure.How can I implement this?
Regards
Kishan

Hi Kishan,
Use sqlplus_exec_template.sql in <OWB_HOME>\owb\rtp\sql\.
Alternatively you can use similar code provided by OWB-team: http://www.oracle.com/technology/sample_code/products/warehouse/files/run_my_owb_stuff.sql
Good luck, Patrick

Similar Messages

  • How to call owb mappings using Control M

    Hi Guru's,
    Please help me with the script/steps  for calling OWB mappings in Control M.
    Thanks in advance!

    Hi Kishan,
    Use sqlplus_exec_template.sql in <OWB_HOME>\owb\rtp\sql\.
    Alternatively you can use similar code provided by OWB-team: http://www.oracle.com/technology/sample_code/products/warehouse/files/run_my_owb_stuff.sql
    Good luck, Patrick

  • Calling OWB mappings within apply handlers

    Hi,
    I have configured streams to capture changes in my source tables. And in my apply process, I have set apply handlers which try to call OWB mappings for populating data into destination tables. But I am getting an error while doing so -
    ORA-20213: Unable to create standalone job record - there may be no task defined for this map
    How can i solve this problem?
    Thanks
    Giri

    Hi Giri,
    First of all some good news. We are adding exactly this functionality to the new release of OWB (soon to be in beta).
    Now for solving this, there is another thread on the forum about this. I have not tried this myself, but if you are calling this from pl/sql you may want to use the example on OTN (run_my_owb_stuff.sql) which you can find here: http://www.oracle.com/technology/sample_code/products/warehouse/index.html
    That will create a procedure that you can call from the apply handler.
    Hope this points you in the right direction,
    Jean-Pierre

  • How to run OWB mappings from SQL*Plus

    Hi:
    I used to run OWB mappings using the sample code RUN_MY_OWB_STUFF in a customized PL/SQL procedure. This works for OWB 10g release 1 but not for OWB Paris (10g Release 2) because the execution always returns FAILURE.
    Is there something new in OWB Paris that RUN_MY_OWB_STUFF doesn't work anymore?
    Thanks,
    Hazbleydi C. Verástegui

    Hi Maruthi:
    I already check the input parameters of the mapping. I'm setting them as a custom parameters. This is the output of the execution:
    16:01:11 SQL> EXEC PR_RUN_OWBMAPPING_TABLA2('MPG_EMPLEADOS_NOMINA_PERIODO',2007,01);
    Stage 1: Decoding Parameters
    | location_name=LOC_DM_STAGING
    | task_type=PLSQL
    | task_name=MPG_EMPLEADOS_NOMINA_PERIODO
    Stage 2: Opening Task
    | l_audit_execution_id=39635
    Stage 3: Overriding Parameters
    | P_ANO%CUSTOM='2007'
    | P_MES%CUSTOM='1'
    Stage 4: Executing Task
    | l_audit_result=3 (FAILURE)
    Stage 5: Closing Task
    Stage 6: Processing Result
    | exit=3
    By the way, RUN_MY_OWB_STUFF is the same as RUN_OWB_CODE.sql except for the two first parameters (p_result and p_audit_id):
    create or replace procedure run_owb_code
    ( p_result out number
    , p_audit_id out number
    , p_repos_owner in varchar2 default null
    , p_location_name in varchar2 default null
    , p_task_type in varchar2 default null
    , p_task_name in varchar2 default null
    , p_system_params in varchar2 default '","'
    , p_custom_params in varchar2 default '","'
    , p_oem_friendly in number default 0
    is
    CREATE OR REPLACE function run_my_owb_stuff
    ( p_repos_owner in varchar2 default null
    , p_location_name in varchar2 default null
    , p_task_type in varchar2 default null
    , p_task_name in varchar2 default null
    , p_system_params in varchar2 default '","'
    , p_custom_params in varchar2 default '","'
    , p_oem_friendly in number default 0
    ) return number
    is
    How do you invoke your wrapper PL/SQL with these two first parameters?
    Thanks in advance,
    Hazbleydi C. Verástegui

  • How to migrate OWB mappings in ODI

    Dear All,
    I would require your valuable inputs for following points.
    1. How do we do the deployment on multiple sites in ODI? what is the methdology or steps? R there any third party tools to do the same? what are they?
    2. Is there any scripting language in ODI similar to OMB meta data scripting languate as in OWB which can be used to automate and speed up the multi site deployment?
    3. What is the process of step to convert OWB mappings to ODI interfaces? Does oracle provides any tools or methodology to do the migration from OWB to ODI.?R there any third party tools to do the same? what are they?
    Thanks and Regards
    Edited by: 910192 on Aug 16, 2012 10:22 PM
    Edited by: 910192 on Aug 16, 2012 11:54 PM

    910192 wrote:
    Dear All,
    I would require your valuable inputs for following points.
    1. How do we do the deployment on multiple sites in ODI? what is the methdology or steps? R there any third party tools to do the same? what are they?If you mean databases as 'sites' then you just configure seperate phyiscal connections and choose if you want to implicitly refer to each DB in your code or use Contexts to determine which database to use at run time.
    Also careful consideration / deployment of ODI Agents allow you to run / execute / invoke you code from just about anywhere you want to (Target database, remote file system, source servers etc)
    2. Is there any scripting language in ODI similar to OMB meta data scripting languate as in OWB which can be used to automate and speed up the multi site deployment?There is an SDK and groovy can be used : https://blogs.oracle.com/dataintegration/entry/odi_11g_insight_to_the
    3. What is the process of step to convert OWB mappings to ODI interfaces? Does oracle provides any tools or methodology to do the migration from OWB to ODI.?R there any third party tools to do the same? what are they?Not sure if Oracle have formally released a step by step process yet, they promise an upgrade path to OWB users to migrate, there is a consulting offer for this : http://www.oracle.com/us/products/consulting/resource-library/owb-odi-migration-ds-1367824.pdf
    ALso an italian company has / is developing a migration tool : http://www.owb2odiconverter.com/eng/index.html

  • How to call OWB Process Flow from APEX?

    Hello.
    I was wondering if there is a way that I can have a OWB process flow kick off from a button in APEX? I know you can have APEX perform PL/SQL upon being clicked, so I am wondering if there is a way that I can do the same for a process flow? We are looking to have a manual kick off for a job and we are trying to use APEX for this. Any information would be great!
    Thank you

    Hi,
    Using SOAP ?if there is a way ... please provide some examples.
    I finished my EDQ process, and now i am trying to find how to call it from APEX
    My web service WSDL is
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Header/>
      <soap:Body>
        <dn:request xmlns:dn="http://www.datanomic.com/ws" id="?">
          <dn:record>
            <dn:ID>?</dn:ID>
          </dn:record>
        </dn:request>
      </soap:Body>
    </soap:Envelope>You did not state your Apex version. If you are on 4.x then see
    Creating a Web Service Reference Based on a WSDL
    Cheers,

  • How to wrap OWB mappings?

    Hi,
    Can anyone guide me how to wrap the OWB mappings. At the production site, we do not want the client to open the OWB client and see the mappings. Even when we send the upgrades (add mappings to the project), also the client should not open the project and do it from OWB. pls post your suggestions.
    Thanks,
    Kishan

    Hi,
    Can anyone guide me how to wrap the OWB mappings. At
    the production site, we do not want the client to
    open the OWB client and see the mappings. Even when
    we send the upgrades (add mappings to the project),
    also the client should not open the project and do it
    from OWB. pls post your suggestions.
    Thanks,
    KishanKishan... Perhaps it is your choice of words but it seems like you are trying to hide your implementation from the customer? This customer will blindly run a script you deliver without even the ability to examine your work? That is a very trusting customer... one that wishes to not participate in any review (even high level) of your solution.
    Indeed... OMB will work... If you need more control you could consider using the Java API provided as well... However, if this is a customer with which you've established trust they could also provide you with VNC/ssh -x/other remote access. After all, even if the script runs perfectly 100 times at your location there still might be issues with deployment at theirs. It would be tough to build an OMBPlus script to "troubleshoot" these types of things, yes?
    Good luck...

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

  • How to call a struts action from a JSF page

    I am working on a small POC that has to do with struts-faces. I need to know how to call a struts ".do" action from a JSF page..
    Sameer Jaffer

    is it not possible to call a action from the faces submit button and/or the navigation?
    This a simple POC using struts-faces exmaples.
    Here is my struts-config and faces-config file.
    <struts-config>
    <data-sources/>
    <form-beans>
      <form-bean name="GetNameForm" type="demo.GetNameForm"/>
    </form-beans>
    <global-exceptions/>
    <global-forwards>
      <forward name="getName" path="/pages/inputname.jsp"/>
    </global-forwards>
    <action-mappings>
      <action name="GetNameForm" path="/greeting" scope="request" type="demo.GreetingAction">
       <forward name="sayhello" path="/pages/greeting.jsp"/>
      </action>
    </action-mappings>
    <controller>
        <set-property property="inputForward" value="true"/>
        <set-property property="processorClass"
                value="org.apache.struts.faces.application.FacesRequestProcessor"/>
    </controller>
    </struts-config>faces-config
    <faces-config>
    <managed-bean>
      <managed-bean-name>calculate</managed-bean-name>
      <managed-bean-class>com.jsftest.Calculate</managed-bean-class>
      <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <managed-bean>
      <managed-bean-name>GetNameForm</managed-bean-name>
      <managed-bean-class>demo.GetNameForm</managed-bean-class>
      <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <navigation-rule>
      <from-view-id>/calculate.jsp</from-view-id>
      <navigation-case>
       <from-outcome>success</from-outcome>
       <to-view-id>/success.jsp</to-view-id>
      </navigation-case>
      <navigation-case>
       <from-outcome>failure</from-outcome>
       <to-view-id>/failure.jsp</to-view-id>
      </navigation-case>
    </navigation-rule>
    <navigation-rule>
      <from-view-id>/inputNameJSF.jsp</from-view-id>
      <navigation-case>
       <to-view-id>/pages/greeting.jsp</to-view-id>
      </navigation-case>
    </navigation-rule>
    </faces-config>in my inputNameJSF.jsp (faces page)
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
    <%@ taglib prefix="s" uri="http://struts.apache.org/tags-faces" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Say Hello!!</title>
    </head>
    <body>
    Input Name
    <f:view>
         <h:form >
              <h:inputText value="#{GetNameForm.name}" id = "name" />
              <br>
              <h:commandButton id="submit"  action="/greeting.do" value="   Say Hello!   " />
         </h:form>
    </f:view>
    </body>
    </html>I want to be able to call the struts action invoking the Action method in the that returns the name
    package demo;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    public class GreetingAction extends org.apache.struts.action.Action {
        // Global Forwards
        public static final String GLOBAL_FORWARD_getName = "getName";
        // Local Forwards
        private static final String FORWARD_sayhello = "sayhello";
        public GreetingAction() {
        public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
            String name = ((demo.GetNameForm)form).getName();
            String greeting = "Hello, "+name+"!";
            request.setAttribute("greeting", greeting);
            return mapping.findForward(FORWARD_sayhello);
    }Edited by: sijaffer on Aug 11, 2009 12:03 PM

  • How to call the second mapping in the first mapping fails in the BPM

    Hi All,
    I have a scenario like this.
    There are two mappings. There is a one condition while genearying the root element of the first mapping. If this condition is not satisfies the first mapping will fail. If this mapping fails i want to trigger another mapping.
    How to achieve this functionality.
    If it is possible with BPM. how to call the second mapping in the BPM.

    Hi
    you can not create the containter for the synchronous interfaces.
    you have to craete the two asysnchronous abstact interfaces .
    thenusing those two abstract interfaces you have to define the containers in the BPM.
    and you also have to define the interface mapping b/w those two abstract interfaces.
    once you define the interface mapping you will be able to select the interface mapping using the transformation step in BPM.
    once you select the interface mapping in BPM then you will be able to selece the interfaces
    if you still face the problenm please reply me back.
    Thanks
    Rinku Gangwnau

  • How to call a mapping in a PL/SQL proc ?

    Hi all,
    I want to create a PL/SQL proc to call my mappings in the right order, and to make other operations the mapping don't do.
    The mapping I want to call is located in the packages.
    How can I call it ?
    Thanks,
    Nico

    Hi Carsten,
    Thank you for trying to help me.
    I do have the "Main" method you are talking about, but this method need a parameter (called "p_status") that I don't know how to implement...
    The mapping I create and I want to call needs no parameter, that's why I don't understand...
    This is the beginning of the main proc of my mapping package :
    PROCEDURE Main(p_status OUT VARCHAR2,
    p_max_no_of_errors IN VARCHAR2 DEFAULT NULL,
    p_commit_frequency IN VARCHAR2 DEFAULT NULL,
    p_operating_mode IN VARCHAR2 DEFAULT NULL,
    p_bulk_size IN VARCHAR2 DEFAULT NULL,
    p_audit_level IN VARCHAR2 DEFAULT NULL,
    p_purge_group IN VARCHAR2 DEFAULT NULL) IS
    x_schema VARCHAR2(30);
    x_audit_id NUMBER;
    x_object_id NUMBER;
    x_env wb_rt_mapaudit.wb_rt_name_values;
    x_param wb_rt_mapaudit.wb_rt_name_value;
    x_result NUMBER;
    x_return_code NUMBER;
    BEGIN
    etc, etc....
    ----------------------------------------------------------------------------------------------------------------------

  • Want to run owb mappings thru job schedule

    hi all,
    need some help here. hope u guys can give me an idea. all this while i've been executing my owb mappings thru the deployment manager. instead of doing so, can i execute the mappings thru scheduling?? if yes, how can i do it??
    i've tried using the OMS. From there i can create some jobs, but it's not taking from the mappings. i'm still trying. hope to get some good tips on how to do it. thanks in advance.

    Hmm, trying to execute it from the 10g web OEM, I ran into a problem - it returns the following:
    ORA-27370: job slave failed to launch a job of type EXECUTABLE ORA-27300: OS system dependent operation:accessing execution agent failed with status: 2 ORA-27301: OS failure message: The system cannot find the file specified. ORA-27302: failure occurred at: sjsec 6 ORA-27303: additional information: The system cannot find the file specified.
    I'm wondering, since I have logged in locally on the server, and the file really do exist...
    You have a clue?
    Yours
    Kim

  • SUM...OVER... in OWB mappings

    Hello,
    I need to implement the following phrase in OWB mappings, how would I do it?
    select lot, pdate, sum(rec_amount) over (order by pdate rows between unbounded preceding and current row) from S1;
    Where S1 is the result of a set operator.
    Thank you,
    GH

    Hi,
    Thanks for the quick reply oleg. I got the sum()..over() clause working thanks to your screenshot. However, i got a little side problem here. The sum()..over() clause should take data in this form (product sales table)
    PRODUCT 01/01 01/02 01/03 01/04 01/05
    A 100 200 (null) 100 (null)
    B 50 (null) 100 (null) 10
    and turn it into something like
    Product 01/01 01/02 01/03 01/04 01/05
    A 100 300 300(*) 400 400(*)
    B 50 50(*) 150 150(*) 160
    The numbers in the above table that were attached to a (*) were not generated, however, since on those dates, no transaction occurred for such product. I need to have these days since the result of such table will be mapped to a MOLAP cube. If such number doesn't exist in the tables, it certainly won't exist in the MOLAP cubes, (right?) unless there are some procedures or functions that can automatically fill in those with (*) in the cube or elsewhere.
    Please advise on this,
    GH

  • Calling owb workflow job created in oem using pl/sql

    is it possible using pl/sql to call owb workflow job which is created thru oem
    can you pl be kind enough to share a sample.
    thanks

    Hi,
    The same question was just answered by another member a couple a days ago want to run owb mappings thru job schedule :
    sqlplus_exec_template runtime_owner location_name PROCESS process_name "," ","
    sqlplus_exec_template is in "D:\oracle\oraWB\owb\rtp\sql"
    Nikolai Rochnik

  • Migrating from Dev repository to Production repository..owb mappings..

    We have OWB 9i with Oracle 9i in Dev Repository.
    We are currently in Development phase.But sooner will be migrating to production. I am new to this kind of process of migration.
    How do we go about migrating OWB mappings from development Repository to Production repository.
    Any suggestions would be helpful.It's URGENT !!
    thanks.

    I recommend you to post this in:
    Forums Home » Oracle Technology Network (OTN) » Technologies » Data Warehousing and Business Intelligence
    http://forums.oracle.com/forums/index.jsp?cat=16
    Joel Pérez

Maybe you are looking for