PROBLEM with my procedure (to COLLECT fees in BULK)

This s my code

CREATE OR REPLACE PROCEDURE BULK_COLLECT_tipo_per IS


TYPE T_ARRAY_TAB IS TABLE OF tipo_per_22% ROWTYPE
INDEX BY PLS_INTEGER;
T_ARRAY_COL T_ARRAY_TAB;

CUR cursor is located
SELECT CIF_ID,
MAX (C1) CL_ORI,
MAX (C2) F_COTI,
MAX (C3) EX_ORI,
MAX (C4) F_EX_MAX
FROM (SELECT / * + PARALLEL (C 8) * /)
C.CIF_ID,
MAX (NVL (DECODE (CANAL_ORIGEN, 'INDIRECTO', ' 1'),))
DECODE (CANAL_ORIGEN, 'DIRECTO', ' 0'))) C1.
NULL C2,
NULL C3,
C4 NULL
OF DBM_PHOTO_POLARIS C
CIF_ID GROUP
UNION
SEPARATE SELECT / * + PARALLEL (C 8) * / CIF_ID C.ID,.
NULL C1,
MAX (FECHA_PRESU) C2,
NULL C3,
C4 NULL
OF EMI_PRESU_SOLIC@POLCP C
WHERE FECHA_PRESU > SYSDATE - 730
GROUP BY ID
UNION
SELECT / * + PARALLEL (C 8) * /.
C.CIF_ID,
NULL C1,
NULL C2,
MAX (NVL (DECODE (MAX_BAJA_INDIRECTO, THE OF ', '1'),))
DECODE(MAX_BAJA_DIRECTO, 'S', '0'))) C3,.
MAX (FECHA_PROCESO) C4
OF MX_EX_CLIENTES_5ANOS C
WHERE FECHA_PROCESO > SYSDATE - 1825
AND (MAX_BAJA_INDIRECTO = S 'OR MAX_BAJA_DIRECTO = S')
GROUP OF CIF_ID)
CIF_ID GROUP;


BEGIN
HEART OPEN;
LOOP

COLLECT FETCH NEWS IN BULK
IN THE T_ARRAY_COL LIMIT 100;

FORALL I IN 1... T_ARRAY_COL. COUNTY
INSERT INTO TIPO_PER_2
(CIF_ID, CL_ORI, F_COTI, EX_ORI, F_EX_MAX)
VALUES
(T_ARRAY_COL (i). CIF_ID,

T_ARRAY_COL (i). CL_ORI,
T_ARRAY_COL (i). F_COTI,
T_ARRAY_COL (i). EX_ORI,
T_ARRAY_COL (i). F_EX_MAX);

WHEN THE OUTPUT CUR % NOTFOUND;
END LOOP;
COMMIT;
CLOSE THE HEART;

END;


And it comes error...

Errors of compilation for the MARKETING of the PROCEDURE. BULK_COLLECT_TIPO_PER

Error: PLS-00436: limitation of the implementation: cannot reference the fields in the table to LINK BULK records
Online: 58
Text: (T_ARRAY_COL (I). CIF_ID,

Error: PLS-00382: expression is of the wrong type
Online: 58
Text: (T_ARRAY_COL (I). CIF_ID,

Error: PLS-00436: limitation of the implementation: cannot reference the fields in the table to LINK BULK records
Online: 59
Text: T_ARRAY_COL (I). CL_ORI,

Error: PLS-00382: expression is of the wrong type
Online: 59
Text: T_ARRAY_COL (I). CL_ORI,

Error: PLS-00436: limitation of the implementation: cannot reference the fields in the table to LINK BULK records
Line: 60
Text: T_ARRAY_COL (I). F_COTI,

Error: PLS-00382: expression is of the wrong type
Line: 60
Text: T_ARRAY_COL (I). F_COTI,

Error: PLS-00436: limitation of the implementation: cannot reference the fields in the table to LINK BULK records
Line: 61
Text: T_ARRAY_COL (I). EX_ORI,

Error: PLS-00382: expression is of the wrong type
Line: 61
Text: T_ARRAY_COL (I). EX_ORI,

Error: PLS-00436: limitation of the implementation: cannot reference the fields in the table to LINK BULK records
Line: 62
Text: T_ARRAY_COL (I). F_EX_MAX);

Error: PLS-00382: expression is of the wrong type
Line: 62
Text: T_ARRAY_COL (I). F_EX_MAX);

