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.

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

  • 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

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

  • 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

  • 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

  • Problems with the date in the procedure on Oracle 11 g

    Hi gurus,

    I have some problems with the date under Oracle 11 g format.

    Let me explain the situation:

    When I start such a request
    Select to_number (to_char (to_date('01.04.2009','dd.mm.yyyy'), 'yyyy'))
    of sys.dual

    I had as a result 2009 under the number.

    When I do the same thing in a procedure of a package like this

    my_year: = to_number (to_char (to_date('01.04.2009','dd.mm.yyyy'), 'yyyy'));

    the my_year variable contains the value 9 instead of 2009.

    Can someone explain to me what goes wrong?

    I just tested with the evolution of the variable nls_date_format of environment for the session and the database is complete without success.

    Kind regards
    Björn

    Yes, it has everything to do with your environment settings.

    SQL> set serveroutput on;
    SQL>
    SQL> declare
      2    my_date date;
      3    my_zeitstempel varchar2(32767);
      4    my_tageswechsel float;
      5  begin
      6    my_zeitstempel := '01.03.1998 07:00';
      7    my_tageswechsel := .25;
      8    my_date := to_date (substr (my_zeitstempel, 1, 10), 'dd.mm.yyyy') + my_tageswechsel +1/24;
      9    dbms_output.put_line( my_date);
     10  end;
     11  /
    01-MAR-98
    
    PL/SQL procedure successfully completed.
    
    SQL> alter session set nls_date_format = 'dd.mm.yyyy hh24:mi:ss'
      2  /
    
    Session altered.
    
    SQL> declare
      2    my_date date;
      3    my_zeitstempel varchar2(32767);
      4    my_tageswechsel float;
      5  begin
      6    my_zeitstempel := '01.03.1998 07:00';
      7    my_tageswechsel := .25;
      8    my_date := to_date (substr (my_zeitstempel, 1, 10), 'dd.mm.yyyy') + my_tageswechsel +1/24;
      9    dbms_output.put_line( my_date);
     10  end;
     11  /
    01.03.1998 07:00:00
    
    PL/SQL procedure successfully completed.
    
  • Problems with 10.0.2 update

    Hello

    I've updated my iphone 6 night on Sunday, October 02, with the 10.0.2 update of apple's software. At updating my iphone, it initially only allowed me to enter a number of characters in texts/emails and started to crash / black. I rebooted my iphone (turn turn off/lit) and it has stopped working all together do not allow me to enter a digital/access code footprint. The phone had left the charge and did not work for two days.

    Yesterday (Wednesday, October 05) I backed up my phone to the icloud and resinstalled scratch. After many hours of pursuit, my iphone allows me today, but again once hangs on applications and allows once again only a certain number of characters to type in any application.

    I am 37 weeks pregnant (considered term) and I need to access emergency calls in case my baby arrives more early. My husband works away and I have no family nearby.

    No idea how I get my iPhone to work entirely without crashing or return to the previous iPhone platform without having to now continue with local ACR? I need my laptop to work, mainly because of the situation, I'm in and need this sorting as soon as possible.

    Advice welcome.

    Thank you

    Sue - A

    Hi Sue - A Q,

    I understand that your device hangs after upgrade to iOS 10.2, and limit the amount of text, you can enter on the keyboard. Since the normal restart has not solved the problem, please try to backup the device and using iTunes to restore it to factory settings without restoring all the data. Instead, configure the device as good as new. You can use your iCloud Apple id to synchronize between your contacts and calendars, etc. Test question to verify that it has been solved. You can use the purchase history App store for re download your applications.

    The backup of your iPhone, iPad and iPod touch

    Use iTunes on your Mac or PC to restore your iPhone, iPad or iPod to factory settings

    Download your latest purchases

    The links above should help you with the procedures, I suggested. Please use the Apple Support communities to post your question. Good day.

  • problems with, phone, 6, Bluetooth kit, Nissan, after update, for, Rios, 1.0.2

    After the update to ios 10.0.2 - trying to use bluetooth to call my vehicle, it says: "this article is not in your phone book." How can I solve this problem?

    Greetings, joybelino1!

    Thank you for joining the communities Support from Apple! I can't wait to see that you are having problems with your Bluetooth in your car! The good news is that Apple has a great article that will help you with measures to try to resolve the problem. Read this article to gethelp to connect your iPhone, iPad, or iPod touch with your car radio. Even though he talks about problems with the connection, it also has the steps for other questions you may have once connected.

    If you use Bluetooth

    1. Consult the user manual of your car stereo to get the procedure to a Bluetooth device.
    2. On your iOS device, drag up to open Control Center, then press ontwice to turn on Bluetooth and turn it back on.
    3. Restart your iOS device.
    4. On your iOS device, Cancel the twinning of your car radio. On the screen of your car désapparier your iOS device and any other device. Restart your car and your iOS device, then pair and connect again.
    5. Update your iOS device.
    6. Install the updates to the firmware of your car radio.
    7. If you still not connect, contact Apple technical support.

    Have a great day!

  • Satellite P300-1 year - Touchpad problem with AC adapter / CC

    I have a laptop Satellite P300-1 year and from the beginning (two weeks)
    I have a touchpad problem: it will not immediately responsive and the pointer shakes when pressing the key. Very often, it freezes for only one or two seconds.

    It's VERY annoying. A USB mouse works perfectly.
    I tried to reinstall the drivers of the ALPS, tried Synaptics ones, just try Windows Vista drivers: no way.

    Now, I found the reason: this question is present only when the laptop is powered by the AC adapter / CC.
    With the battery, the touchpad is perfect.

    I contacted Toshiba Service and thay said that they do not change the AC adapter if I don't mean before a full system restore!
    Is it not more simple just try with a new adapter and then only, if the problem persists, try more drastic procedures?

    Anyone had this same problem?

    > I contacted Toshiba Service and thay said that they do not change the AC adapter if I don't mean before a full system restore! Is it not more simple just try with a new adapter and then only, if the problem persists, try more drastic procedures?

    The point is that your laptop should be always verified using the Toshiba factory setting.
    Why? Because the ASP wants to make sure that this issue is not related to a software problem (compatibility problems with applications 3rd part). Software problems are not covered by the warranty.

    In addition the ASP will always recover the laptop before the verification of the pieces of equipment to malfunction. Therefore, you should always back up your data from the HARD disk until you send the laptop to check.

    I recommend you to reinstall the operating system using the Toshiba recover disc and then check if the problem appears.
    If yes you can contact ASP and could provide all the necessary details for only one technician.

    Good bye

Maybe you are looking for

  • Pavilion zv5000: power on password

    HP Pavilion zv5000 power-password System Disbaled code [03841] need help to overcome my lost password. Thank you

  • iCloud Mail fails to buy more space on El Cap

    It is impossible to enter the password in the field provided.

  • HP Pavilion g7 black screen

    Hello My daughter has a Pavillion g7 running on Windows 7, which does not load.  When the power button is pressed the fan turns, white led power lights up, the white light on the side comes on (not flashing) and broadband light lights up but still or

  • How to search for a location number anywhere in the string

    I am looking for a string to a number (integer or float) without knowing its index in the string and to extract it - whether in digital format or a string.  for example "52,63 number appears in this string." I want to extract/identify "52,63. The fun

  • How to reset Outlook Express?

    HOW TO ERASE ALL THE NAMES AND START OVER IN OUTLOOK EXPRESS? I've listed six identities, none work for sending emails via Outlook Express.  How can I clear all of these ID out when I get the message: no current identity?  So how can I load this new