Execute a mapping into a procedure

Hi,
I had OWB 3i, and I had a mapping that execute a post-mapping that was a call to a procedure.
This procedure, execute sometimes another mapping, calling the main of the package.
Now I had migrated to OWB 9.2.0.2.8, and it doesn't work.
How have I to call the mapping to execute it from de procedure?
Thanks.

Ivan,
Check out the templates in your client-sides
OWB_Home\owb\rtp\sql, like sqlplus_exec_template.sql.
This should lead you into a good direction.
Regards,
André Klück

Similar Messages

  • How to run a mapping from plsql procedure in some common group?

    Hi,
    I have a Workflow process, when I running him from OWB I saw in OWB Browser first the name of this process and under this process mappings that in this process.
    In one mapping I have some pre-mapping procedure that doing something and prepare some parameters for other mapping and run it (steps for running a mapping I take from sqlplus_exec_template.sql script) and I can't put this mapping into Workflow process for some reasons.
    But in OWB browser this mapping doesn't belong to my Workflow process, they located on the one level.
    How to modify steps for running mapping so that my mapping is located under this Workflow process in OWB Browser?

    Hi,
    It sounds like what you are trying to do, is run one mapping in a pre-mapping process of another mapping. You use a wrapper that implements sqlplus_exec_template.sql in PL/SQL. Is that correct?
    I don't think that by the way you execute this mapping, it ends up in the context of the process flow. The reason is because according to Warehouse Builder the mapping is being invoked standalone (through the wrapper that implements the template). As a result, the context in which Warehouse Builder would log the messages is lost.
    What I suggest you do (assuming I understand the problem correctly), is run the mapping as a separate mapping in the process flow. Because in the current release we do not support passing output parameters in the process flow, you will have to (temporarily) store the results of the first mapping in a table and pick it up from there in the other mapping. In the next major release (autumn 2004) we will support passing parameters between activities.
    Thanks,
    Mark.

  • How to execute a statement in forms procedure like SQL EXECUTE IMMEDIATE

    Hi to all,
    In a form I have created this procedure:
    PROCEDURE insert_rows (
    tbName IN VARCHAR2,
    list_of_fields IN VARCHAR2,
    origin_table IN VARCHAR2,
    wCondition IN VARCHAR2 DEFAULT NULL)
    IS
    where_clause VARCHAR2 (2000) := ' WHERE ' || wCondition ;
    table_to_fill VARCHAR2 (30);
    BEGIN
    -- Exist the table ?
    SELECT OBJECT_NAME INTO table_to_fill FROM USER_OBJECTS
    WHERE OBJECT_NAME = UPPER(origin_table) AND OBJECT_TYPE = 'TABLE' ;
    IF wCondition IS NULL THEN
    where_clause := NULL;
    END IF ;
    EXECUTE IMMEDIATE 'INSERT INTO ' || table_to_fill || ' SELECT ' || list_of_fields || ' FROM ' || origin_table || where_clause ;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    -- Here the Alert
    END;
    But, when I compile this error is displayed:
    Function not supported from client side application corresponding to SQL statement EXECUTE IMMEDIATE
    How can to correct this script for my form ?
    I hope in Your help.
    Best Regards
    Gaetano

    You have two options:
    1)To create this procedure in database
    2)Yo use the forms built-in FORMS_DDL instead of execute immediate , altering the one provided
    Sim

  • Execute owb mapping as a whole instead of giving step by step or skip

    Hi friends,
    I need a help from you.. Actually i am working with owb 10.2 and db 10.2. I am able to do all the process successfully like debugging, reinitializing and entering the data into the table.
    The thing is while debugging,i have to give step or skip to execute the mapping. Now i wanted to run the mapping as a whole,that is,once if i give debug,all the process must execute automatically and data must enter into the table. I need to avoid step or skip process.
    how to achieve that?? pls help me out..
    Thanks in advance,
    Bharath.
    Edited by: user11342336 on Aug 10, 2009 12:06 AM

    user11342336 wrote:
    Thank you very much for ur reply.
    and one more thing, consider, i have two or three mapping to be executed one by one.i.e one after another.
    say for an example,i have three stages. stage1,stage2 and stage3. all are inter-related and execute one stage by one.
    My job is to debug the stage1 alone. once it finished executing the stage1,it should automatically debug stage 2 and stage 3. and the data must enter into the table in all the stage.
    how to achieve this??
    Thanks much,
    Bharath.Any reason you can't debug them one at a time? Ideally, if you successfully execute stage1, you should have the intermediate data in some table. Resume debugging on stage2 from there.

  • How to execute a mapping based on an event

    Hi
    I am on OWB 10.2.0.3. and Oracle 10.2.0.2. I have a mapping which is fine, deploys well, I can execute using the control manager.
    I also created a schedule module in OWB, created a schedule for a specific date and time and also an interval, configured the mapping to this schedule. The mapping gets executed successfully at the scheduled time.
    The requirement is this mapping needs to be executed by an external process (oracle but a different application in a different machine). The team owning this process is ready to insert a record in a table. Which I want to sense and execute this mapping.
    I already have created a procedure so that this mapping can also be run from pl/sql. I can create an after-insert trigger in this table so call this procedure, but that will make the whole think synchronous and the external process will have to wait for this mapping to complete to proceed further which is not acceptable by them.
    Is there a way I can check for the record in this table and exec the mapping from OWB?
    Can somebody please help and provide me pointers how I can schedule a mapping based on an event (insertion of the record) without (preferably) or with Oracle Workflow.
    Thanks a lot in advance!
    Maruthi

    Thanks Detlef,
    The problem I have is the trigger will make it actually synchronous with the process that inserts the record in the table.
    Even if I define the trigger as AUTONOMIUS_TRANSACTION, both the process will not parellel. setting this I can have commits and rollbacks in triggers but they will be synchronous. I want this mapping to run asynchronously so that the main process inserts the record and continues with the rest of the process while the mapping can be executed independently.
    For this reason I am looking for something which will allow me to do this without a trigger on the table.
    As mentioned in your refereed post, I can use CDC, but not sure how good is CDC and will this be an overkill to implement and use CDC for this purpose. Any simpler solution available?
    Any inputs please?
    Thanks once again!
    Regards,
    Maruthi

  • Error in executing deployed mapping.please help

    when executed the mapping,it display information:
    "ORA-04063: package body "OWB3.test" has errors
    ORA-06508: PL/SQL: could not find program unit being called
    ORA-06512: at line 1"
    I don't kown what it means?

    Hi
    Have you deployed the mapping to the target schema?
    Is there any procedure or function calling in the mapping (pre or post mapping process)?
    Is the package and the body valid in the db?
    Ott Karesz
    http://www.trendo-kft.hu

  • IB Error: Unable to read symbols from "UIKit" (not yet mapped into memory)

    I created a simple view program for iPhone, using IB to add a button and a label, once the button is clicked, the label text is changed.
    I am able to compile it fine, and ran it. The program/view showed up. But when I clicked on the button, the console showed this message:
    This GDB was configured as "i386-apple-darwin".warning: Unable to read symbols for "/System/Library/Frameworks/UIKit.framework/UIKit" (file not found).
    warning: Unable to read symbols from "UIKit" (not yet mapped into memory).
    I checked UIKit info, it's physically (full path) at:
    /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/System/Lib rary/Frameworks/UIKit.framework
    The relative path to SKD is:
    System/Library/Frameworks/UIKit.framework
    I'm running the latest SDK beta 8, OS X 10.5.4 latest update.
    Anyone had this bizarre problem? I was able to run all Apple samples fine.
    Please help!
    THanks!

    The answer is mentioned in a few other posts, but I thought I'd repeat it here, so that it's easier to find this solution in the future.
    I got the same problem trying to build an iPhone-Simulator application using another build process -- in this case, Boost Build. When I tried to run the program, it gave me the same nonsensical dynamic-library error.
    The problem is that the application you built for the iPhone Simulator is NOT a real application, even though it looks like one. You need to run it from within Xcode.
    In my case, I got around the problem by building the GLPaint sample using Xcode, copying over the executable it generated with the one I generated via Boost Build, then running GLPaint (actually my program now) from within Xcode. Then it worked.
    So far, it seems that Macintosh and iPhone are very unfriendly platforms to someone that's trying to port an existing project. Any attempt to do something, without completely buying into the Apple way of doing everything, leads to a torrent of cryptic undocumented errors. Even an old Unix guru like me can't keep up.

  • Execute a mapping deployed with OWB 9.0.4 from SQL*Plus

    Hello,
    I could execute a mapping designed with OWB 9.0.3 from SQL*Plus with the next sentence:
    SQL> exec my_mapping.main;
    But now, with OWB 9.0.4, mappings are deployed as functions (in 9.0.3 were deployed as procedures) and they need parameters.
    Somebody know how I can execute deployed mappings with OWB 9.0.4 from SQL*Plus? I don't know the parameters I need to call a mapping.
    Thanks in advance,
    Pedro.

    Well, I've solved the problem with roles but
    I've executed the script called sqlplus_exec_template.sql and it fails at Stage 2 because the next sentence
    l_audit_execution_id := wb_rt_api_exec.open(l_task_type, l_task_name, l_location_name);
    returns me NULL.
    It is not clear the value that the variable called l_location_name have to stored. The script explain that this variable store the physical name of the
    location to which the task was deployed. I understand that this variable have to store the schema where the mapping was deployed. That's right?
    So I called the script in this manner:
    SQL> @sqlplus_exec_template OWBRUN904I OJBHT PLSQL MY_MAPPING "," "," ;
    where OWBRUN904I is the name of the Runtime Repository Schema, OJBHT is the
    schema where MY_MAPPING is deployed, PLSQL is the task type and MY_MAPPING is
    the name of the mapping I've designed.
    Can you tell me why the scripts fails?
    Regards,
    Pedro

  • Can I execute a mapping from a database trigger ????

    Can anyone tell me if I can execute a mapping from a database trigger ? How ???
    Thanks in advance.----
    JEMD

    Hello,
    We are using the approach of scheduling predefined job heavily in our projects. It works fine.
    There are several points to mention:
    - scheduling / rescheduling algorithm must not lead to simultaneous session of the mapping run. Depending of content of the mappings/PF this could bring the real pain.
    - If there are several user sessions intensively interacting the table on which the scheduling trigger is created, scheduling / rescheduling algorithm must be written with care – users could lock or wait each other while updating job record.
    - Depending on intensity of such mapping runs additional care must be taken of OWB audit trail which will tend to grow.
    Depending on requirements trigger could call ordinal procedure for scheduling (if mapping run must be performed only if user commit change to the table), or procedure with autonomous_transaction pragma (if any touch of the table should fire the execution – don’t think this is a case)
    Sergey

  • Execute a mapping outside OWB

    Hello,
    I want to execute a mapping outside OWB. Therefore I want to use this code:
    DECLARE
    l_retval NUMBER;
    l_env WB_RT_MAPAUDIT.WB_RT_NAME_VALUES;
    BEGIN
    l_retval := mapping_name.MAIN(l_env);
    END;
    The problem I have now is that I don't know how to fill variable l_env.

    LS,
    Try this one from SQL*Plus (got this from André Deumers, Oracle NL):
    "set verify off
    set feed off
    set term on
    set serveroutput on
    WHENEVER SQLERROR CONTINUE NONE;
    accept mapping prompt "Please enter mapping name: "
    DECLARE
    RetVal NUMBER;
    P_ENV WB_RT_MAPAUDIT.WB_RT_NAME_VALUES;
    BEGIN
    -- Initialize Parameters
    p_env(1).param_name := 'MAX_NO_OF_ERRORS';
    p_env(1).param_value := '0';
    p_env(2).param_name := 'COMMIT_FREQUENCY';
    p_env(2).param_value := '999999';
    p_env(3).param_name := 'OPERATING_MODE';
    p_env(3).param_value := '1'; -- ROW_BASED
    p_env(4).param_name := 'BULK_SIZE';
    p_env(4).param_value := '999999';
    DBMS_Output.Put_Line('Procedure start: ' || to_char(sysdate, 'dd-mm-yyyy hh24:mi:ss'));
    FOR i IN 1..p_env.COUNT LOOP
    DBMS_Output.Put_Line(p_env(i).param_name || ' = ' || p_env(i).param_value);
    END LOOP;
    RetVal := &mapping..MAIN ( p_env );
    CASE WHEN RetVal = 0 THEN DBMS_Output.Put_Line('Result Successful');
    WHEN RetVal = 1 THEN DBMS_Output.Put_Line('Result Abort');
    WHEN RetVal = 2 THEN DBMS_Output.Put_Line('Result Error');
    ELSE DBMS_Output.Put_Line('Result Unknown?');
    END CASE;
    DBMS_Output.Put_Line('Procedure stop: ' || to_char(sysdate, 'dd-mm-yyyy hh24:mi:ss'));
    END;
    set verify on
    set feed on
    If you want to execute something like this from PL/SQL, so not necessarily from SQL*Plus, give us the question, I'll give you some source.
    Regards,
    André

  • Error while executing a mapping

    Hi All
    I'm getting the following error message when i'm executing a mapping :
    ORA-12801: error signaled in parallel query server P013 ORA-01722: invalid number
    Any advice or help is greatly appreciated.
    Thanks

    Thanks Nawneet
    I got the error from the runtime browser where you can view the errors, and i dont see any debug options in there except the error message.
    Thanks again

  • Error while Executing the mapping

    While I am executing the mapping this error is thrown by the server. It is big mapping and references many parent tables.
    ORA-12801: error signaled in parallel query server P001 ORA-01114: IO error writing block to file 201 (block # 523269) ORA-27069: skgfdisp: attempt to do I/O beyond the range of the file OSD-04026: Invalid parameter passed. (OS 523275) ORA-01114: IO error writing block to file 201 (block # 523269) ORA-27069: skgfdisp: attempt to do I/O beyond the range of the file OSD-04026: Invalid parameter passed. (OS 523275)
    Can you please provide the solution for this.
    Thanks in advance.

    This seems to be a DB server error, not an OWB issue. You should contact Oracle support.
    Regards:
    Igor

  • Passing a table into a procedure to be used in a curor

    Hi,
    I'm using Oracle 9.2.0.6
    I have a procedure that searches all objects for a passed in string value. The procedure is below.
    CREATE OR REPLACE PROCEDURE Find_String (
    pin_referenced_name IN dba_dependencies.referenced_name%TYPE)
    IS
    cursor cur_get_dependancy
    is
    SELECT distinct owner, name, type
      FROM [email protected]
    WHERE lower(referenced_name) = lower(pin_referenced_name) --'ftbv_salesrep_all_1d'
       AND referenced_type != 'SYNONYM'
    order by name;
    v_owner  varchar2(40);
    v_name   varchar2(50);
    v_type   varchar2(40);
        BEGIN
           dbms_output.put_line(upper(pin_referenced_name)||' is found in the following objects.');
           dbms_output.put_line(' ');
           dbms_output.put_line(RPAD('OWNER', 30, ' ')||RPAD('NAME', 60, ' ')||RPAD('OBJECT TYPE', 30, ' '));
           dbms_output.put_line('-------------------------------------------------------------------------------------------------------------------');
            FOR i IN cur_get_dependancy
            LOOP
                v_owner := RPAD(i.owner, 30, ' ');
                v_name  := RPAD(i.name, 45, ' ');
                v_type  := RPAD(i.type, 30, ' ');
                dbms_output.put_line(v_owner ||v_name|| v_type);
            END LOOP;
    END find_string;I was wondering if there's any way I could pass in the table name, and the name of the DB link to be used in the cursor, into the procedure and rig the cursor to be able to accept that as a parameter. I want our users to be able to search different databases using this utility code.
    I thought of NDS, and that would be a way to do it, however I'm not sure if I could use an NDS statement in conjunction with a cursor.
    Does anybody have any suggestions?
    Thanks

    One approach (there are obviously many ways to skin this particular cat)
    SQL> ed
    Wrote file afiedt.buf
      1  declare
      2    c1           sys_refcursor;
      3    l_val        number;
      4    l_table_name varchar2(30) := 'dual';
      5  begin
      6    open c1 for 'select 1 from ' || l_table_name;
      7    loop
      8      fetch c1 into l_val;
      9      exit when c1%notfound;
    10      dbms_output.put_line( l_val );
    11    end loop;
    12    close c1;
    13* end;
    SQL> /
    1
    PL/SQL procedure successfully completed.Justin

  • How to write the output of a mapping into a file (OWB10.2

    Hi
    I am using Oracle 10.2.0.1 version of OWB.
    the task is to write the output of a mapping into a File (Flat File).
    Please help me out!
    Regards
    Abi

    Hi,
    Create the file format thru OWB and mention the location in OWB. Deploy the file and it will be ready to use for target load. Make sure the connection to the target loc is available.
    Regards
    Bharadwaj Hari

  • Can I cut and paste directions obtained via maps into a word doc or something so I can see them if I can't connect to the internet

    Can I cut and paste directions form maps into a word doc - or save it somewhere on my iPad so I can access it when I can't access the Internet?

    Take a screen short.
    Simultaneously press the Sleep and Home button. You will notice an on-screen flash. If you have sound enabled, you will hear a camera click.
    The screen shot is stored in Camera Roll.

Maybe you are looking for

  • Satellite M30-604 freezes and fan doesn't work after replacement

    Satellite SM30-604. Laptop left on carpet overnight and overheated! Fan doesn't spin and laptop only occasionally starts up. Thinking the fan was fault I replaced the fan but even this new fan doesn't spin. The heatsink is totally clean - no dust ins

  • Insert an existing Item in the Overview of an BO Extension

    Hi Guys, My Problem: I wanna to insert existing Fields in the Overview but how: I have this Opportunity with the external Parties: I wanna to add those Party Role, Name and Adress in the Overview of the Opportunities: Has anyone an Idea or a Solution

  • Regular problem with video playback & audio video sync

    So, I am regularly having two problems (I wonder whether they are connected) that I cannot solve and am hoping someone can tell me if I am out of luck or if I need to do something or add something. For example, because it happened again today. These

  • Item master approval

    according to requirement in sap b1. my client wants that item should be entered by store person and approval should be done by store person. here approval means after entering item one pop up window comes on screen of purchase person so that he can c

  • Reconnect Media Problem

    One of my files on the FCP7 Timeline has gone offline. The file name is Clip #366. But when I Reconnect Media it will ONLY give me the option to Reconnect to Clip #367! Out of frustration I tried to Reconnect to Clip #367 but then it wouldn't even al