Error: PL/SQL: ORA-22806: not an object or REF
Online: 58
Text: (T_ARRAY_COL (I). CIF_ID,

Error: PL/SQL: statement ignored
Online: 55
Text: INSERT INTO TIPO_PER_2



I try to solve this errors but I cant... help please

Hello
If the columns in the table do not match, you can try like this.
Code is untested.

BEGIN
OPEN CUR;
LOOP

FETCH CUR BULK COLLECT
INTO T_ARRAY_COL LIMIT 100;
loop
--FORALL I IN 1 .. T_ARRAY_COL.COUNT
INSERT INTO TIPO_PER_2
(CIF_ID , CL_ORI,F_COTI ,EX_ORI ,F_EX_MAX)
VALUES
(T_ARRAY_COL(i).CIF_ID,

T_ARRAY_COL(i).CL_ORI,
T_ARRAY_COL(i).F_COTI,
T_ARRAY_COL(i).EX_ORI ,
T_ARRAY_COL(i).F_EX_MAX);
end loop;
COMMIT;
EXIT WHEN CUR%NOTFOUND;
END LOOP;

CLOSE CUR;

END;

Thank you

Alen

Tags: Database

Similar Questions

  • Problems with the procedure at the level of the stcok update

    Hi, I am new to Oracle and I have problems with this procedure.
    I had two tables, orders and inventories, and I want to update inventory quantities, when I received the order. For some reason, NULL keeps popping out. Someone help me pls with this!
    The tables are

    create table orders
    (order_no number (4) orders_nn_11 the NOT NULL constraint,)
    item_no number 4 orders_nn_3 of the NOT NULL constraint,
    order_qta number constraint orders_nn_4 NOT NULL,
    ORDER_DATE date NOT NULL constraint orders_nn_2,
    (date of receipt);
    and
    create the table stock
    item_no (4).
    Number of CQI,
    constraint stock_pk foreign key (item_no) references products (item_no);

    the procedure is here, but as I said I am new to this, so I really don't know.


    create or replace
    procedure recues1 (aorder_no in number, aitem_no in numbers, date received)
    is
    quantity number;
    number of quantity2;
    cursor a1 is select qta in stock where item_no = aitem_no;
    cursor a2 is order_qta selection of orders where order_no = aorder_no and item_no = aitem_no;
    Start
    Open a1;
    extract the a1 in quantity2;
    Open a2;
    Fetch a2 in quantity;
    stock update
    Define qta = quantity2 + quantity
    where item_no = aitem_no;
    Update orders
    received game = sysdate
    where order_no = aorder_no;
    near a1;
    Close a2;
    end;
    /

    Thanks in advance

    Hello
    Perhaps because ther eis no COMMIT.
    Or have I missed?

    Something like that

    .....
    
    close a1;
    close a2;
    commit;
    end;
    /
    

    Kind regards
    Bobin

  • Problem with stored procedure

    I use 10g, I have a 'PACK_SP' package with stored procedures, one of them is the following:
    PROCEDURE USP_ROWLARGESIZE(tablename VARCHAR2, cur_Types OUT CLOB,  v_namePrimaryKey OUT CLOB, cur_Result OUT CLOB) IS
    v_sql_str VARCHAR2(1000);
    v_ctx VARCHAR2(100);
    v_rowlength pls_integer;
    qryCtx DBMS_XMLGEN.ctxHandle;
    BEGIN
    
    -- Begin error stmt
    
    SELECT SYS.COL$.NAME INTO v_namePrimaryKey 
    FROM SYS.COL$ INNER JOIN SYS.OBJ$ ON SYS.COL$.OBJ# = SYS.OBJ$.OBJ# 
                  INNER JOIN SYS.CCOL$ ON SYS.COL$.OBJ# = SYS.CCOL$.OBJ# 
                  INNER JOIN SYS.CDEF$ ON SYS.CCOL$.CON# = SYS.CDEF$.CON# 
    WHERE SYS.OBJ$.NAME = tablename AND SYS.CDEF$.TYPE# = 2 AND SYS.COL$.COL# = SYS.CCOL$.COL#;
    
    -- End error stmt 
    
    (...)
    
    END USP_ROWLARGESIZE;
    As you can see, I have marked the statement with the error according to the OEM error message. The error text is: "Error Text = PL/SQL: ORA-00942: table or view does not exist. My goal is to store in the output parameter 'v_namePrimaryKey' the primary key column of a tablename. This query only works in more SQL query editor. Could someone help me?

    Thank you very much in advance!

    Published by: user9112176 on February 10, 2010 18:30

    Published by: user9112176 on February 10, 2010 18:31

    Published by: user9112176 on February 10, 2010 18:32

    Published by: user9112176 on February 10, 2010 18:33

    Published by: user9112176 on February 10, 2010 19:22

    System objects are accessible in SQL because they are visible through roles (DBA or SELECT_CATALOG_ROLE for example).

    However, the roles are disabled in PLSQL. You must have explicit privileges.
    That said, I would strongly advice you against writing code that references the SYS objects directly. You should use the USER_ or ALL_ % (or, if you really really must) the DBA_ % views.

    Hemant K Collette
    http://hemantoracledba.blogspot.com

  • CIAC 4.0 manual installation, problems with the procedure

    Hi all

    I m trying to install the latest version of the CIAC and I m facing some problems on the configuration phase.

    I m using the following document:

    Cisco_Intelligent_Automation_for_Cloud_4.0_Installation_Guide.PDF

    Downloaded from the portal of Cisco.

    On page 34, we can found the procedure for installing the adapter of REX.

    The procedure is very confused and not able to find where to put the REXAdapter.xml I m, that it points to C:\Rex\Deploy, but the CIAC device is based on linux and not able to find this file on the server of the portal I m.

    Also the adk.zip is absent from packs of automation CPO.

    Thanks in advance,

    Alex.

    The 4.0 unit has already installed RexAdapter. You can view the list of Service link adapters.

  • Problem with stored procedure and validation

    I have the following stored procedure:

    create or replace PROCEDURE SOME_PROC)

    /*

    Some settings

    */

    ) AS

    NUMBER of errors

    BEGIN

    errors: = FN_CHECK_BUSINESS_RULE_1 (/ * some args * /);

    if(Errors > 0) then

    raise_application_error (ERR_CONSTANTS. SOME_ERROR_NUMBER, ERR_CONSTANTS. SOME_ERROR_MESSAGE);

    end if;

    INSERT INTO une_table (/ * columns * /) VALUES (/ * values * /);

    END SOME_PROC;

    Because the business rule 1 is placed inside the stored procedure I can't check it out without calling the stored procedure.

    I need to call the stored procedure 10 times with a different set of parameters and validation of the changes only after all calls to the stored procedure

    are successful. I want to show the user all the errors that occurred during the stored procedure calls. If for a first example of stored procedure call

    succeeds and a second failure no data has to be stored in a database.

    How to prevent the stored procedure for insert lines until I call the method commit of ApplicationModule?

    Thanks in advance.

    No, other users only see the lines until you commit. The search term is the transaction isolation level. Tom Kite write a paper on this here ask Tom: on transaction isolation levels. This article gives some samples, according to theory, and you should read it.

    Timo

  • Problem with a procedure!

    Hello

    I have a procedure that I am trying to remove some unnecessary tables with her!

    It does not actually delete these tables after execution, you do have an idea why?

    CREATE OR REPLACE PROCEDURE SYS. MX3_DELETE_TEMPORARY(T_OWNER CHAR) AS

    BEGIN

    DECLARE

    cursor CS_RENSA IS

    Select OBJECT_TYPE,

    OBJECT_NAME

    FROM dba_OBJECTS WHERE

    ((NOM_OBJET COMME '% _TMP» ET OBJECT_NAME LIKE '%#%') OR)

    (OBJECT_NAME LIKE '% _TMPS' AND OBJECT_NAME LIKE ' %#%'))) AND THE OWNER = "T_OWNER";

    sqltxt tank (180);

    CS_OBJECT_TYPE CHAR (30);

    CS_OBJECT_NAME CHAR (30);

    BEGIN

    CS_RENSA OPEN;

    LOOP

    extract the CS_RENSA in CS_OBJECT_TYPE, CS_OBJECT_NAME;

    When the output CS_RENSA % notfound;

    SQLTXT: = 'DROP'. CS_OBJECT_TYPE | ' T_OWNER.'. CS_OBJECT_NAME;

    immediately run sqltxt;

    end loop;

    close CS_RENSA;

    end;

    end;

    /

    exec sys. MX3_DELETE_TEMPORARY ('TEST');

    Concerning

    / Hesi

    1. I agree with the suggestion above to use VARCHAR2 instead of CHAR, here and everywhere you have code, unless there is a real need for fixed-length strings and all their quirks.

    2. the slider has a predicate

    AND THE OWNER = "T_OWNER";

    who should be

    AND THE OWNER = T_OWNER;

    As it is now, I'm sure you're getting now lines of this slider.

    3. whenever restore you SQL to run like this, you should echo out before running it (at least while you are debugging. So, your code should look like this:

    dbms_output.put_line ('Executing: ' | sqltxt);

    immediately run sqltxt;

    This allow you to see what you are really doing and understanding errors that can be opposed to this SQL.

  • Problem with the procedure. Help, please

    Schema: HR

    Here is the procedure I created, when I compile the procedure it works very well and without errors or warnings are displayed. However, when I run, I get "01031. 00000 - "insufficient privileges" "error. "I tried 'GRANT ALL HR', 'ANY GRANT to HR'.," to HR WITH ADMIN OPTION GRANT ' nothing works. Not sure is code that has questions or privileges.

    create or replace procedure new_create_PROC IS
    BEGIN
    EXECUTE IMMEDIATE 'CREATE TABLE NEW_CREATE1(EMP_ID NUMBER,EMP_NAME VARCHAR2(20))';
    END;
    /
    
    
    EXECUTE new_create_PROC;
    
    TE new_create_PROC;
    /
    

    Help, please.

    You are connected to the DB under what user? You must grant this user the CREATE TABLE privilege.

  • TO COLLECT FEES IN BULK IS NOT GIVING THIS PERFORMANCE IMPROVEMENT

    I changed my old code and replaced it with in bulk to collect (and union all) and I was expecting a significant improvement in performance. But I was disappointed to see not much difference in performance. Just a slight improvement.

    Can someone tell me what the problem is.

    Old Code

    -------------------------------------------------------------

    SELECT new MY_TYPE_TRANSFER_ACTIVITY_OBJ (start_date, b.amount_ccy, c.some_id, a.transaction_amount * (-1))

    LOOSE COLLECTION transfer_activity_tab

    OF MY_transfer_activity one

    INNER JOIN bo_transfer b ON b.transfer_id = a.transfer_id

    INNER JOIN MY_some_id_tmp_tbl c ON c.some_id = b.some_id

    WHERE the b.value_date < = start_date

    AND a.update_datetime > start_datetime

    AND (b.product_type! = 'Repo' GOLD b.transfer_type! = "SOMEINTEREST");

    FOR (IN) r

    SELECT c.some_id, b.amount_ccy, a.transaction_amount

    OF MY_transfer_activity one

    INNER JOIN bo_transfer b ON b.transfer_id = a.transfer_id

    INNER JOIN MY_some_id_tmp_tbl c ON c.some_id = b.some_id

    WHERE the b.value_date < = end_date

    AND a.update_datetime > end_datetime

    AND NOT (b.value_date < = start_date)

    AND a.update_datetime > start_datetime)

    AND (b.product_type! = 'Repo' GOLD b.transfer_type! = "SOMEINTEREST")

    ) LOOP

    transfer_activity_tab.extend;

    transfer_activity_tab (transfer_activity_tab.count): =.

    New MY_TYPE_TRANSFER_ACTIVITY_OBJ (end_date, r.amount_ccy, r.some_id, r.transaction_amount * (-1));

    END LOOP;

    FOR (IN) r

    SELECT c.some_id, b.amount_ccy, a.transaction_amount

    OF MY_transfer_activity one

    INNER JOIN bo_transfer b ON b.transfer_id = a.transfer_id

    INNER JOIN MY_some_id_tmp_tbl c ON c.some_id = b.some_id

    WHERE the b.value_date < = start_date

    AND a.update_datetime > start_datetime

    AND a.update_datetime < = end_datetime

    AND (b.product_type! = 'Repo' GOLD b.transfer_type! = "SOMEINTEREST")

    ) LOOP

    transfer_activity_tab.extend;

    transfer_activity_tab (transfer_activity_tab.count): =.

    new MY_TYPE_TRANSFER_ACTIVITY_OBJ (r.some_id, end_date, r.amount_ccy, r.transaction_amount);

    END LOOP;

    WITH the new code with the code in bulk and union of all the

    ----------------------------------------------

    Select new MY_TYPE_TRANSFER_ACTIVITY_OBJ (dte, amount_ccy, some_id, amount) in bulk collect into transfer_activity_tab

    Of

    (

    SELECT c.some_id, start_date dte, b.amount_ccy, a.transaction_amount * (-1) as the amount

    OF MY_transfer_activity one

    INNER JOIN bo_transfer b ON b.transfer_id = a.transfer_id

    INNER JOIN MY_some_id_tmp_tbl c ON c.some_id = b.some_id

    WHERE the b.value_date < = start_date

    AND a.update_datetime > start_datetime

    AND (b.product_type! = 'Repo' GOLD b.transfer_type! = "SOMEINTEREST")

    Union of all the

    SELECT c.some_id, end_date dte, b.amount_ccy, a.transaction_amount * (-1) as the amount

    OF MY_transfer_activity one

    INNER JOIN bo_transfer b ON b.transfer_id = a.transfer_id

    INNER JOIN MY_some_id_tmp_tbl c ON c.some_id = b.some_id

    WHERE the b.value_date < = end_date

    AND a.update_datetime > end_datetime

    AND NOT (b.value_date < = start_date)

    AND a.update_datetime > start_datetime)

    AND (b.product_type! = 'Repo' GOLD b.transfer_type! = "SOMEINTEREST")

    Union of all the

    SELECT c.some_id, end_date dte, b.amount_ccy, a.transaction_amount as the amount

    OF MY_transfer_activity one

    INNER JOIN bo_transfer b ON b.transfer_id = a.transfer_id

    INNER JOIN MY_some_id_tmp_tbl c ON c.some_id = b.some_id

    WHERE the b.value_date < = start_date

    AND a.update_datetime > start_datetime

    AND a.update_datetime < = end_datetime

    AND (b.product_type! = 'Repo' GOLD b.transfer_type! = "SOMEINTEREST")

    ) ;

    It is change of context - but if the context is cost you say 1 second and costs sql you say 1 minute, then reduce context switches will not make much difference.

  • Problem with rotation (Win 10)

    For some reason, my Yoga 2 Pro refuses to return to "normal" rotation (backwards or on the side). I tried to disable ymg services (no effect), I tried with the ctrl-alt key combination (each one works perfectly, except for the combo of ctrl-alt-UP). - but nothing makes it go back to normal mode. Does anyone have an idea on how to fix this? Thank you.

    Just realize. It was a problem with a driver (HID Collection V2 sensor that (for some reason any) was is no longer 'enabled'.) I noticed in Device Manager and as soon as I clicked on it, the system also showed a "Sdo sensor V2" and from that moment, the screen switched to normal mode (landscape, NOT upside down). So problem solved. I hope.

  • Problem with weakly typed ref Cursor

    I have problem with a procedure in a package that returns a weakly typed reference cursor.
    The cursor that is returned to give the desired result when connected as sys and sysdba.
    But the user has rights of execution on the slider isn't a result.
    If I run the query for the cursor as a user I get the desired result
    I tried creating a new procedure outside of the package and it still doesn't work the way I want it.

    I tested changing authentication none in sqlnet.ora and still no results

    Procedure
    create or replace procedure ReportUnits (in the SYS_REFCURSOR cResult)
    AS
    Start

    Open the cResult for
    Select distinct c.company, c.name, c.companycode
    all_views o, fakta.balance_table b, fakta.company c
    where b.company = c.company
    and o.view_name like upper(b.company ||) '_' || b.balance_table | '_view %');

    end ReportUnits;
    Tried the two SYS_REFCURSOR and
    Typedef t_cursor as ref cursor;

    I get no error message.

    802379 wrote:
    Sorry user_views does not solve the problem using all user_views I get no result points of view because interested does not belong to the user.

    So who owns the upper(b.company ||) '_' || b.balance_table | views of '_view' %)? And the package is created with copyrighted (by default) or with authid current_user? If the package is created with copyrighted, it still operates as package regardles of owner who runs it. Package owner (not the appellant) must have accsess to view granted directly, without going through role (rights define stored objects do honor no roles). And since rights define package runs as the owner of package, all_views will show views package owner has access, not package calling.

    One last thing - what happens if more than one schema has upper(b.company ||) '_' || b.balance_table | views of '_view' %)? Do you want them or only in a specific schema?

    SY.

  • Problem with the enforcement procedure

    Hi guys, I'm having some problem during the procedure call, but it will not display the errors while running.

    I post my code please guide me...

    Create Or Replace procedure Report_Main (A in Varchar2: = 1).

    As

    EmpNo Namelist;

    EmpName Namelist;

    DT Datelist;

    Begin

    Run immediately Q'[Select Distinct B.Empno, B.Empname, A.Dt From(With Qry1 As)

    (Select Rdate Report1 where Empno = "M-336" and To_Char (Rdate, 'Mm') = To_Char (Sysdate, 'Mm') And To_Char (Sysdate, 'Yyyy') = To_Char(Rdate,'Yyyy'))

    Union All

    Select the Pdt in Meeting1 where Empno = "M-336" and To_Char (Pdt, 'Mm') = To_Char (Sysdate, 'Mm') And To_Char (Sysdate, 'Yyyy') = To_Char(Pdt,'Yyyy')

    Union All

    Select D.Hdate in the Trusmart.Loginfo, says C, Holidaymastb D

    Where A.Empno ='M - 336.

    And To_Char (D.Hdate, 'Mm') = To_Char(Sysdate,'Mm')

    And A.State = C.States

    And D.Statesid = C.Statesid

    And To_Char (Sysdate, 'Yyyy') = To_Char(Hdate,'Yyyy')

    )

    Select Dt

    Of

    (Select Min_Date + (Level-1) Dt of)

    (Select Min (Rdate) Min_Date,

    Max (rdate) Max_Date

    Of Qry1)

    Connect by level < = (Max_Date - Min_Date) + 1) Qry2

    If not Exists (Select 1

    Of Qry1 Q1

    Where Q1. RDATE = Qry2.Dt)

    And Trim (To_Char (Dt, 'Day'))! = "Sunday".

    Order By Dt) A, B Empma

    Where B.Empno ='M - 336.

    Order By A.Dt].

    Bulk collect into Empno, Empname, Dt;

    If Sql % found then

    Report_Mail_Proc (Fromad = > ' <[email protected]> ', )

    Toad = > ' < [email protected] >' ,

    EmpNo = > Empno,.

    EmpName = > Empname;

    DT = > Dt);

    End If;

    Exception when No_Data_Found then

    Null;

    End;

    /

    Create Or Replace procedure Report_Mail_Proc (Fromad in Varchar2,

    Toad in Varchar2,

    Topic in Varchar2: = 'Notification of the relevant Date. "

    Message in Varchar2: = 'Dear team',.

    EmpNo in Namelist

    EmpName in Namelist

    DT in Datelist)

    As

    SMTPHost varchar (255): = "monentreprise.com";

    A Utl_Smtp.Connection;

    Begin

    A: = Utl_Smtp.Open_Connection(Smtphost,25);

    Utl_Smtp.HELO (A, SMTPHost);

    Utl_Smtp.mail (A, Fromad);

    Utl_Smtp.RCPT (A, Toad);

    Utl_Smtp.Open_Data (A);

    Utl_Smtp.write_data (, ' Date: ' |) To_Char (Sysdate, ' DD/MM/YYYY HH24:MI:SS'). Utl_Tcp.CRLF);

    Utl_Smtp.write_data (, ' from: ' |) Fromad | Utl_Tcp.CRLF);

    Utl_Smtp.write_data (, ' from: ' |) Toad | Utl_Tcp.CRLF);

    Utl_Smtp.write_data (, ' subject: ' |) Topic | Utl_Tcp.CRLF);

    Utl_Smtp.write_data (A, Utl_Tcp.CRLF);

    Utl_Smtp.write_data (, ' Date: ' |) To_Char (Sysdate, ' DD/MM/YYYY HH24:MI:SS'). Utl_Tcp.CRLF);

    Utl_Smtp.write_data (, ' from: ' |) Substr (substr(Fromad,2), 1, length (substr (Fromad, 2))-1) | Utl_Tcp.CRLF);

    Utl_Smtp.write_data (, ' from: ' |) Substr (substr(Toad,2), 1, length (substr (Toad, 2))-1) | Utl_Tcp.CRLF);

    Utl_Smtp.write_data (A, Utl_Tcp.CRLF);

    Utl_Smtp.write_data (one Message |) Utl_Tcp.CRLF | Utl_Tcp.CRLF |  Q'[here are the dates not reported my employee:]' | Utl_Tcp.CRLF);

    Utl_Smtp.write_data (A, Utl_Tcp.CRLF);

    Utl_Smtp.write_data (, ' EMPLOYEE_NAME ' |') -' ||'    EMPLOYEE_NAME ' |' -' ||'      DATE_NOT_REPORTED ' | Utl_Tcp.CRLF);

    For I In 1.Dt.Count

    Loop

    Utl_Smtp.write_data (, ' ' |) EmpNo (I) | »                '||' - '||'    '|| EmpName (I) | »                 '||' - '||'      '|| To_Char (DT (I), ' DD/mm/YYYY') | Utl_Tcp.CRLF);

    End loop;

    Utl_Smtp.write_data (A, Utl_Tcp.Crlf);

    Utl_Smtp.write_data (, ' text ' |) Utl_Tcp.CRLF);

    Utl_Smtp.write_data (A, Utl_Tcp.Crlf);

    Utl_Smtp.write_data (, ' greetings,)

    Sagar K N

    '|| Utl_Tcp.CRLF);

    Utl_Smtp.Close_Data (A);

    Utl_Smtp.quit (A);

    Exception

    While others then

    Utl_Smtp.quit (A);

    Lift;

    End;

    /

    I get the following error:

    ORA-06550: line 1, column 7:

    PLS-00201: identifier 'REPORT_MAIL' must be declared.

    ORA-06550: line 1, column 7:

    PL/SQL: Statement ignored

    When I run 'user_errors' I get no error in the respective procdedure.

    I'm not allowed to use the "Execute Immediate" statement as I've used?

    Please guide me.

    Thanks in advance.

    I'm confused.

    Depending on your error message, you have an identifier REPORT_MAIL which is not declared.  According to the code you have posted, you have such no identifier anywhere in the code.  Then, you post the error message incorrect or bad code.

    You also say that you use EXECUTE IMMEDIATE.  But the code you posted is not using EXECUTE IMMEDIATE.

    Justin

  • Problem with update of a column by using the procedure of database and refreshing or put in value programmatically

    Dear all,

    I am a beginner in the ADF and am under Jdeveloper Studio Edition Version 12.2.1.0.0.

    I have a page that consists of two taskflows.

    First workflow has a fragment which is to have a table based on view object salespersons (not editable)

    Second task flow contains a form of ADF from the same view object Salespersons.

    As the user selecting a line in the table of the same record is displayed as no problem.

    Now, I have added two buttons Activate and Deactivate that is to change the status of the sales.

    I tried to use two ways an updated using the procedure of database and then put in value by programming and I have different questions with two of them:

    Now, here's the code of the Java bean for activation:

    Option A - the problem with this is the value of the column in the list (the first task rate displayed) is not synchronized

    and Activate and Deactivate buttons are not disabled and active properly.

    {} public void confirmActivation (DialogEvent dialogEvent)

    If (dialogEvent.getOutcome () == DialogEvent.Outcome.yes) {}

    DBSequence vId;

    vId = dcId.getValue ((DBSequence));

    Links BindingContainer = getBindings();

    OperationBinding operationBinding;

    operationBinding = bindings.getOperationBinding ("changeSalespersonsStatus") (OperationBinding);

    operationBinding.getParamsMap () .put ("pId", vId.getValue ());

    operationBinding.getParamsMap () .put ("pStatus", "A");

    Object result = operationBinding.execute ();

    dcStatus.setValue ("A");

    } else {}

    return;

    }

    }

    Option B - the problem with this is that the value of input for status text appears in the Active form for all records in form regardless of its database.

    {} public void confirmActivation (DialogEvent dialogEvent)

    If (dialogEvent.getOutcome () == DialogEvent.Outcome.yes) {}

    -no doubt this two lines are not needed here

    DBSequence vId;

    vId = dcId.getValue ((DBSequence));

    dcStatus.setValue ("A");

    BindingContainer links = getBindings();

    OperationBinding operationBinding;

    the operationBinding = bindings.getOperationBinding("Commit") (OperationBinding);

    Object result = operationBinding.execute ();

    } else {}

    return;

    }

    }

    Here's the code from the Fragment of shape for used buttons.

    "< af:button text = 'Activate' id ="bActivate' icon="/icons/activate.png ' iconPosition = 'top '.

    partialTriggers = "Bcreer bSaveInsert bCancelInsert dDeactivate dActivate".

    Binding = "#{pageFlowScope.salespersonsForm.buttonActivate} '"

    Disabled = ' #{bindings. " Status.inputValue! {= ' n '} ">"

    < af:showPopupBehavior popupId = "pActivate" / >

    < / af:button >

    "< af:button text = 'Disable' id = 'bDeactivate' icon="/icons/deactivate.png ' iconPosition = 'top '.

    partialTriggers = "Bcreer bSaveInsert bCancelInsert dDeactivate dActivate".

    Binding = "#{pageFlowScope.salespersonsForm.buttonDeactivate} '"

    Disabled = ' #{bindings. " Status.inputValue! {= 'A'} ">"

    < af:showPopupBehavior popupId = "pDeactivate" / >

    < / af:button >

    Here's matching Popups for each of the buttons Activate and Deactivate.

    < childCreation = "deferred" autoCancel af:popup = "disabled" id = "pActivate" >

    < af:dialog id = "dActivate" type = "YesNo" title = 'Status of salespersons' closeIconVisible = 'false '.

    affirmativeTextAndAccessKey = "& amp; Yes"cancelTextAndAccessKey ="& amp; (Cancel)

    noTextAndAccessKey = "& amp; No '.

    dialogListener = "#{pageFlowScope.salespersonsForm.confirmActivation}" >

    < f: facet = 'buttonBar' name / >

    < af:outputLabel value = "Are you sure you want to enable the seller?" id = "ol1" / >

    < / af:dialog >

    < / af:popup >

    < childCreation = "deferred" autoCancel af:popup = "disabled" id = "pDeactivate" >

    < af:dialog id = "dDeactivate" type = "YesNo" title = 'Status of salespersons' closeIconVisible = 'false '.

    affirmativeTextAndAccessKey = "& amp; Yes"cancelTextAndAccessKey ="& amp; (Cancel)

    noTextAndAccessKey = "& amp; No '.

    dialogListener = "#{pageFlowScope.salespersonsForm.confirmDeactivation}" >

    < f: facet = 'buttonBar' name / >

    < af:outputLabel value = "Are you sure you want to disable the seller?" id = "ol2" / >

    < / af:dialog >

    < / af:popup >

    Thanks in advance.

    Best regards

    Arif Khadas

    If you bind components to a range of flow page bean. You must complete that it saves the State of the component longer than the life of the component.

    To change the value of the GET value of the component of the link layer and change it.

    In this way the changes are captured by the framework and you should see them.

    Timo

  • Zoo Tycoon 2 ultimate collection-problems with disk 2.

    Hey my laptop is Asus brand and I have windows 8. I have zoo tycoon-ultimate collection, and it worked fine on my last laptop. Disc two usually run on my computer and it comes up with error 1305 error reading the file. I looked in other forums to help, but none of them seems to fix the problem I have. Can someone help me please?

    Hello

    Welcome to the Microsoft community. I appreciate your efforts toward resolving the issue. I would like to ask you some questions for a better understanding of the issue.

    1. Are able to install the game on another computer using the same disk?

    Try and copy the contents of the disc in your computer and then try to install it. If you are not able to copy the file, it could be a problem with the drive itself.

    Alternatively, you can try to install compatibility mode. After you copy the configuration from the disk file, try the following steps.

    a. right click on the driver file and select Properties

    b. Select the Compatibility tab

    c. place a check next to run this program in compatibility mode and select the operating system in the drop-down list.

    d. let the driver to install, and then check the functionality.

    If you need additional help, let us know and we would be happy to help you.

  • I currently own Adobe Creative Suite 5 Master Collection. My computer crashed and I was unable to disable the program. Please help me to reinstall the programs, given that I have exceeded the download due to problems with my computer. Thank you

    I currently own Adobe Creative Suite 5 Master Collection. My computer crashed and I was unable to disable the program. Please help me to reinstall the programs, given that I have exceeded the download due to problems with my computer. Thank you

    Hello

    Please see the thread: https://forums.adobe.com/thread/2028937?start=0&tstart=0

    Kind regards

    Shelly

  • Problems with procedures on the ODI 11 g

    Hello gurus,

    We have an ODI environment, where we have migrated from ODI 10 ODI 11 g (11.1.1.6) with upgrade wizard at level g.

    Problem is that procedures in our migrated packages show performed by exploiting (by green tickmark), but they are actually NOT running the code. Means that we are not able to see the Code for the steps in the procedure, when this step is open from the operator. He doesn't even watch lines updated or other statistics. It displays 0 for all.

    We do not a mistake in the studio of ODI for these steps. That is why it is impossible to understand what is happening.

    Note: No problem with SQL code. Its been tested on SQL Server.

    What could be the cause behind all this?
    Help, please.


    Thank you
    Santy

    The problem here is that there is option always run , which belongs to each procedure. Must be enabled/checked(need to check manually going through each procedure) in order to have the procedure to run after the migration to 11 g. It was not mandatory in 10g, & unfortunately, the upgrade wizard does not care about that.

    Kind regards

    Santy

