The call to the Workflow background process explicit in the pl/sql code

Hi all

We have a requirement where we need to call the "Workflow background process" explicitly in the pl/sql code.
Our wish is that we have an application that runs via a competing program, but before the end of this application we want to put that on the wait and run the 'Workflow background process"explicitly in the code itself (user must not go and run it manually).
Can someone please advice me how to do this in a PL/SQL code that is called via a concurrent program.

Kind regards
Shruti

PL post Details of the operating system, database and versions EBS.

One solution is to use the FND_SUBMIT API

The most common FND API in APPS customizations [ID 221549.1]
Code example for call Customer Interface RACUST program using the Api FND_SUBMIT 11i and R12 [429278.1 ID]

https://forums.Oracle.com/forums/search.jspa?threadID=&q=FND_SUBMIT&objid=C3&DateRange=all&userid=&NumResults=15

HTH
Srini

Tags: Oracle Applications

Similar Questions

  • Subquery 'WITH SAWITH0 AS' OBIEE 11 g factoring clause contained in the generated sql code

    I have observed that OBIEE 11 g generates in physics request log query using the (subquery factoring) WITH clause to the generated sql code elegantly readable. It's great! Thanks for the developers. However I have a few questions about it.

    __Background__
    Oracle database ' default behavior is that if you have only a subquery in the section, it runs as a perspective in line and he not materialized before the main sql is running. If you have more than one default database engine materializes all the in the order of definition. In some cases, it can completely blow up the SGA and make a query without end. To divert this behavior, you can apply two tips that work both in inline views in subqueries as well: / * + MATERIALIZE * / and / * + INLINE * /, however Analytics 11 g does not seem to have capabilities of Board at the table level logical, only at the level of the physical table.

    If we go with the current default settings, the developers do not know this feature can fall on serious performance problems for the sake of a few sweets of syntax to the generated sql level, I'm afraid.

    __Questions__

    * It is possible to turn the Analytics Server to not use WITH but views inline instead?
    * Is it possible to sneak in a few boards that would the / * + INLINE * / allusion to the proper place in the subqueries generated if necessary
    * Is the Oracle database has any initialization parameter that can influence the behavior of this subquery factoring and divert by default?

    The WITH statement is not added to make the query more elegant, it is added for performance reasons. If your queries slow to run, then you can have a design problem. In a typical DWH DB SGA should be increased seriously given that ran queries are much larger and complex than on an OLTP DB. In all cases, you can disable the WITH statement in the administration tool by double clicking on your database on the physical layer from object in the features tab. The function is called WITH_CLAUSE_SUPPORTED.

  • Impact of writing more comments in the pl/sql code

    What is the impact of writing more comments in the pl/sql code. If it has an impact on the compile time, it is fine but it has no effect on the runtime? even in nano seconds?

    Hello

    2981581 wrote:

    What is the impact of writing more comments in the pl/sql code. If it has an impact on the compile time, it is fine but it has no effect on the runtime? even in nano seconds?

    Outside advice, comments have no effect on the runtime.

    They can have a big impact on maintenance time.

  • Wrap the PL/SQL code

    First of all, Hi everyone.

    I need to encrypt my PL/SQL code at run time. I thought using the wrap.exe, but it won't be a good option, once maybe I need to change something in the code and I'll not can send the code wrapped to the final customer. So, I'll use the DBMS_DDL. WRAP, but I have a doubt, I understand that my object will be encrypted in the database, but how can I prevent software this capture SQL (like SQL STATEMENTS TRACE) get the source when creating the object?


    Thank you very much.

    Agree with SomeoneElse, having a license legally correct contract protects your code.

    The package code is not a bad thing if that's what you are providing to the customer and that you have in place adequate source code controls, so you do not lose the source for yourself.  Although there are "unwrappers" out there, it may depend on the version of Oracle as to how well they work, and if they can achieve.  There are tools out there too which can obscure the PL/SQL code by doing things such as the conversion of all the variable names to things without meaning as a0001, a0002, a0003,... and deletes all comments etc before you wrap, so even if someone manages to undo what they are presented with the code that is more difficult to follow.

    Regarding the customer can see SQL running, you won't really be able to do something that, if the customer has access of type DBA to the database; the only thing you can do to avoid this is to provide a managed service where your company has total control of provides a full support for the server, database and applications and the client does not have access to all but the front end of the application.  Of course, if the customer has access to the database and can see running SQL code, then who can actually be beneficial if they have problems, because they can do their own initial analysis to determine the cause and determine if they should send the question to yourselves.

  • How to see the generated sql code

    Hello

    With the help of obiee 10g, I would like to see the generated sql code.
    I logged in as administrator
    Following manage-> sessions-> view log

    But when I click on connect gives this error ii do me "no logs found.

    The RPD administrator is a user with the recording as a 2 level.

    Thank you

    BI_ORACLE_HOME/server/log/nqquery.log

    to learn more:

    http://gerardnico.com/wiki/dat/OBIEE/nqquery.log

    Another method

    http://varanasisaichand.blogspot.com/2010/04/how-to-set-logging-level-for-users-in.html

    Thank you

    Deva

    Published by: Devarasu on December 6, 2011 17:26

  • output the generated SQL code

    I know that you can build the sql code generated by a query in Coldfusion 7 using the result attribute but it's nto available with Coldfusion MX and unfortunately I'm stuck with MX.

    so is it possible with MX for the SQL code generated from a CFQUERY?

    In the CF administrator, turn on debugging and enter your IP address in the appropriate box. The executed SQL appears at the bottom of the page.

    Another approach would be to do something like the following:

    SELECT a, b, c #myTable # WHERE d = "#dValue #" e = "#eValue #

    The SELECT statement in this example is identical to that of the

  • In the PL/SQL Code changes

    Hi all

    I have the code below, and I want to change it according to the questions A and B.

    I'm new to PL/SQL and I do not undestand the terminology correctly. Any sugestion for how to change the code to match question a and b are welcome.



    a. said an INDEX BY type of dept_table_type of table
    departments.department_name. Declare a variable my_dept_table of type
    dept_table_type to temporarily store the name of the departments.

    b. declare two variables: benchmark(loop_count,expression) and type deptno NUMBER. Assign 10 to
    benchmark(loop_count,expression) and 0 to deptno.


    DECLARE
    TYPE departments_table IS TABLE OF departments % ROWTYPE directory INDEX;
    departure of departments_table;
    BEGIN
    SELECT *.
    LOOSE COLLECTION starting
    Ministries;
    BECAUSE me initially. FIRST-... depart. LAST
    LOOP

    DBMS_OUTPUT. Put_line (to_char (departure, (i), .department_id));

    END LOOP;
    END;


    I thank very you much in advance!

    899335 wrote:
    Hi all

    I have the code below, and I want to change it according to the questions A and B.

    I'm new to PL/SQL and I do not undestand the terminology correctly. Any sugestion for how to change the code to match question a and b are welcome.

    a. said an INDEX BY type of dept_table_type of table
    departments.department_name. Declare a variable my_dept_table of type
    dept_table_type to temporarily store the name of the departments.

    The type will be very similar to the INDEX PER table called departments_table. The main difference is that each row of a table departments is a
    % ROWTYPE departments, but each line in a dept_table_type will be a
    Departments.department_name%type.

    The variable my_dept_table will be very similar to the existing variable dept_table.

    Moreover, it would be preferable to use consistent types and variable names.
    Departments_type would be a better name than _table of ministries for the type, because it is a TYPE, not a TABLE.
    If the column in the table is called department_iname, then department_name_type would be a better name than dept_table_type. You're not abbreviate Department in other places, so do not here. Such processes only the deparatment_name, not the whole column.
    My departments_table and my_department_name_table would be better names that leave and my_dept_table.

    b. declare two variables: benchmark(loop_count,expression) and type deptno NUMBER. Assign 10 to
    benchmark(loop_count,expression) and 0 to deptno.

    You can declare a variable anywhen NUMBER in the DECLARE section and assign it a value in the BEGIN section, like this

    DECLARE
        ...
        x   NUMBER;
        ...
    BEGIN
        ...
        x := 10;
        ...
    

    You can also declare a variable and assign a value to it at the same time, in the DRAWING section, like this:

    DECLARE
        ...
        y   NUMBER := 0;
        ...
    
  • Reg: Validation of the PL/SQL codes-

    Hi Experts,

    Need some ideas/advice about a tool " check/validation of the code syntax .

    Is it possible - to create a PL/SQL procedure (for example, ' X') where the i / p will be any creation of the Table or procedure script. X will check the syntax and any other coding loophole postings.
    In fact, we have a lot of overhead of manual checking the code for some best practices of coding. Just so desirable to automate their in a proc X.
    Can be written Regexs or any other way... a few checks as -.
    + 1] + CREATE or REPLACE PROCEDURE < schema_name >. < proc_name >
    Usually developers here avoid the schema name.

    + [2] + good Exception blocks with no. SO that OTHER THEN NULL;

    Is it really feasible or I'm just too think?

    (I have access to 10g and 11g databases).

    Please suggest some ideas. (from now on, I've tried for a windows batch script that will check for the validation of the scripts stored in a folder that + .txt)
    Help much appreciated.

    Vanessa B.

    nordine B wrote:
    The words were really wonderful, Etbin. Thank you!

    But, naming conventions g_ , v_ and . can never (mostly) right change..?
    So just try to find something like that.

    Start a simple tool and gradually increase the complexity.

    Or, do you have any other tool in mind which can reduce the daily effort?
    No matter what tool you find really useful and interesting development - to facilitate the daily efforts

    FYI - we have one tool, input a proc/table gives all other objects related to IT... same indexes, triggers, etc. Something new as this ;)

    When I was a 'Developer' (we called the postion "Programmer/Analyst"), we spent a lot of effort on the naming of standards. And given that the standards have been published and known by all programmers in the shop, catch violations has been easy to do during code reviews, even if it wasn't the purpose of focus or the destination of the revision of the code.

    So, if you are doing critical business logic code and you have a manual of standards published to cover the naming conventions, etc., then standards will be a trivial addition to a revision of the code "business logic". I think that you are pursuing a solution in search of a problem. I know it's hard for the younger generation to accept, but sometimes automation is simply not the solution. Or at least not the optimal solution.

    In fact, there is a little human psychology comes into play. If you have published standards, you don't even have to do "compliance" of the order of the day on a revision of the code "business logic". Developers will be quick to them yelling, and the fear of this will help the grip in the car in the first place. This is a factor that is not understood by computers or human beings who believe that computers are the solution to everything.

    That said, he has there the tools that will help identify some problems. SQL Navigator is one that comes to mind.

    Published by: EdStevens on February 17, 2013 18:19

    Published by: EdStevens on February 17, 2013 18:22

  • How to pass the Record of entry to the dynamic SQL Code

    Hi all

    I am trying to run under Oracle applications API on the remote database using DB Link. I try to run using dynamic SQL. Part of the code is given below.

    DECLARE

    l_batch_info_rec wsh_picking_batches_pub.batch_info_rec;

    l_rule_id NUMBER;

    l_rule_name VARCHAR2 (240);

    l_batch_prefix VARCHAR2 (240);

    BEGIN

    l_batch_info_rec.document_set_id: = v_document_set_id;

    l_batch_info_rec.order_type_id: = v_order_type_id;

    l_batch_info_rec. Default_Stage_Subinventory: = v_default_stage_subinventory;

    l_batch_info_rec.pick_grouping_rule_id: = v_pick_grouping_rule_id;

    l_batch_info_rec.pick_sequence_rule_id: = v_pick_sequence_rule_id;

    l_batch_info_rec.autopack_level: = v_autopack_level;

    l_batch_info_rec.autopack_flag: = v_autopack_flag;

    l_batch_info_rec.ac_delivery_criteria: = v_ac_delivery_criteria;

    l_batch_info_rec.backorders_only_flag: = v_backorders_only_flag;

    l_batch_info_rec.existing_rsvs_only_flag: = v_existing_rsvs_only_flag;

    l_batch_info_rec.customer_id: = v_customer_id;

    l_batch_info_rec.order_header_id: = v_header_id;

    l_batch_info_rec.from_scheduled_ship_date: = NULL;

    l_batch_info_rec.organization_id: = v_organization_id;

    l_batch_info_rec.include_planned_lines: = v_include_planned_lines;

    l_batch_info_rec.autocreate_delivery_flag: = v_autocreate_deliveries_flag;

    l_batch_info_rec.autodetail_pr_flag: = v_autodetail_pr_flag;

    l_batch_info_rec.allocation_method: = 'I ';

    l_batch_info_rec.pick_from_locator_id: = NULL;

    l_batch_info_rec.auto_pick_confirm_flag: = 'n';         -The value manually to run Transact order

    l_batch_info_rec.autopack_flag: = 'n';         -Manually configure to perform the manual packaging

    l_rule_id: = NULL;

    l_rule_name: = NULL;

    l_batch_prefix: = NULL;

    v_sqlstmt1: = ' START

    wsh_picking_batches_pub.create_batch' | g_db_link | "(1.0,

    fnd_api.g_true,

    fnd_api.g_true,

    : l_return_status,.

    : l_msg_count,.

    : l_msg_data,.

    : l_rule_id,.

    : l_rule_name,.

    : l_batch_info_rec,.

    : l_batch_prefix,.

    : p_new_batch_id

    );

    END;';

    --

    EXECUTE IMMEDIATE V_sqlstmt1

    With the HELP OF THE l_return_status,.

    ON l_msg_count,.

    ON l_msg_data,.

    BY l_rule_id,

    BY l_rule_name,

    BY l_batch_info_rec,

    BY l_batch_prefix,

    OUT p_new_batch_id;

    --

    END;

    After you run this script, I get below error "PLS-00457: expressions must be SQL types ' for variable l_batch_info_rec which is of type record. can someone please guide me how can I pass variable type dynamic SQL record.

    Thank you

    Priyanka

    Food for thought:

    On remote db:

    SQL > create or replace
    package 2 pkg
    3 is
    4 type r_type is (record
    Number 5,
    6 name varchar2 (10)
    7                            );
    (p) 8 procedure
    9 p_rec in r_type,
    10 p_out out varchar2
    11                  );
    12 end;
    13.

    Package created.

    SQL > create or replace
    package 2 body pkg
    3 is
    4 procedure p)
    5 p_rec in r_type,
    6 p_out out varchar2
    7                  )
    8 is
    9 start
    10 p_out: = "ID = ' |" p_rec.ID | 'Name =' | p_rec. Name;
    11 end;
    12 end;
    13.

    Package body created.

    SQL >

    On local db:

    SQL > set serveroutput on
    SQL > declare
    v_rec 2 pkg.r_type@pdb1sol12;
    3 v_out varchar2 (50);
    4 start
    v_rec.ID 5: = 1;
    6 v_rec.name: = 'XXX ';
    7 immediate execution"
    8                        begin
    9 pkg.p@pdb1sol12 (: 1,: 2);
    10                        end;'
    11 using v_rec,
    12 v_out;
    13 dbms_output.put_line (v_out);
    14 end;
    15.
    using v_rec;
    *
    ERROR on line 11:
    ORA-06550: line 11, column 20:
    PLS-00457: expressions must be SQL types
    ORA-06550: line 7, column 5:
    PL/SQL: Statement ignored

    SQL > declare
    2 number of v_id: = 1;
    3 v_name varchar2 (10): = 'XXX ';
    4 v_out varchar2 (50);
    5. start
    6 immediate execution"
    7 report
    8 v_rec pkg.r_type@pdb1sol12.
    9                        begin
    10                            v_rec.id  := :1;
    11 v_rec.name: =: 2;
    12 pkg.p@pdb1sol12 (v_rec,: 3);
    13                        end;'
    14 using v_id,
    15 in v_name,
    16 v_out;
    17 dbms_output.put_line (v_out);
    18 end;
    19.
    ID = 1 name = XXX

    PL/SQL procedure successfully completed.

    SQL >

    SY.

  • Run of the PL/SQL Code in DA

    Hi all

    Please help me to understand the behavior of action DA ' run the Code in PL/SQL.

    I have an element hidden in my area.
    I can put the value using javascript and $s,
    But, if after this, I updated the value in PL/SQL Help: P1_H: = '555'; and in the next action javascript I'm reading using $v I get the previous values established by $s.
    How can I configure the value of the hidden SUMMIT point "Code of PL/SQL Execute" DA action?

    Please take a look at: http://apex.oracle.com/pls/apex/f?p=4550:1:0:F4550_P1_COMPANY:ANDREIDEMO
    User: Pass of dev: dev App: application demo

    Thank you very much
    Andrei

    Fateh, I am not a guru of the Apex, but I use DAs and understand how the options points to submit Page and back Page .
    I recommend reading the documentation at http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/advnc_dynamic_actions.htm and other items on these options.
    Kofi

    Published by: Kofi on November 14, 2012 16:45

  • Declarations of error in the PL/SQL Code

    Hi all:

    I have a routine of PL/SQL that I need to add "Error Statements" in case something thing errors when it is run, the user will know and be able to solve the problem. Here's a copy of what I need to run. Is a unique it will only be run once and when it is finished without error, it will not be used again, but when it ran inside TOAD / TORA / SQLPlus, how to display an error to the user in case something goes wrong? I know it's probably a very simple thing to do, but I come from SQL Server and only learn PL/SQL - Oracle and I do not know how to do this. Any help would be greatly appreciated.

    DECLARE
    -----------------------------------------------------------------------------------------------
    -Local Variables
    -----------------------------------------------------------------------------------------------
    l_gm_master_label VARCHAR2 (20);
    l_active_flag VARCHAR2 (1);
    l_currdate DATE;
    l_comp_id VARCHAR2 (10);
    l_site_id VARCHAR2 (12);
    l_gm_master_id NUMBER;
    BEGIN
    -----------------------------------------------------------------------------------------------
    -Set default values
    -----------------------------------------------------------------------------------------------
    l_gm_master_label: = 'DMLogic001 ';
    l_active_flag: = 'n';
    l_currdate: = SYSDATE;
    l_comp_id: = 'XE ';
    l_site_id: = "OHIO."
    l_gm_master_id: = 0;
    -----------------------------------------------------------------------------------------------
    -Get the next value
    -----------------------------------------------------------------------------------------------
    SELECT
    trn_gm_master_seq. NEXTVAL
    IN
    l_gm_master_id
    Of
    Double;
    -----------------------------------------------------------------------------------------------
    -Insert generic Gray number master record who will join all the serial numbers DMLogic
    -----------------------------------------------------------------------------------------------
    INSERT INTO ebiznet.trn_gm_master
    (gm_master_id,
    gm_master_label,
    active_flag,
    CURRDATE,
    identifiant_composant,
    Site_ID)
    VALUES
    (l_gm_master_id,
    l_gm_master_label,
    l_active_flag,
    l_currdate,
    l_comp_id,
    l_site_id);
    -----------------------------------------------------------------------------------------------
    -Insert the records
    -----------------------------------------------------------------------------------------------
    INSERT INTO ebiznet.trn_gm_serial_number
    (gm_serial_number_id,
    gm_master_id,
    gm_serial_number,
    received_by,
    received_date,
    picked_by,
    picked_date,
    ebiz_sku_no,
    identifiant_composant,
    Site_ID,
    ebiz_ord_no,
    interface_date)
    SELECT
    trn_gm_serial_number_seq. NEXTVAL,
    l_gm_master_id,
    S.Serial_number,
    1,
    S.CREATION_DATE,
    1,
    S.CREATION_DATE,
    S.ebiz_sku_no,
    l_comp_id,
    l_site_id,
    O.ebiz_ord_no,
    S.interface_date
    Of
    dmlogic.trn_rm_serial_number S
    INNER JOIN ebiznet.trn_ordhead O ON S.ord_no is O.ord_no;.
    ----------------------------------------------------------------------------------------------
    -Commit the changes
    ----------------------------------------------------------------------------------------------
    COMMIT;
    -----------------------------------------------------------------------------------------------
    -Rollback If an error occurred
    -----------------------------------------------------------------------------------------------
    EXCEPTION
    WHILE OTHERS THEN
    ROLLBACK;
    END;

    Remove WHEN OTHERS will allow exceptions to access the user and halt execution. You get a descriptive message and the line in PL/SQL, where it has occurred.

    In very rare occasions when OTHERS WHEN is inevitable, RAISE re-lift the exception and stop running.

    You can increase your own exceptions to conditions specific to your application with RAISE_APPLICATION_ERROR(). (Syntax and parameters can be found in the documentation)

  • Workflow backgroud process continues to run

    Hello

    We are stuck! Workflow background process continues to run and does not end. We are all three parameters 'YES' in general.

    Kidly tell us why and how to solve this problem as soon as possible if you guyz know.

    Concerning
    Nouman Shaikh

    Hello
    You can kill the 'Workflow background process"that you have planned with the parameter Y, Y and Y... Once this request is cancelled to submit the same * "Workflow background process" with the parameter Y, N & N *. Make sure that you schedule so that the Workflow background process will begin only after the previous calendar Workflow background process is complete...

    S.P DASH

  • Treatment of shocks and expire in background processes

    Hello

    One can tell me what exactly the process of shocks & process of timeout parameter means in the Workflow background process? Generally, we submit the process by keeping settings Yes.

    Thanks in advance for your help.

    Kind regards
    Jyoti

    Jyoti

    Deferred process: Present a great advantage of integrating your workflow process. An example is the booking order. It comes in two flavors. Deferred and online. When you use deferred essentially booking what you say the system is to give control back to the user and to "postpone" the booking process to the Workflow Engine background making the booking a batch process. This translates into faster data entry orders in high-volume industries. So if you say this setting as Yes if it runs the process of GBM what you say to pick up all the process workflow which are deferred to be dealt with by you (GBM).

    Process time: Similarly the workflow includes another feature where you can set the time-out period during an activity. Say you have send a notification to someone to approve it so that the order can be booked. If the person is on vacation and does not have rules defined workflow, what happens is that the order is waiting to be reserved until that person comes back from vacation. In this case, you can set the 'time out' in this activity to say 12 hrs. If there is no response within 12 hours, you can have the workflow to retry this activity again or send the notification to someone else or even ignore the notification and go ahead and book it. When you set this timeout as Yes, WBG checks if these 12 hours waiting at this activity (begin_date + 12 h). If so, it will move forward the process of workflow.

    Thank you
    Claire

  • want to understand the stages of executing pl/sql code

    Hello all;

    I want to know the logic of programming for the pl/sql code, what I have written;

    because I was late yesterday to resolve the simple error.

    > > It's link https://forums.Oracle.com/thread/2565867

    OK now that I have written my code same lineup, but few changes:

    now it's working.  as I said above, I want to know the programming logic "flow of execution steps" of pl/sql code

    1 DECLARE

    2 a number: = 10;

    3 number of b: = 20;

    Number 4 c;

    5 procedure findmin (x IN number, are there in numbers, number of Z OUT) IS

    6 BEGIN

    7 < < BLOCK1 > >

    8 x if you can

    9 z: = x;

    10 other

    11 z: = y;

    12 end if;

    13 END;

    BEGIN 14

    15 < < BLOCK2 > >

    16 findmin(a, b, c);

    17 DBMS_OUTPUT. Put_line (c);

    18 * END;

    19.

    10

    PL/SQL procedure successfully completed.

    > > Is this process flow?  > >

    1. the declaration part.

    2 during playback findmin online no 5 then control passes to the line not 16.

    3. after receving input values, control passes back to 5

    4. then compiler executes the code accordingly.

    Question: how many compiler Oracle will execute code written?

    8f953842-815B-4D8C-833d-f2a3dd51e602 wrote:

    1. the declaration part.

    2 during playback findmin online no 5 then control passes to the line not 16.

    3. after receving input values, control passes back to 5

    4. then compiler executes the code accordingly.

    Question: how many compiler Oracle will execute code written?

    1. any declaration section is processed in order to declare and allocate the space/memory etc.  Including declaring the procedure in scope in memory (the procedure is not executed)

    2 execution block to get the code begins with the first statement after BEGIN

    3. the procedure is called in memory with the parameters passed to it.

    4. when the procedure completes execution returns to the statement in the main execution block, after the procedure call.

    Note:

    The compiler is not executing code, it compiles just in memory or stored in the database (depending on whether it is an anonymous block or the stored procedure / package etc..)

    The code isn't really jump 'line by line', because at the time when it is run, it is compiled down to a pcode (or native code if this is allowed), and which may contain several intermediate statements to run the underlying process.  The compiled code however keep track of line numbers of source code of error for the purposes of statement internally.

  • Dynamics of PL/SQL code in the procedure of the ODI

    Hi guys:

    I have a PL/SQL code to run in an ODI proc that changes because of a loop.

    I have to update the many tables with the same prefix and its sufix is the dynamic part of my PL/SQL. Also, I need to adjust the DT_ETL (I already have a variable in my package with the sysdate) and the limit of a rownum.

    My variables are:

    vGET_CD_BASE*.
    vQTD_REG_UPDATE*.
    vETL_DATE*.

    PL/SQL is described below (with dynamic parts of it as ODI #vXXXXX variables):

    DECLARE
    CURSOR v_Cur IS
    SELECT ROWID KEY_ROW IN GG_DATA. WRK_SN_DET_ITEM_EXTR_PARC_ * #vGET_CD_BASE * WHERE DT_ETL = TO_DATE('01/01/1900','DD/MM/YYYY') and rownum < * #vQTD_REG_UPDATE *;
    TYPE t_Tabela IS TABLE OF ROWID directory INDEX;
    r_Reg t_Tabela;
    BEGIN
    OPEN v_Cur.
    LOOP
    Get the v_Cur COLLECT LOOSE r_Reg LIMIT 100000;
    FORALL i IN 1.r_Reg.COUNT

    UPDATE GG_DATA. WRK_SN_DET_ITEM_EXTR_PARC_ * #vGET_CD_BASE *.
    SET DT_ETL = TO_DATE ('* #vETL_DATE * ',' DD/MM/YYYY HH24:MI:SS')
    WHERE ROWID = r_Reg (i);

    EXIT WHEN v_Cur % NOTFOUND;
    COMMIT;
    END LOOP;
    CLOSE V_Cur;
    COMMIT;
    END;

    What should I change to make it work of PL/SQL in the ODI process?

    Kind regards.
    Luiz Araujo

    Hi Buchu.

    What if you put the name of the table in the variable instead of concatenate in the PL/SQL code.

    This is what I did and seems that worked here.

    (1) create a variable for the name of the table as follows:

    Variable name: var_Table_Dual
    Source code: select 'DOUBLE' double

    (2) create a PRC_VAR_CHANGE procedure

    (3) create a CMD_VAR_CHANGE command

    Command:
    declare vText varchar2 (100): = ";

    Start

    SELECT sysdate in vText #var_DUAL;

    end;

    (4) create a Package for the test.
    First step: Refresh variable
    Second step: call the procedure.

    The result of the operator for the procedure was the following code.
    declare vText varchar2 (100): = ";

    Start

    SELECT sysdate from vText OF #DATA_WAREHOUSE. INC_SYSDATE;

    end;

    Try and let me know.

    Cheers mate!

Maybe you are looking for

  • Satellite A200 - 1 GB and the problem of build-in microphone

    My microphone build-in does not work. I tried to play with all the options in my volume controls and my webcam software.What can I do else? Is there a driver for him ' cos from what I've read, it came with the driver for the webcam.Furthermore, I wen

  • Game of Lenovo services s650 google has stopped

    Help, please! My lenovo s650 every 10-15 minutes a message "Unfortunately google services play has stopped" even if everything works normally. And every time when taken charger? (Strange) Earlier, I had a custom version of the kit kat 4.4.2 baraljabi

  • Remove the dialogue during the closing of DIAdem

    How do I remove or close the dialog box that appears when the tiara was closed if data or page layouts have been changed via SCRIPT? I tried: CmdNoDialogDisp = TRUE CmdNoWarningDisp = TRUE CmdNoMsgDisp = TRUE CmdNoErrorDisp = TRUE CmdNoInfoDisp = TRU

  • My install software generates an error code of 2564

    I'm finishing a Labview project and where to install the solution on the client computer, it is not to work and send me this error code 2564. The referents of error code for a plug-in of labview and I is not found in the Web site of NOR. Everyone kno

  • Pickpoint isn't hitting objects in the 3D scene

    Hi all I have a 3D graphics area on which I draw and manipulate several cubes. I'm trying to use pickpoint to allow the user to interactively click on objects and reproduced the steps in https://decibel.ni.com/content/docs/DOC-4958, which is remarkab