ERROR: ORA-06553: PLS-801: internal error [55018]

Sorry for my bad english ...
I got error ...
ERROR: ORA-06553: PLS-801: internal error [55018]
if I build function than return %rowtype like this
SELECT * INTO var_return FROM .......
RETURN var_return
Oracle 11g in RedHat Linux
Thanks before ...

Hi,
Perhaps this link can help you.
Regards

Similar Messages

  • ORA-06553: PLS-801: internal error [hshuid:LU invalid]

    DBA refreshed database B from database A (both 64-bit). Database C (also 64-bit) had a link to database B. DBA claims to have rebuilt the link from C to B, but queries now result in:
    SQL> select housing_pkg.f_housing_dep_amt@btest(12540, '200808', 'HEA');
    select housing_pkg.f_housing_dep_amt@btest(12540, '200808', 'HEA')
    ERROR at line 1:
    ORA-06553: PLS-801: internal error [hshuid:LU invalid]
    Can anyone provide some insight into what the error message is saying?

    Hi,
    Most the error is due to the 32 bit datafiles being running on a 64 bit version of oracle.
    Running utlirp.sql (this is going to invalidate most and then recompiles them again )
    I suppose..that is the problem with your DB.
    - Pavan Kumar N
    Edited by: Pavan Kumar on Oct 2, 2008 11:59 PM

  • ORA-06553: PLS-801: internal error [56319]

    Hello,
    i have opened my rman backup, not it works. (X64)
    but when i need to drop a user, i got error below,
    SQL> drop user ugur;
    drop user ugur
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-06553: PLS-801: internal error [56319]
    anybody got any idea, please?

    Selam ugur
    this problem occurs every time If you 64b at the OS to 32p.
    Since all the package were compiled on the 64b version of OS is needed is a re-compile the correct version of the OS. During the db must mount in the upgrade mode.
    SQL> shutdown immediate;
    SQL> startup upgrade;
    SQL> @$ORACLE_HOME/rdbms/admin/utlirp;
    SQL> shutdown immediate;
    SQL> startup;
    SQL> @@$ORACLE_HOME/rdbms/admin/utlrp;
    more on metalink Note:414043.1, Note:413484.1
    regards
    Zekeriya Besiroglu

  • ORA-06553: PLS-801: internal error [55018]

    This error is returned when executing a Function with the RETURN X%ROWTYPE is used.
    Here is the code.
    CREATE OR REPLACE function FE_GET_addr (
    p_PIDM IN addr.addr_PIDM%TYPE,
    p_atyp1 IN VARCHAR2,
    p_atyp2 IN VARCHAR2,
    p_atyp3 IN VARCHAR2,
    p_atyp4 IN VARCHAR2
    RETURN addr%ROWTYPE
    IS
    v_rowid ROWID;
    CURSOR C_addr
    IS
    SELECT
    ROWID RD
    FROM addr
    WHERE addr_PIDM = p_PIDM
    AND NVL ( addr_STATUS_IND, ' ' ) != 'I'
    AND NVL ( addr_FROM_DATE, SYSDATE ) <= SYSDATE
    AND NVL ( addr_TO_DATE, SYSDATE ) >= SYSDATE
    AND addr_ATYP_CODE IN
    ( SUBSTR ( p_atyp1, 2, 2 ),
    SUBSTR ( p_atyp2, 2, 2 ),
    SUBSTR ( p_atyp3, 2, 2 ),
    SUBSTR ( p_atyp4, 2, 2 )
    addr_rec addr%ROWTYPE;
    BEGIN
    OPEN c_addr;
    FETCH c_addr INTO v_rowid;
    IF c_addr%notfound
    THEN return NULL;
    ELSE
    SELECT * INTO addr_rec
    FROM addr
    WHERE ROWID = v_rowid;
    RETURN (addr_rec);
    END IF;
    CLOSE c_addr;
    END Fe_Get_addr;
    Thanks
    Holly

    why so complicated?
    (btw you never get to the "close cursor" bit)
    create or replace function fe_get_addr(p_pidm  in addr.addr_pidm%type
                                          ,p_atyp1 in varchar2
                                          ,p_atyp2 in varchar2
                                          ,p_atyp3 in varchar2
                                          ,p_atyp4 in varchar2)
       return addr%rowtype is
       addr_rec addr%rowtype;
    begin
       select *
         into add_rec
         from addr
        where addr_pidm = p_pidm
          and nvl(addr_status_ind
                 ,' ') != 'I'
          and nvl(addr_from_date
                 ,sysdate) <= sysdate
          and nvl(addr_to_date
                 ,sysdate) >= sysdate
          and addr_atyp_code in (substr(p_atyp1
                                       ,2
                                       ,2)
                                ,substr(p_atyp2
                                       ,2
                                       ,2)
                                ,substr(p_atyp3
                                       ,2
                                       ,2)
                                ,substr(p_atyp4
                                       ,2
                                       ,2));
       return(addr_rec);
    end fe_get_addr;

  • RA-06553: PLS-801: internal error [55018]

    Hi Friends.. Please Help in this.
    CREATE OR REPLACE
      FUNCTION dept_for_name(
          deptnamein IN departments.department_name%type)
        RETURN departments%rowtype
      AS
       l_return departments%rowtype;
      FUNCTION is_secret_dept(
          deptnamein IN departments.department_name%type)
        RETURN BOOLEAN
      AS
      BEGIN
        RETURN
        CASE deptnamein
        WHEN 'Administration' THEN
          true
        ELSE
          false
        END;
      END is_secret_dept;
      BEGIN
        SELECT * INTO l_return FROM departments WHERE department_name=deptnamein;
        IF is_secret_dept(deptnamein) THEN
          l_return:=null;
        END IF;
        RETURN l_return;
      END;
    select dept_for_name('Administration') from dual;
    when i run this with select statement it gives the error.
    RA-06553: PLS-801: internal error [55018]
    How to solve this Please help me.
    Thanks

    Thanks for reply.
    I am not find in this..
    execute dbms_stats.delete_database_stats
    when i give this command it gives the error insufficient privs.
    Please suggest is there any other choice for this problem

  • ORA-06553: PLS-801 error

    Hi,
    Does anyone have experience on solving ORA-06553: PLS-801: internal error.
    ORA-06553: PLS-801: internal error [pklsdlp:dependency verification]
    Thanks

    Hello,
    ORA-06553: PLS-801: internal error [pklsdlp:dependency verification]You should post your OS Platform and Oracle Release.
    The error you got may be due to a Bug, for instance on AIX and Oracle 11.2.0.1, you have the following Note of MOS:
    Bug 10115939: ORA-06553: PLS-801 [PKLSDLP:DEPENDENCY VERIFICATION] WITH FIX FOR BUG 9239863So, please give more details so that we can help you better and, if you suspect a Bug, collect all the Trace files you have, create a Incident Package with ADR (if you are in *11g* ) and open a SR to MOS.
    You'll find below a link about how to create an Incident Package:
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28310/diag010.htm
    Hope this help.
    Best regards,
    Jean-Valentin

  • PLS-801 internal error when returnig rowtype in select clause

    Hi,
    looks like the following case is not handled in version 11.1.0.6.
    I created a function which returns a ROWTYPE
    and when calling this function from a simple sql statement an internal error occurs.
    create table testing as select 1 id, 'A' val from dual;
    create or replace function ret_row return testing%rowtype is
    cursor cur_t is
    select * from testing;
    r testing%rowtype;
    begin
    open cur_t;
    fetch cur_t into r;
    close cur_t;
    return r;
    end;
    select ret_row from dual; when executing this select statement the following error occurs:
    SQL> select ret_row from dual
    ERROR at line 1:
    ORA-06553: PLS-801: internal error [55018]Didn't find any notes from the metalink about this error.
    Ants

    Perhaps in this specific case you can view your output as ->
    satyaki>
    satyaki>select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    5 rows selected.
    Elapsed: 00:00:01.48
    satyaki>
    satyaki>
    satyaki>create table testing as select 1 id, 'A' val from dual;
    Table created.
    Elapsed: 00:00:03.16
    satyaki>
    satyaki>set lin 80
    satyaki>
    satyaki>desc testing;
    Name                                      Null?    Type
    ID                                                 NUMBER
    VAL                                                CHAR(1)
    satyaki>
    satyaki>
    satyaki>set lin 310
    satyaki>
    satyaki>create or replace function ret_row return testing%rowtype is
      2  cursor cur_t is
      3   select * from testing;
      4   r testing%rowtype;
      5  begin
      6   open cur_t;
      7   fetch cur_t into r;
      8   close cur_t;
      9   return r;
    10  end;
    11  /
    Function created.
    Elapsed: 00:00:03.06
    satyaki>
    satyaki>
    satyaki>select ret_row from dual;
    select ret_row from dual
    ERROR at line 1:
    ORA-00902: invalid datatype
    Elapsed: 00:00:00.25
    satyaki>
    satyaki>declare
      2       y testing%rowtype;
      3  begin
      4       y := ret_row;
      5       for i in 1..y.ID
      6       loop
      7         dbms_output.put_line(y.ID);
      8         dbms_output.put_line(y.VAL);
      9       end loop;
    10  end;
    11  /
    1
    A
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.16
    satyaki>
    satyaki>Regards.
    Satyaki De.

  • ERROR ORA-06553:PLS-707

    AFTER MIGRATION FROM 8.1.5 TO 8.1.7 VERSION
    USING WIZARD MIGRATION,
    THE MESSAGE ORA-06553:PLS-707 INTERNAL ERROR [2603] IS CONSTANT ON QUERYS
    null

    This should work
    > cd %oracle_home%\rdbms\admin
    >svrmgrl sys/<password>@dbname
    SVRMGR> @standard
    Statement processed.
    Statement processed.
    Statement processed.
    SVRMGR> @UTLRP
    if this doesn't work then do this
    SVRMGR> @catalog
    good luck

  • ORA-06544: PL/SQL: internal error, arguments: [ORA-06544: PL/SQL:

    Hi,
    Im getting the following error when im trying to connect with my database and getting the following errors. Your quick response will be appreciated
    Alter Log file :
    Database Version : 10.1.0.5
    Errors in file /u01/oracle/app/orainfra/admin/dmsstage/bdump/dmsstage_j000_15592.trc:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-06544: PL/SQL: internal error, arguments: [56313], [], [], [], [], [], [], []
    ORA-06553: PLS-801: internal error [56313]
    ORA-06508: PL/SQL: could not find program unit being called
    ORA-06512: at line 2
    Wed Jul 29 17:18:15 2009
    Errors in file /u01/oracle/app/orainfra/admin/dmsstage/bdump/dmsstage_j000_15592.trc:
    ORA-12012: error on auto execute of job 64553
    ORA-06544: PL/SQL: internal error, arguments: [ORA-06544: PL/SQL: internal error, arguments: [56313], [], [], [], [], [], [], []
    ORA-06553: PLS-801: internal error [56313]
    ORA-06508: PL/SQL: could not find program unit being called
    ORA-06512: at line 2
    Trace file
    dmsstage_j000_15592.trc
    ksedmp: internal or fatal error
    ORA-00604: error occurred at recursive SQL level 1
    ORA-06544: PL/SQL: internal error, arguments: [56313], [], [], [], [], [], [], []
    ORA-06553: PLS-801: internal error [56313]
    ORA-06508: PL/SQL: could not find program unit being called
    ORA-06512: at line 2
    *** CLIENT ID:() 2009-07-29 17:18:15.105
    *** 2009-07-29 17:18:15.105
    ORA-12012: error on auto execute of job 64553
    ORA-06544: PL/SQL: internal error, arguments: [ORA-06544: PL/SQL: internal error, arguments: [56313], [], [], [], [], [], [], []
    ORA-06553: PLS-801: internal error [56313]
    ORA-06508: PL/SQL: could not find program unit being called
    ORA-06512: at line 2
    best regards,

    I would recommend searching Metalink. Be sure to include the arguments in your search.

  • Error w/ UPDATE in Stored Procedure - ORA-06553 PLS-306

    I get the following error when executing my stored proc. from a Perl script:
    DBI ERROR: ORA-06553: PLS-306: wrong number or types of arguments in call to 'UPDATE_USER_PROJMGR' (DBD ERROR: OCIStmtExecute),
    QUERY: DBI::st=HASH(0x238cd4)Now, it's passing the correct number of values, the UPDATE stmt stores them in the proper order and the procedure when created showed it was done so with no errors.
    What value could be out of whack with Oracle here? I don't get it. If anyone sees what I'm doing wrong here, please suggest it.
    Thanks!
    Here's my stored proc.
    CREATE OR REPLACE PROCEDURE UPDATE_USER_PROJMGR
    (dp_regleg IN DEFAULT_PROJECT_USER.REG_LEGAL%type,
    dp_netcred IN DEFAULT_PROJECT_USER.NETCRED_LOSS%type,
    dp_expreduc IN DEFAULT_PROJECT_USER.EXPENSE_REDUC_CKB%type,
    dp_stratgoal IN DEFAULT_PROJECT_USER.STRAT_GOALS%type,
    dp_audcompl IN DEFAULT_PROJECT_USER.AUDIT_COMPL%type,
    dp_revgen IN DEFAULT_PROJECT_USER.REV_GEN%type,
    dp_cacs IN DEFAULT_PROJECT_USER.CACS%type,
    dp_custit IN DEFAULT_PROJECT_USER.CUSTOMIT%type,
    dp_custimpact IN DEFAULT_PROJECT_USER.CUST_IMPACT%type,
    dp_callmgt IN DEFAULT_PROJECT_USER.CALL_MGT%type,
    dp_calltrk IN DEFAULT_PROJECT_USER.CALL_TRACK%type,
    dp_citilink IN DEFAULT_PROJECT_USER.CITILINK%type,
    dp_desktop IN DEFAULT_PROJECT_USER.DESKTOP%type,
    dp_dialer IN DEFAULT_PROJECT_USER.DIALER%type,
    dp_dri IN DEFAULT_PROJECT_USER.DRI%type,
    dp_engr IN DEFAULT_PROJECT_USER.ENGINEER%type,
    dp_img IN DEFAULT_PROJECT_USER.IMAGING%type,
    dp_ipdt IN DEFAULT_PROJECT_USER.IPDT%type,
    dp_mainfram IN DEFAULT_PROJECT_USER.MAINFR%type,
    dp_miscoth IN DEFAULT_PROJECT_USER.MISC_OTHER%type,
    dp_mortserv IN DEFAULT_PROJECT_USER.MORTSERV%type,
    dp_mortweb IN DEFAULT_PROJECT_USER.MORTWEB%type,
    dp_nonmortserv IN DEFAULT_PROJECT_USER.NON_MORTSERV%type,
    dp_origplat IN DEFAULT_PROJECT_USER.ORIG_PLAT%type,
    dp_qualmapping IN DEFAULT_PROJECT_USER.QUAL_MAP%type,
    dp_datawarehse IN DEFAULT_PROJECT_USER.DATAWARE_REPTS%type,
    dp_servappvend IN DEFAULT_PROJECT_USER.SERV_APP_VDR%type,
    dp_sbend IN DEFAULT_PROJECT_USER.SOUTHBEND%type,
    dp_websvcg IN DEFAULT_PROJECT_USER.WEB_SVCG%type,
    dp_projmgr IN DEFAULT_PROJECT_PROJMGR.PROJ_MGR%type,
    dp_status IN DEFAULT_PROJECT_PROJMGR.STATUS%type,
    dp_projtype IN DEFAULT_PROJECT_PROJMGR.IT_PROJ_TYPE%type,
    dp_projnum IN DEFAULT_PROJECT_PROJMGR.IT_PROJNUMBER%type,
    defprodid IN NUMBER)
    IS BEGIN
    -- UPDATE STATEMENT
    UPDATE DEFAULT_PROJECT_USER SET
    REG_LEGAL = dp_regleg, NETCRED_LOSS = dp_netcred,EXPENSE_REDUC_CKB = dp_expreduc, STRAT_GOALS = dp_stratgoal, AUDIT_COMPL = dp_audcompl,
    REV_GEN = dp_revgen,CACS = dp_cacs, CUSTOMIT = dp_custit, CUST_IMPACT = dp_custimpact,CALL_MGT = dp_callmgt,
    CALL_TRACK = dp_calltrk,CITILINK = dp_citilink,DESKTOP = dp_desktop,DIALER = dp_dialer,DRI = dp_dri,
    ENGINEER = dp_engr,IMAGING = dp_img,IPDT = dp_ipdt,MAINFR = dp_mainfram,MISC_OTHER = dp_miscoth,MORTSERV = dp_mortserv,
    MORTWEB = dp_mortweb,NON_MORTSERV = dp_nonmortserv,ORIG_PLAT = dp_origplat,QUAL_MAP = dp_qualmapping,DATAWARE_REPTS = dp_datawarehse,
    SERV_APP_VDR = dp_servappvend,SOUTHBEND = dp_sbend,WEB_SVCG = dp_websvcg
    WHERE DEFPROJ_ID = defprodid;
    UPDATE DEFAULT_PROJECT_PROJMGR SET
    PROJ_MGR = dp_projmgr,STATUS = dp_status,IT_PROJ_TYPE = dp_projtype,IT_PROJNUMBER = dp_projnum
    WHERE DEFPROJ_ID = defprodid;
    COMMIT;
    END UPDATE_USER_PROJMGR;
    /Here's my Perl script callable stmt:
    my $sth2 = $dbh->prepare(q{CALL UPDATE_USER_PROJMGR(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)});
    $sth2->execute($reglegal,$netcredloss,$expreduc,$stratgoal,$audcomp,$revgen,$cacs,$custit,$custimp,$callmgt,$calltrkl,$citlink,$deskt,$dialer,$dri,$engineering, $imaging,$ipdt,$mframe,$miscoth,$mortserv,$mortweb,$nonmortserv,$origpltfrm,$qualmap,$dataware,$servapp,$sbdev,$websvcg,$projmgr,$status,$itprojtype,$itprojnum)or do {
    print('err', "<img src='../spacer.gif' width='1' height='150'>ERROR: Could not execute SQL! Error: " . $dbh->errstr);
               };and the values getting passed:
    Holly Spradlin
    Withdrawn
    PRF
    1222
    Y
    Y
    N
    N
    Y
    Y
    Y
    N
    Y
    N
    N
    N
    Y
    N
    N
    N
    N
    N
    Y
    Y
    Y
    N
    N
    N
    N
    N
    N
    N
    NI get no compile errors or anything until I submit the form to update.
    Any help would be appreciated...if I get it solved, I'll reply right away - thanks.

    try manually executing the procedure to check for the
    errors
    SQL> execute UPDATE_USER_PROJMGR('Holly
    Spradlin','Withdrawn','PRF',1222,'Y','Y','N','N','Y',
    Y','Y','N','Y','N','N','N','Y','N','N','N','N','N','Y'
    ,'Y','Y','N','N','N','N','N','N','N','N');3360 is right you have only supplied 33 parameters
    while your procedures requires 34 parameters.ok, did this and did get the error:
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'UPDATE_USER_PROJMGR'
    ORA-06550: line 1, column 7:but I wonder why I can't specify the ID value as my sequence's currval - ?
    Let me doublecheck my sequence.
    OK, I got it!!! thanks, guys, for all your help!!
    I just needed to back to the callable statement in the perl script itself and add the last ID param.
    Thanks for pointing that out!!
    Message was edited by:
    user515689

  • PLS-00801: internal error [74301]

    Hi!
    I've written one general procedure to recompile all the objects, but i've received this error. Can anyone tell me what went wrong in my code?
    satyaki>ed
    Wrote file afiedt.buf
      1  create or replace procedure compile_all(object_tp in varchar2,ot out varchar2)
      2  is
      3    cursor c1
      4    is
      5      select distinct object_name
      6      from user_objects
      7      where object_type = upper(object_tp)
      8      and   status = upper('invalid');
      9    r1 c1%rowtype;
    10    type obj_rec is table of user_objects.object_name%type;
    11    obj_tab obj_rec;
    12    cnt  number(5);
    13  begin
    14    open c1;
    15    loop
    16      fetch c1 bulk collect into obj_tab;
    17      forall i in 1..obj_tab.count save exceptions
    18        execute immediate(' ALTER '||upper(object_tp)||' '||obj_tab(i)||' COMPILE ');
    19        exit when c1%notfound;
    20    end loop;
    21    close c1;
    22    ot := 'SUCCESSFULL';
    23  exception
    24    when others then
    25      ot := sqlerrm;
    26* end;
    satyaki>/
    Warning: Procedure created with compilation errors.
    satyaki>
    satyaki>
    satyaki>sho errors;
    Errors for PROCEDURE COMPILE_ALL:
    LINE/COL ERROR
    0/0      PLS-00801: internal error [74301]
    satyaki>Regards.
    Satyaki De.

    But, michael it is not solving the purpose for me -
    satyaki>
    satyaki>CREATE OR REPLACE PROCEDURE compile_all (object_tp IN VARCHAR2, ot OUT VARCHAR2)
      2  IS
      3     CURSOR c1
      4     IS
      5        SELECT DISTINCT object_name
      6                   FROM user_objects
      7                  WHERE object_type = UPPER (object_tp)
      8                    AND status = UPPER ('invalid');
      9  
    10     r1        c1%ROWTYPE;
    11  
    12     TYPE obj_rec IS TABLE OF user_objects.object_name%TYPE;
    13  
    14     obj_tab   obj_rec;
    15     cnt       NUMBER (5);
    16  BEGIN
    17     OPEN c1;
    18  
    19     LOOP
    20        FETCH c1
    21        BULK COLLECT INTO obj_tab;
    22  
    23        FORALL i IN 1 .. obj_tab.COUNT SAVE EXCEPTIONS
    24           EXECUTE IMMEDIATE 'BEGIN EXECUTE IMMEDIATE ''ALTER '' || :object_tp || '' '' || :obj_tab || '' COMPILE'';  END;'
    25                       USING object_tp, obj_tab (i);
    26        EXIT WHEN c1%NOTFOUND;
    27     END LOOP;
    28  
    29     CLOSE c1;
    30  
    31     ot := 'SUCCESSFULL';
    32  EXCEPTION
    33     WHEN OTHERS
    34     THEN
    35        ot := SQLERRM;
    36  END compile_all;
    37  /
    Procedure created.
    satyaki>
    satyaki>
    satyaki>drop table e_emk;
    Table dropped.
    satyaki>
    satyaki>
    satyaki>select test_sat_d('SMITH') from dual;
    select test_sat_d('SMITH') from dual
    ERROR at line 1:
    ORA-06575: Package or function TEST_SAT_D is in an invalid state
    satyaki>
    satyaki>
    satyaki>select object_name
      2  from user_objects
      3  where object_type = upper('function')
      4  and   status = upper('invalid');
    OBJECT_NAME
    ABC
    SP_GET_STOCKS
    TEST_SAT_D
    satyaki>
    satyaki>
    satyaki>create table e_emk
      2  as
      3    select empno,ename
      4    from emp;
    Table created.
    satyaki>
    satyaki>
    satyaki>select object_name
      2  from user_objects
      3  where object_type = upper('function')
      4  and   status = upper('invalid');
    OBJECT_NAME
    ABC
    SP_GET_STOCKS
    TEST_SAT_D
    satyaki>
    satyaki>
    satyaki>declare
      2    rm    varchar2(30000);
      3  begin
      4    compile_all('function',rm);
      5    dbms_output.put_line('Status - '||rm);
      6  end;
      7  /
    Status - ORA-24344: success with compilation error
    PL/SQL procedure successfully completed.
    satyaki>
    satyaki>
    satyaki>set serveroutput on
    satyaki>
    satyaki>
    satyaki>select object_name
      2  from user_objects
      3  where object_type = upper('function')
      4  and   status = upper('invalid');
    OBJECT_NAME
    ABC
    SP_GET_STOCKS
    TEST_SAT_D
    satyaki>As you can see after dropping the table i've executed the function and quite naturally it throws error. Now, after creation of the same table with same structure when i ran the compile all it should successfully compile the last function. But, it is not able to perform this, the reason it throws error after compilation of first function which is ABC and returns to exception section. But, i want to compile all the function even if it throws the error. Now, what should be my next step?
    Regards
    Satyaki De.

  • PLS-00801: internal error with FORALL

    I have the following procedure that I am trying to compile but I am getting an error:
    <pre>
    PROCEDURE procedure_1 AS
    cursor cur_1 is
    select column1 || column2 || column3 || column4 || column5 ||
    column6 || column7 || column8 as concat_column
    from table_1
    for update wait 5;
    type type_table_1 is table of varchar2(100);
    tab_1 type_table_1;
    bulk_error EXCEPTION;
    PRAGMA EXCEPTION_INIT(bulk_error, -24381);
    BEGIN
    open cur_1;
    loop
    fetch cur_1 bulk collect into tab_1 limit 100;
    exit when tab_1.COUNT = 0;
    forall ctr in 1 .. tab_1.COUNT save exceptions
    update table_1
    set column_20 = array_line(tab_1(ctr).concat_column);
    end loop;
    close cur_1;
    EXCEPTION
    when bulk_error then
    for i in 1 .. sql%bulk_exceptions.count loop
    NULL;
    end loop;
    END procedure_1;
    Error(622,21): PLS-00801: internal error [*** ASSERT at file pdw4.c, line 3572; Can't handle Object = -2147476152 in D_S_ED -2147476153.;
    The offending line seems to be the update statement inside the forall loop. I cannot tell why I am getting this error though as everything seems ok to me.
    Please help.
    Thanks

    And what are you trying to do? You are updating column20 in all rows in table_1 over and over. And what is array_line? Type type_table_1 is not a table of objects, so what is tab_1(ctr).concat_column? Without questioning code logic (although I already did :) ), remove that ".concat_column":
    set column_20 = array_line(tab_1(ctr));SY.

  • PLS-00801: internal error

    Does any one one know what this error is?
    LINE/COL ERROR
    68/6 PLS-00801: internal error [*** ASSERT at f
    Cannot coerce between type 49 and type 31;
    USER_TESTXML__ADAM_DDL__P__61118[68, 6]]
    Regards,
    alwark.

    What version of the DB are you using and what were you attempting to do at the time the error occurred...
    There are metalink entries about this error and even this forum has addressed PLS-00801: PLS-00801: internal error [79704] Error
    Greg

  • PLS-00801: internal error [*** ASSERT at file pdw4.c, line  796;

    Does anyone know what causes this error..
    PLS-00801: internal error [*** ASSERT at file pdw4.c, line  796;
    Cannot coerce between type 49 and type 31;
    The statement that caused this error is:
    SELECT t.xml.EXTRACT('/ROOT/ROW/PURPOSE/text()') Result INTO i_Purpose FROM (SELECT XMLTYPE( Xml_String) XML From dual) t;
    My variable defination is:
    Xml_String varchar2(4000):='<ROOT>
    <Row>
    <Purpose>P1</Purpose>
    <SubP>PS1</SubP>
    <Analyte>
    <ACD1>A1</ACD1>
    <ACD2>A2</ACD2>
    <ACD3>A3</ACD3>
    </Analyte>
    <Inum>1625</Inum>
    <Lnum>sd7879</Lnum>
    <SID>VX2561</SID>
    <wrkNum>1234</wrkNum>
    <wrkStat>Comp</wrkStat>
    <wrsd>20-DEC-2006</wrsd>
    <wred>30-MAR-2007</wred>
         <AssayNum>1234</AssayNum>
         <AssayStat>PEND</AssayStat>
         <Instru>5672</Instru>
         <AssRDTS>30-JUN-2007</AssRDTS>
         <AssRDTE>30-JUN-2007</AssRDTE>
         <Dept>234</Dept>
         <UserID>JDOW</UserID>
    </Row>
    </ROOT>';
    i_purpose varchar2(15):=Null;
    All help is appreciated.
    Regards,
    Kumar.

    Try this..
    scott> WITH testxml as
      2  (SELECT XMLTYPE('<ROOT>
      3  <Row>
      4  <Purpose>P1</Purpose>
      5  <SubP>PS1</SubP>
      6  <Analyte>
      7  <ACD1>A1</ACD1>
      8  <ACD2>A2</ACD2>
      9  <ACD3>A3</ACD3>
    10  </Analyte>
    11  <Inum>1625</Inum>
    12  <Lnum>sd7879</Lnum>
    13  <SID>VX2561</SID>
    14  <wrkNum>1234</wrkNum>
    15  <wrkStat>Comp</wrkStat>
    16  <wrsd>20-DEC-2006</wrsd>
    17  <wred>30-MAR-2007</wred>
    18  <AssayNum>1234</AssayNum>
    19  <AssayStat>PEND</AssayStat>
    20  <Instru>5672</Instru>
    21  <AssRDTS>30-JUN-2007</AssRDTS>
    22  <AssRDTE>30-JUN-2007</AssRDTE>
    23  <Dept>234</Dept>
    24  <UserID>JDOW</UserID>
    25  </Row>
    26  </ROOT>') col1 FROM DUAL)
    27  SELECT EXTRACT(COL1, '/ROOT/Row/Purpose/text()') Result
    28  FROM testxml t;
    RESULT
    P1

  • ORA-06553: PLS-123: program too large on import

    Hi,
    I import a dump file from a 9.2.0.4 to an other 9.2.0.4 database.
    On some importing table, I have this error :
    . . importing table           "PS_TL_PAYABLE_HIST"          0 rows imported
    IMP-00017: following statement failed with ORACLE error 6540:
    "DECLARE  SREC DBMS_STATS.STATREC; BEGIN SREC.MINVAL := NULL; SREC.MAXVAL :="
    " NULL; SREC.EAVS := 0; SREC.CHVALS := NULL; SREC.NOVALS := DBMS_STATS.NUMAR"
    "RAY(); SREC.BKVALS := DBMS_STATS.NUMARRAY(); SREC.EPC := 0; DBMS_STATS.SET_"
    "COLUMN_STATS(NULL,'"PS_TL_PAYABLE_HIST"','"TL_QUANTITY"', NULL ,NULL,NULL,0"
    ",0,0,srec,0,0); END;"
    IMP-00003: ORACLE error 6540 encountered
    ORA-06540: PL/SQL: compilation error
    ORA-06553: PLS-123: program too large
    IMP-00017: following statement failed with ORACLE error 6540:
    "DECLARE  SREC DBMS_STATS.STATREC; BEGIN SREC.MINVAL := NULL; SREC.MAXVAL :="
    " NULL; SREC.EAVS := 0; SREC.CHVALS := NULL; SREC.NOVALS := DBMS_STATS.NUMAR"
    "RAY(); SREC.BKVALS := DBMS_STATS.NUMARRAY(); SREC.EPC := 0; DBMS_STATS.SET_"
    "COLUMN_STATS(NULL,'"PS_TL_PAYABLE_HIST"','"BILLABLE_IND"', NULL ,NULL,NULL,"
    "0,0,0,srec,0,0); END;"
    IMP-00003: ORACLE error 6540 encountered
    ORA-06540: PL/SQL: compilation error
    ORA-06553: PLS-123: program too large
    IMP-00017: following statement failed with ORACLE error 6540:
    "DECLARE  SREC DBMS_STATS.STATREC; BEGIN SREC.MINVAL := NULL; SREC.MAXVAL :="
    " NULL; SREC.EAVS := 0; SREC.CHVALS := NULL; SREC.NOVALS := DBMS_STATS.NUMAR"
    "RAY(); SREC.BKVALS := DBMS_STATS.NUMARRAY(); SREC.EPC := 0; DBMS_STATS.SET_"
    "COLUMN_STATS(NULL,'"PS_TL_PAYABLE_HIST"','"OPRID"', NULL ,NULL,NULL,0,0,0,s"
    "rec,0,0); END;"
    IMP-00003: ORACLE error 6540 encountered
    ORA-06540: PL/SQL: compilation error
    ORA-06553: PLS-123: program too large
    IMP-00017: following statement failed with ORACLE error 6540:
    "DECLARE  SREC DBMS_STATS.STATREC; BEGIN SREC.MINVAL := NULL; SREC.MAXVAL :="
    " NULL; SREC.EAVS := 0; SREC.CHVALS := NULL; SREC.NOVALS := DBMS_STATS.NUMAR"
    "RAY(); SREC.BKVALS := DBMS_STATS.NUMARRAY(); SREC.EPC := 0; DBMS_STATS.SET_"
    "COLUMN_STATS(NULL,'"PS_TL_PAYABLE_HIST"','"CLASS_FLD"', NULL ,NULL,NULL,0,0"
    ",0,srec,0,0); END;"
    IMP-00003: ORACLE error 6540 encountered
    ORA-06540: PL/SQL: compilation error
    ORA-06553: PLS-123: program too largeThe import command is simple :
    NLS_LANG=american_america.utf8
    export NLS_LANG
    /etc/mknod /data/ora/P97RPRD/e01/tube p
    uncompress -c /data/ora/P97RPRD/e01/backup.dmp.Z > /data/ora/P97RPRD/e01/tube &
    imp SYSTEM/MANAGER FROMUSER=P97RPPRD TOUSER=P97RPRD FILE=/data/ora/P97RPRD/e01/tube LOG=/data/ora/P97RPRD/adm/dbalog/importP97RPRD.logFrom where does it come ?
    If I well understand, this is the import of statistics, but why this error ?
    Is I can avoid this error if I import with STATISTICS=none ?
    Thanks in advance,
    Nicolas.

    Hi please check this,
    Select * from dba_objects where object_name = 'DBMS_STANDARD';
    The standard package may be invalid.
    reran catproc.sql This caused the dbms_standard package to become valid once again.
    HTH,
    Thomas.

Maybe you are looking for

  • How to send a 303 redirect

    Hi, What I understood about http 303 status is that we have to give an alternate url to the client. So what I did is : response.setStatus(response.SC_SEE_OTHER); response.setHeader("Location", newUrl); Is this the correct way to send a 303 redirect ?

  • Replication Issue

    Hello all, I am checking the replication status of two master instances.Both are showing 209 pending changes from 201:48:55 in DSCC.(Directory control center) The replication tab says "Replication idle".I dont see any errors in the error logs for bot

  • Labview 8.5 image

    Does anyone know if National Instruments has changed the image datatype with version 8.5?  When I open images saved with Labview 8.2 in 8.5, there appears to be a byte misorder (kind of like the wrong endian). Thanks, Chris Chris Reyerson Optical Sys

  • Photos rotate when sync'd to Apple TV

    Has anyone had this problem? When I sync'd my photos (from my Windows hard drive) to Apple TV via iTunes, all pictures that I had rotated to a North-South orientation reverted to East-West. I have no idea how to fix this. Does anyone have any ideas?

  • Form submit - button problem

    Hi, When I clcik on the button, action method is not getting called for some reason .... If I set the immedaite property to true..... it is getting submitted to next page ... Why is this odd behavior... Could some one help me on this ... thanks in ad