Maybe you are looking for

  • Check for laptop

    Hi all! How long does it take before you receive a confirmation of your standard warranty? It's almost a week since I have saved my laptop. Apart from the registration of the guarantee and the MicrosoftOffice OneNote, is it necessary to register for

  • Error 80070490 - Windows Vista - cannot install important updates__

    I have Windows Vista and Service Pack 1 installed. However, I get the message saying that Windows Update may not all updates. I have Microsoft.NET Framework 3.5 Service Pack 1 and .net Framework 3.5 updated fmaily (KB951847) x 86 which is a seedbed u

  • Media center pointer keeps disappearing

    Windows Media works fine, but the mouse pointer disappears from the screen that keeps me using all the functions.

  • For Bruce Hagen Outlook exp. error: 0x800ccc15

    Re: message from the 11/12 I tried a new identity, sent a message in this new identity. Returned with the new error message: Ox800ccc19. Also to reset the IP stack. Followed the instructions correctly, and that did not fix my problem of not being abl

  • 2013 installed QuickBooks, the printer Deskjet 4100 series offline

    I just installed quickbooks 2013 on my thinkpad, running windows 7, and therefore my hp deskjet f4180 printer is spent in offline mode and will not work. I stoked market several times. I uninstalled and reinstalled the printer. I unchecked the "use o