1) Running utlirp.sql (this is going to invalidate most (for me around 80,000 objects) and then recompiles them again) Took a helluva time.. but got it sorted out. in the end.
2) Had to run utlirp.sql when database is in migration mode. (remember I ported the db from 32 bit to 64 bit).
I am sure that this "IS A" solutions as now, I am getting the same error with 32bit version of oracle software. However with 64 bit I am fine. now. before this the error was with 64 bit and 32 bit was clean.
Worked great, I had to restore a 32 bit database on a 64 bit system. After restore/recover operations with RMAN I did the following.
1) startup upgrade;
2) @?/rdbms/admin/utlirp.sql
3) shutdown immediate;
4) startup;
------------Other Scenario-----------------------------------------------------
Received the "ORA-06553: PLS-801: internal error [56319]" error after cloning a db, while trying to drop a user.
SQL> drop user QCSITEADMIN_DB0 cascade;
drop user QCSITEADMIN_DB0 cascade
*
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-06553: PLS-801: internal error [56319]
and it got resolved after executing "utlirp.sql".
---------------------------------------------------My scenario -----------------
SYS @ bsqrac >>conn volume/trace
ERROR:
ORA-06553: PLS-801: internal error [56327]
Error accessing package DBMS_APPLICATION_INFO
Connected.
VOLUME @ bsqrac >>
VOLUME @ bsqrac >>@utlirp.sql
VOLUME @ bsqrac >>WHENEVER SQLERROR EXIT;
VOLUME @ bsqrac >>DOC
DOC>#######################################################################
DOC>#######################################################################
DOC> The following statement will cause an "ORA-01722: invalid number"
DOC> error if there the database was not opened in UPGRADE mode
DOC>
DOC> If you encounter this error, execute "SHUTDOWN", "STARTUP UPGRADE" and
DOC> re-execute utlirp.sql
DOC>#######################################################################
DOC>#######################################################################
DOC>#
VOLUME @ bsqrac >>SELECT TO_NUMBER('MUST_BE_OPEN_UPGRADE') FROM v$instance
2 WHERE status != 'OPEN MIGRATE';
SELECT TO_NUMBER('MUST_BE_OPEN_UPGRADE') FROM v$instance
*
ERROR at line 1:
ORA-00942: table or view does not exist
Disconnected from Oracle Database 11g Release 11.2.0.1.0 - Production
With the Automatic Storage Management option
[oracle@VOL-ORATEST admin]$ s
SQL*Plus: Release 11.2.0.1.0 Production on Mon Jan 24 12:35:48 2011
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Release 11.2.0.1.0 - Production
With the Automatic Storage Management option
SYS @ bsqrac >>shutdown
Database closed.
Database dismounted.
ORACLE instance shut down.
SYS @ bsqrac >>startup upgrade
ORACLE instance started.
Total System Global Area 246910976 bytes
Fixed Size 1335752 bytes
Variable Size 192941624 bytes
Database Buffers 50331648 bytes
Redo Buffers 2301952 bytes
Database mounted.
Database opened.
SYS @ bsqrac >>@utlirp.sql
......................
.........................
............................
PL/SQL procedure successfully completed.
SYS @ bsqrac >>
SYS @ bsqrac >>DOC
DOC>#######################################################################
DOC>#######################################################################
DOC> utlirp.sql completed successfully. All PL/SQL objects in the
DOC> database have been invalidated.
DOC>
DOC> Shut down and restart the database in normal mode and run utlrp.sql to
DOC> recompile invalid objects.
DOC>#######################################################################
DOC>#######################################################################
DOC>#
SYS @ bsqrac >>
SYS @ bsqrac >>shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SYS @ bsqrac >>startup
ORACLE instance started.
Total System Global Area 246910976 bytes
Fixed Size 1335752 bytes
Variable Size 192941624 bytes
Database Buffers 50331648 bytes
Redo Buffers 2301952 bytes
Database mounted.
Database opened.
SYS @ bsqrac >>
SYS @ bsqrac >>connect volumexx/xxxxx
Connected.
VOLUME @ bsqrac >>