Getting error - ORA-06511: PL/SQL: cursor already opened

I have the following code for an Apex (Application Express) project I'm developing.

declare
mail_id varchar2 (100);
number of min_skill_cnt;
skill_cde varchar2 (30);
number of total_leave;
number of toal_emp;

CUR cursor is
Select S_EMP_EMAIL
from EMP_SKILLS_INFO where SKILLCODE = 'MGR' and S_EMP_EMAIL = lower(:APP_USER);


cursor minskill is
Select skill_code, MINRQMT_AM
of skills_code_info
where skill_code in (select skillcode from the emp_skills_info where S_EMP_EMAIL = lower (:APP_USER));

cursor leavecnt (v_skill IN VARCHAR2) is
Select count (*) in emp_leave_info
where leave_date =: P24_LEAVE_DATE
and emp_email IN (select S_EMP_EMAIL from the EMP_SKILLS_INFO where SKILLCODE = v_skill);


cursor empcnt (v_skills IN VARCHAR2) is
Select count (*) in EMP_SKILLS_INFO
where SKILLCODE = v_skills;

Start

Open the heart;

Open minskill;

LOOP
extract the minskill in skill_cde min_skill_cnt;
When the output minskill % NOTFOUND;

Open leavecnt (skill_cde);
extract the leavecnt in total_leave;

Open empcnt (skill_cde);
extract the empcnt in toal_emp;

IF toal_emp-total_leave < min_skill_cnt

then

() apex_mail. Send
p_to = >: APP_USER,.
P_FROM = > '[email protected] ',.
p_cc = > NULL,
p_body = > ' * this is a system generated message, please do not respond to this *' |
Chr (10) | UTL_TCP. CRLF. "Please consider the skills as ' |: APP_USER |' on leave ' |"

Chr (10) | UTL_TCP. CRLF. "Thank you,.
p_subj = > 'Alert code skills');

end if;

END LOOP;

close empcnt;
close leavecnt;
close minskill;
close cur;

end;

=======================
Ideally this should send an email to managers when a particular skill runs short when the employee is requesting authorization.
I am getting an error that cursor is already open when I run this code. I don't know what cursor or where it sits open cursor command.

All entries will be appreciated.

You open cursors leavecnt and empcnt in a loop without closing. Second iteration of loop will obviously trigger the cursor is already open.

SY.

Tags: Database

Similar Questions

  • Same mistake again - ORA-06511: PL/SQL: cursor already opened

    Hello

    Even if I close the cursor, I get the following error "ORA-06511-6511: PL/SQL: cursor already opened. Please can you give your suggestion.

    CUR CURSOR IS
    JULIE name FROM test;

    BEGIN

    IF heart % ISOPEN THEN
    CLOSE cur
    END IF;

    Heart OPEN;

    FOR my heart IN cuv
    LOOP
    -sql statements
    END LOOP;

    END;

    Published by: AravindhK on December 6, 2011 13:56

    Do not open cursors when you write

    For  in 
    loop
    
    SQL> Declare
    CURSOR cur IS
    SELECT 1 A FROM dual;
    BEGIN
    IF cur%ISOPEN THEN
    CLOSE cur;
    END IF;
    --OPEN cur;
    DBMS_OUTPUT.PUT_LINE('Cursor opened by for');
    FOR cuv IN cur
    LOOP
    DBMS_OUTPUT.PUT_LINE(cuv.A);
    END LOOP;
    END;
    
    Cursor opened by for
    1
    
    PL/SQL procedure successfully completed.
    
  • PL/SQL: cursor already open

    Hi all

    You people could help to resolve the error
    "PL/SQL: cursor already open '."

    Thanks in advance
     CREATE OR REPLACE FUNCTION get_row_lane_counts_text
     RETURN VARCHAR2
     IS
        my_row_counts_text      VARCHAR2(10000);
        my_row_counts_entry      VARCHAR2(10000);
        my_row_counts_pct_entry      VARCHAR2(10000);      
        my_row_count_total_text  VARCHAR2(10000);
        my_total            NUMBER(12);
        my_count_result     VARCHAR2(20);
     
        CURSOR row_counts_text IS
            SELECT 'edr_rpt_lane_by_class_package.gen_total_lane_count('
                            ||'lane_id, '
                            ||'direction_id, '
                            ||'interval_start_date_time, '
                            ||'interval_end_date_time, '
                            ||'range_low, '
                            ||'range_high, '
                            || site_lane_id || ', '                                        
                            || site_lane_id || ') "#'|| site_lane_id || '"'
              FROM edr_rpt_tmp_report_lanes     
          ORDER BY site_lane_id;
          
           CURSOR row_counts_pct_text IS
            SELECT 'edr_rpt_lane_by_class_package.gen_total_lane_count_pct('
                            ||'lane_id, '
                            ||'direction_id, '
                            ||'interval_start_date_time, '
                            ||'interval_end_date_time, '
                            ||'range_low, '
                            ||'range_high, '
                            || site_lane_id || ', '                                        
                            || site_lane_id || ') "#'|| site_lane_id || '%"'
              FROM edr_rpt_tmp_report_lanes     
          ORDER BY site_lane_id;
          
          
     
     BEGIN
     
       my_row_counts_text      := ''; 
       my_row_counts_entry     := '';
       my_row_counts_pct_entry := ''; 
      
       -- generate the speed ranges function calls
       OPEN row_counts_text;
       LOOP
     
         FETCH row_counts_text INTO my_row_counts_entry;
     
         EXIT WHEN row_counts_text%NOTFOUND;
         
              OPEN row_counts_pct_text;
            LOOP
     
                  FETCH row_counts_pct_text INTO my_row_counts_pct_entry;
     
                  EXIT WHEN row_counts_pct_text%NOTFOUND;
         
                 my_row_counts_text := my_row_counts_entry || ', ' || my_row_counts_pct_entry;
             
             END LOOP; 
             
            
        
       END LOOP;
       
         CLOSE row_counts_pct_text;
       
       CLOSE row_counts_text;
       
       
     
       RETURN my_row_counts_text;
       
     
     END;
     /

    Works fine for me...

    SQL > create table t1 (number, number of b).

    Table created.

    SQL > insert into t1 values (1,1);

    1 line of creation.

    SQL > commit;

    Validation complete.

    SQL > CREATE or REPLACE FUNCTION get_row_lane_counts_text
    2 RETURN VARCHAR2
    3 EAST
    4 my_row_counts_text VARCHAR2 (10000);
    5 my_row_counts_entry VARCHAR2 (10000);
    6 my_row_counts_pct_entry VARCHAR2 (10000);
    7 my_row_count_total_text VARCHAR2 (10000);
    8 my_total NUMBER (12);
    9 my_count_result VARCHAR2 (20);
    10
    11 row_counts_text of CURSOR IS
    12. SELECT one
    13 FROM t1;
    14
    15
    16
    17 row_counts_pct_text of CURSOR IS
    18 SELECT b
    19 FROM t1;
    20
    21
    22
    23
    24
    BEGIN 25
    26
    27
    28 my_row_counts_text: = ";
    29 my_row_counts_entry: = ";
    30 my_row_counts_pct_entry: = ";
    31
    32
    33 generates speed ranges function calls
    34 row_counts_text OPEN;
    LOOP 35
    36
    37
    38 FETCH row_counts_text INTO my_row_counts_entry;
    39
    40
    EXIT 41 WHEN row_counts_text % NOTFOUND;
    42
    43
    44 row_counts_pct_text OPEN;
    45 LOOP
    46
    47
    48 FETCH row_counts_pct_text INTO my_row_counts_pct_entry;
    49
    50
    EXIT 51 WHEN row_counts_pct_text % NOTFOUND;
    52
    53
    54 my_row_counts_text: = my_row_counts_entry | ', ' || my_row_counts_pct_entry;
    55
    56
    57 END LOOP;
    58
    59
    60 row_counts_pct_text CLOSE;
    61
    LOOP END 62;
    63
    64
    65
    66
    67
    68 row_counts_text CLOSE;
    69
    70
    71
    72
    73 my_row_counts_text RETURN;
    74
    75
    76
    END 77;
    78
    79.

    The function is created.

    SQL >

    SQL > select get_row_lane_counts_text() from double;

    GET_ROW_LANE_COUNTS_TEXT()
    --------------------------------------------------------------------------------
    1, 1

  • When I try to connect from the client to the RAC by using the SCANNER, I get ERROR: ORA-12541: TNS: no listenerOracle

    CARS: 2 nodes with Oracle single Client Access name (SCAN)

    OS: OEL 5.4 64-bit

    Version: 11.2.0.3

    When I try to connect from the client to the RAC by using the SCANNER, I get ERROR: ORA-12541: TNS: no listenerOracle. I noticed that the service is in place and properly configured (client tnsnames).

    servicioBD = (DESCRIPTION = (LOAD_BALANCE = yes) (ADDRESS = (PROTOCOL = TCP)(HOST = scanvip.domain1.local) (PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = serviceBD) (FAILOVER_MODE = (TYPE = SΘLECTIONNER) (METHOD = BASIC) (RETRIES = 180) (DELAY = 5))))

    serviceBD service

    SQL > select name, failover_method, failover_type, failover_retries, goal, clb_goal, aq_ha_notifications from dba_services where service_id = 3;

    METHOD NAME TYPE PURPOSE CLB_GOAL AQNOT ATTEMPTS

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

    serviceBD BASIC SELECT 180 NO LONG YES

    But when I do not use the service created for the tnsnames file SCAN, it's that if I directly put tnsnames to connect to any work of two nodes very well.

    Node 1

    servicioBD =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = TCP) (HOST = 10.210.2.10)(PORT = 1521))

    )

    (CONNECT_DATA =

    (SERVICE_NAME = orcl)

    )

    )

    Or

    Node 1

    servicioBD =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = TCP) (HOST = 10.210.2.11)(PORT = 1521))

    )

    (CONNECT_DATA =

    (SERVICE_NAME = orcl)

    )

    )

    I have also observed the following (cluvfy).

    1 all LISTENER_SCAN running node 1

    2 there is no TCP connectivity

    3 the error message is obtained PRVF-5713

    [grid@rac1 ~] comp cluvfy $ scan - verbose

    Check scan

    Checking the single Client access name (SCAN)...

    ANALYZE the running node name?      ListenerName Port running?

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

    scanvip.Domain1.local 1521 LISTENER_SCAN1 true true rac1

    scanvip.Domain1.local 1521 LISTENER_SCAN2 true true rac1

    scanvip.Domain1.local 1521 LISTENER_SCAN3 true true rac1

    Checking TCP connectivity to ANALYZE listeners...

    Node of ListenerName TCP connectivity?

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

    RAC1 LISTENER_SCAN1 no

    RAC1 LISTENER_SCAN2 no

    RAC1 LISTENER_SCAN3 no

    PRVF-5713: command "/u01/app/11.2.0/grid/bin/tnsping" (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=10.210.2.17) (PORT = 1521)))'"running on the node"rac1"produces no output no output.

    PRVF-5713: command "/u01/app/11.2.0/grid/bin/tnsping" (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=10.210.2.19) (PORT = 1521)))'"running on the node"rac1"produces no output no output.

    PRVF-5713: command "/u01/app/11.2.0/grid/bin/tnsping" (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=10.210.2.18) (PORT = 1521)))'"running on the node"rac1"produces no output no output.

    Check the resolution settings of name to 'scanvip.domain1.local '...

    SCAN the IP address status comment name

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

    scanvip.Domain1.local 10.210.2.18 spent

    scanvip.Domain1.local 10.210.2.19 spent

    scanvip.Domain1.local 10.210.2.17 spent

    Verification of the installation program ANALYZES VIP and the listener has failed

    The analysis check failed on all specified nodes.

    Could someone help me please.

    The solution was to restart scan_listener.

    srvctl stop scan_listener

    srvctl start scan_listener

  • How to solve the error ORA-00001 in SQL Insert?

    Hi all, I need your help appreciated.

    I do a plsql procedure that inserts a line according to the value of the slider, I have error oracle ORA-00001: unique constraint (constraint_name) violated.

    This message may appear if a duplicate entry exists at a different level: in the RDBMS MySQL, I have the syntax IGNORES to solve this error of duplication... and in Oracle?

    Thanks for your time and your advice.
    Miguelito

    user6317803 wrote:
    How to solve the error ORA-00001 in SQL Insert?

    ORA-00001 means table a unique/primary key / index and you attempt to insert a row with the key value already exists in the table. I'll assume table has a primary key on COUNTRY_ID. Then modify SQL for:

    SQL = "INSERT INTO COUNTRIES (COUNTRY_ID, COUNTRY_NAME, REGION_ID) SELECT"BZ","BLZ", 3 DOUBLE WHERE DOES NOT EXIST (SELECT 1 FROM COUNTRIES WHERE COUNTRY_ID ="BZ").

    There is a good chance COUNTRY table also has unique key/index on COUNTRY_NAME. If so use:

    SQL = "INSERT INTO COUNTRIES (COUNTRY_ID, COUNTRY_NAME, REGION_ID) SELECT"BZ","BLZ", 3 DOUBLE WHERE DOES NOT EXIST (SELECT 1 FROM COUNTRIES WHERE COUNTRY_ID = 'BZ' OR 'BLZ' = COUNTRY_NAME).

    SY.

  • While the BLOB conversion of type CLOB error - ORA-06502: PL/SQL: digital error or value

    Passing data from attachment of DB (Blob data Type) after the CLOB data type conversion, giving the error "ORA-06502: PL/SQL: digital error or value" in the PL/SQL package. If the BLOB size 32K > it will give another error works great my procedure.

    For example, I enclose my code here.

    function get_base64 (p_blob_in in blob) return clob is

    CLOB v_clob;

    CLOB v_result;

    whole v_offset;

    v_chunk_size PLS_INTEGER: = 12288;

    v_buffer_varchar varchar2 (32767).

    v_buffer_raw raw (32767).

    Start

    fnd_file.put_line (fnd_file.log, 'here');

    If p_blob_in is null then

    Returns a null value.

    end if;

    DBMS_LOB.CREATETEMPORARY (v_clob, true);

    fnd_file.put_line (fnd_file.log, 'here1');

    v_offset: = 1;

    fnd_file.put_line (fnd_file.log, 'Loop value'-| ceil (DBMS_LOB.) GetLength (p_blob_in) / v_chunk_size));

    because me in 1... ceil (DBMS_LOB. GetLength (p_blob_in) / v_chunk_size) loop

    DBMS_LOB. Read (p_blob_in, v_chunk_size, v_offset, v_buffer_raw);

    v_buffer_raw: = utl_encode.base64_encode (v_buffer_raw);

    v_buffer_varchar: = utl_raw.cast_to_varchar2 (v_buffer_raw);

    DBMS_LOB. WriteAppend (v_clob, length (v_buffer_varchar), v_buffer_varchar);

    v_offset: = v_offset + v_chunk_size;

    end loop;

    fnd_file.put_line (fnd_file.log, 'Out of the loop');

    v_result: = v_clob;

    fnd_file.put_line (fnd_file.log, 'V_result length' - |) DBMS_LOB. GetLength (v_result));

    fnd_file.put_line (fnd_file.log, 'V_result' - | v_result);

    DBMS_LOB.freeTemporary (v_clob);

    Return v_result;

    exception

    while others then

    fnd_file.put_line (fnd_file.log, 'Error based on the encode_base64' - |) SQLERRM);

    Returns a null value.

    end;

    In my main program I call this function as below:

    Main proceedings...

    l_return_clob CLOB.

    Begin

    ....

    l_return_clob: = get_base64 (p_blob_in);

    -In returning it gives error - ORA-06502: PL/SQL: digital error or value

    end;

    Then, please mark the thread ANSWERED.

  • Hello. I explained the following error in InDesign. When you open a file that is stored on a server, I get an error message because the file is already open, or don't have sufficient permissions. If I copy to the desktop and open it, I have no p

    Hello. I explained the following error in InDesign. When you open a file that is stored on a server, I get an error message because the file is already open, or don't have sufficient permissions. If I copy to the desktop and open it, I have no problem. Can someone help me? Thank you.

    Is there a file .idlk remaining on the server which is not removed properly?

  • Error: ORA-06508: PL/SQL: called program unit is not found

    Hello

    I was surprise issue while testing my code from Oracle. Let me explain first of all the details of the environment. Our application built
    Java/J2EE (Weblogic) and backend is Oracle 11 g re2. Calling Java call through different users who have been providing
    synonymous with option and running for corresponding procedure.
    I created the EXTRACT_CUSTOMER_INFO_PK package which exract data from file text with UTL_FILE (direcory, UTL_FILE grant is provided to the user to DB).
    Now this package was called rp_execute_procedure_pr - I have here is the code
    CREATE OR REPLACE PROCEDURE RP_EXECUTE_PROCEDURE_PR
    (
    i_atlas_job_schedule_fk IN atlas_job_schedule.atlas_job_schedule_pk%TYPE,
    i_job_id IN atlas_job.job_id%TYPE,
    i_parm_value IN atlas_job_schedule.parm_value%TYPE,
    o_status_code ON the NUMBER,
    o_status_mesg OUT VARCHAR2
    )
    IS
    -Other older code that is not relevant to this problem-

    -Other older code that is not relevant to this problem-

    -The code below, I added-
    ELSIF l_job_id = "CUST_EXTRACT" THEN


    EXTRACT_CUSTOMER_INFO_PK.customer_report (i_parm_value,
    o_status_code,
    o_status_mesg);


    -o_status_code: =-99999999.
    -o_status_mesg: = "PARTHA PARTHA PARTHAcess arrested!";

    ON THE OTHER
    o_status_code: =-20300;
    o_status_mesg: = ' Job Id: ' | l_job_id | ' Not found. Process is completed!';
    END IF;

    update_log_auto
    (
    ajs_rec.atlas_job_schedule_pk,
    ' Treatment time (GMT) of the end: '
    );

    EXCEPTION
    WHEN eProcError THEN
    o_status_code: = SQLCODE;
    o_status_mesg: = SUBSTR(vMsg ||) e -'|| SQLERRM, 1, 200);

    WHILE OTHERS THEN
    o_status_code: =-20300;
    o_status_mesg: = SUBSTR (SQLERRM, 1, 200);

    update_log_auto
    (
    ajs_rec.atlas_job_schedule_pk,
    ' Error: '. SQLERRM | » '
    );

    update_log_auto
    (
    ajs_rec.atlas_job_schedule_pk,
    ' Treatment time (GMT) of the end: '
    );
    END RP_EXECUTE_PROCEDURE_PR;


    Now he compiled sucesfully. And while I SAT RP_EXECUTE_PROCEDURE_PR then run fine and extracted txt file. But while I called him procedural Java it gives us the error as
    Error: ORA-06508: PL/SQL: 13:16:51 August 2, 2012 called program unit could not be found.

    Like I said RP_EXECUTE_PROCEDURE_PR old proc and used by the other proc, so I first think question is newly added code or maybe a few grants or synonym (although it should not be)
    So I created public means amd gave run grant to my public pkg.
    But he repeated the same mistake.
    I have a lot of R & D on my package but nothing happen. Finally I have my new pkg RP_EXTRACT_CUSTOMER_INFO_PK remane and it works fine

    I need to know what is the RCA for her. I donot think any problem as renaming pkg dependecy works very well.

    NB my user DB iATLAS and Javauser is SUDEEP


    Thanks in advance

    Martin Paiva

    Name conflict usually occurs because there is another object with the same name: could be it is even a java package name and plsql package package or could be same name from a different scheme.

    First of all, try to use the fully qualified name: myschema.mypackage.myprocedure

  • Then, Firefox crashes when I try to reopen, I get a message saying that it is already open and must be closed. It is not open and I can't shut it down and have to restart. It is very annoying, as often happens.

    Firefox closes unexpectedly so when I try to open it I get a message saying that it is already open and I first need to close. I can't find it anywhere open and then I have to restart to open Firefox again.

    See "hang out":

    See also:

  • Process apex Pl/SQL error: ORA-06502: PL/SQL: digital error or value: specified incorrect LOB Locator

    Apex 4.2

    I searched through the forums of the research about this error, but I do not understand what to do from here. I am writing a process that sends an e-mail when a value of the claim is made (or on a button click). Procedure is as follows:

    DECLARE
       l_body        clob;
       l_body_html   clob;
       l_subject    varchar2(100);
    
    BEGIN
      
    l_body := empty_clob();
    l_body_html := empty_clob();
    
    
    IF V('REQUEST') in ('SAVE_ME') AND :P32_PARENT_UPDATED_FL IS NOT NULL THEN
       l_subject :=  'Survey Job Request Updated'||utl_tcp.crlf||utl_tcp.crlf;
       l_body := 'Update'||utl_tcp.crlf;
    
       l_body_html := '<html>
          <head>
             <style type = "text/css">
                 /* Can add style attributes later */
             </style>
          </head>
          <body>'||utl_tcp.crlf;
       l_body_html := l_body_html ||'Survey Job Request has been updated.<br /><br />'||utl_tcp.crlf;
       l_body_html := l_body_html ||'Title: '||utl_tcp.crlf;
       l_body_html := l_body_html ||:P32_TITLE||utl_tcp.crlf;
       l_body_html := l_body_html ||'<br />Request Category : '||utl_tcp.crlf;
       l_body_html := l_body_html ||:P32_REQUEST_CATEGORY||utl_tcp.crlf;
       l_body_html := l_body_html ||'<br />Update Date: '||utl_tcp.crlf;
       l_body_html := l_body_html ||:P32_UPDATE_DATE||utl_tcp.crlf;
       l_body_html := l_body_html ||'<br />Updated By: '||utl_tcp.crlf;
       l_body_html := l_body_html ||:P32_LAST_EDITED_BY_USERID||utl_tcp.crlf;
       l_body_html := l_body_html ||'</body></html>';
    
    
    
    
    
    END IF;
    
    :P32_CANCELLATION_REASON := l_body_html;
    
    apex_mail.send(
       p_to             =>  '[email protected]',
       p_from           =>  '[email protected]',
       p_body           =>  l_body_html,
       p_body_html      =>  l_body_html,
       p_subj           =>  l_subject);
    
    END;
    
    
    
    
    
    
    
    
    
    

    I added two lines to the code (lines 08 and 09) and when I run my program, I now get the error:

    • ORA-21560: 3 argument is null, invalid or out of range

    Without these two lines, I received the error:

    ORA-06502: PL/SQL: digital error or value: specified incorrect LOB Locator

    I'm not quite sure what is wrong or what I can change. There seems to be right, and in fact, it worked before. I have no idea why this error keeps popping up. Any help on that would be great. Thanks in advance.

    Hello

    NewApexCoder wrote:

    Hmmm... good point. I think that apex_mail.send must be called inside the IF block. But in the future, I added several conditional statements, won't I need to include the apex_mail.send function in each IF block? But at the same time, there is the case that if no conditional instructions are met? Tests, when none of the conditions are true (when I had a second IF block in the code), an email would not be defined, which is correct. Could that be causing a problem however. If the IF block is not filled could he always try to send an email about anything or the l_body_html and l_subject fields have in them the garbage that causing ORA error?

    If the call to the procedure of sending (it is a procedure, and not a function) many times is necessary or useful depends on exactly what you're trying to do.

    For example, you can write to Santa for

    • Submit a wish list
    • Change of address
    • Contradiction with your boss, who can you tell Santa you were mean

    or any combination of these grounds.  If you want to send a simple email whenever any of the conditions are met (and not send a when none are met), then you could do something like this:

    DECLARE

    need_to_send BOOLEAN: = FALSE;

    ...

    BEGIN

    ...

    IF wish_list IS NOT NULL

    THEN

    l_body: = l_body | ...

    need_to_send: = TRUE;

    END IF;

    IF old_addresss <> new_address

    THEN

    l_body: = l_body | ...

    need_to_send: = TRUE;

    END IF;

    IF boss_is_a_big_fat_liar

    THEN

    l_body: = l_body | ...

    need_to_send: = TRUE;

    END IF;

    IF need_to_send

    SO - It's the only call to send

    apex_mail. Send...

    In any case, the error message ' ORA-21560: argument 3 sucks...» "is pretty clear: If you have not given a value to everything you're passing as p_body, then you'd better call the procedure.

  • Problem with error ORA-06502: PL/SQL: numeric string or the error value

    Hello

    I use a loop for the coil just out of data using 'dbms_output.put_line' and I get this error after a few records. I've been using and it happens at a different interval. He would have to do with the length of the question, I am trying to spool? Thank you.

    ORA-06502: PL/SQL: numeric string or the error value

    SD wrote:
    Hello

    I use a loop for the coil just out of data using 'dbms_output.put_line' and I get this error after a few records. I've been using and it happens at a different interval. He would have to do with the length of the question, I am trying to spool? Thank you.

    ORA-06502: PL/SQL: numeric string or the error value

    Yes, it's a mistake to dependent data.

    Manage: SD
    Status level: Beginner
    Join date: November 21, 2001
    Messages total: 289
    Total Questions: 189 (183 pending)

    Why wasting you time here when you get rarely answers your questions?

  • Workflow PO error "ORA-06502: PL/SQL: digital error or value."

    Hi guys,.


    Column MAIL_STATUS of the WF_NOTIFICATIONS ERROR value



    SQL > select ERROR_MESSAGE in wf_item_activity_statuses_v WHERE NOTIFICATION_ID = 1320203



    ERROR_MESSAGE

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

    [WF_ERROR] ERROR_MESSAGE = 3835: error '-6502 - ORA-06502: PL/SQL: numeric or earned

    e error: form of associative array is not compatible with enco session settings

    untered during execution of the function Generate ' WF_XML. Generate 'event' oracl

    e.apps.WF.notification.Send'. ERROR_STACK =

    PO_REQAPPROVAL_LAUNCH. POREQ_SELECTOR (POAPPRV, TEST_CTX, 10150-25246)

    Wf_Engine_Util.Function_Call (PO_REQAPPROVAL_LAUNCH. POREQ_SELECTOR, POAPPRV, 1015

    0-25246, TEST_CTX)

    Wf_Engine_Util.Execute_Selector_Function (POAPPRV, TEST_CTX, 10150-25246)

    Wf_Engine_Util.Function_Call (PO_REQAPPROVAL_LAUNCH. POREQ_SELECTOR, POAPPRV, 1015

    0-25246, TEST_CTX)

    Wf_Engine_Util.Execute_Selector_Function (POAPPRV, TEST_CTX, 10150-25246)

    Wf_Engine.CB (TESTCTX, POAPPRV:10150 - 25246:208270, :::))

    Wf_Engine.oldCB (TESTCTX, POAPPRV:10150 - 25246:208270, :::))

    WF_MAIL. SetContext (1320203)

    WF_XML. GenerateDoc (oracle.apps.wf.notification.send, 1320203)

    WF_XML. Generate (oracle.apps.wf.notification.send, 1320203)

    WF_XML. Generate (oracle.apps.wf.notification.send, 1320203)

    Wf_Event.setMessage (oracle.apps.wf.notification.send, 1320203, WF_XML.) Generate)

    Wf_Event.dispatch_internal)

    1 selected line.





    OS: RHEL5.7

    Database: 10.2.0.3

    Applications: R12.0.4

    Please help me to solve this error.

    Salvation;

    Please see the bulletin:

    Approval Confirmation e-mail is not received by trainer - ERROR_MESSAGE = 3835 ORA-20001 ORA-6502 [ID 465146.1]

    Respect of

    HELIOS

  • Using DBMS_METADATA. GET_DDL get error: ORA-00907: lack the right parenthesis

    Hello

    I try to extract the schema DDL to a base (10.2.0.4.0 - 64-bit Enterprise Edition on Solaris 10). I ran the query below and get an ORA-00907: parenthesis right absent error.

    SELECT DBMS_METADATA. GET_DDL (REPLACE(object_type,' ','_') AS object_type, object_name) FROM user_objects WHERE object_type NOT IN ('TABLE_PARTITION', "INDEX_PARTITION", "LOB");

    This is the output when executing the above in the sqlplus worksheet

    Select DBMS_METADATA. GET_DDL (REPLACE (object_type, ", '_') as object_type, object_name) FROM user_objects if object_type in ('TABLE_PARTITION',"INDEX_PARTITION","LOB")
    *
    ERROR on line 1:
    ORA-00907: lack of right parenthesis

    remove the where the clause gives the following:

    Select DBMS_METADATA. GET_DDL (REPLACE (object_type, ", '_') as object_type, object_name) FROM user_objects
    *
    ERROR on line 1:
    ORA-00907: lack of right parenthesis

    Pointers would be welcome. I know I could get the DDL using exp/imp, but I'd like to understand why I get the error of missing parenthesis.

    see you soon,

    Ewan

    SELECT DBMS_METADATA. GET_DDL (REPLACE(object_type,' ','_') AS object_type, object_name) FROM user_objects WHERE object_type NOT IN

    You don't need an alias here. Getting rid of the "as long as object_type' and it should work.

  • Get error - ora-01003 no instruction not analyzed

    Hello

    I customized a form and added under request for insertion trigger before Friday. For the last 4 days that it was working fine and now if we try to save this form, we get the error "ora-01003 no instruction not analyzed.

    Below you will find the query added in the prior insertion trigger: -.

    DECLARE
    BEGIN
    INCIDENT_TRACKING_LIB. Pre_Insert;
    Q_TXN. Event ('PRE-INSERT', ' INCIDENT_TRACKING');
    INSERT INTO cmw_bc_mobile_number select: incident_tracking.account,: INCIDENT_TRACKING. Error_code, double SYSDATE
    WHERE does not exist (select * from cmw_bc_mobile_number)
    where customer_number =:incident_tracking.account);
    END;

    Please can someone help me solve this problem.

    Kind regards
    REDA

    did you change the tables involved?

  • Lexical parameter error: ORA-06502: PL/SQL: digital error or value

    Hello

    I am facing a problem with my lexical parameter. I have a requirement where I have to pass a string to the db column. I think that I am facing problem with quotes. Please find the sample code below:

    : lp_trans_type: = "" AND (RSV.transaction_type <>"F" OR RSV.transaction_type is NULL);"

    The report compiles suceccfully but when run from window SRS that generates an error

    REP-1401: "afterpform": PL/SQL unrecoverable error occurred.
    ORA-06502: PL/SQL: digital error or value

    Please help me how to set up the string within a string. Or please suggest a possible solution.

    Thanks in advace.

    Kind regards
    Prakash

    Check the data type and length of lp_trans_type.

    This is not the error, but will not work your query:

    RSV.transaction_type "F"

    You forgot the =.

    Published by: InoL on July 20, 2010 12:57

Maybe you are looking for