datapatch or preupgrade_fixups.sql script fails with error -:ORA-04063: package body "SYS.DBMS_PREUP" has errors
(Doc ID 2455895.1)
Last updated on APRIL 17, 2023
Applies to:
Oracle Database - Enterprise Edition - Version 12.1.0.2 to 12.2.0.1 [Release 12.1 to 12.2]Information in this document applies to any platform.
Symptoms
During database upgrade, datapatch fails with following error -
Error at line 3985: SP2-0309: SQL*Plus command procedures may only be nested to a depth of 20.
..
Error at line 3798: ORA-04063: package body "SYS.DBMS_PREUP" has errors
Error at line 3799: ORA-06508: PL/SQL: could not find program unit being called: "SYS.DBMS_PREUP"
Error at line 3800: ORA-06512: at line 36
Error at line 3807: ORA-04063: package body "SYS.DBMS_PREUP" has errors
Error at line 3808: ORA-06508: PL/SQL: could not find program unit being called: "SYS.DBMS_PREUP"
..
Error at line 3798: ORA-04063: package body "SYS.DBMS_PREUP" has errors
Error at line 3799: ORA-06508: PL/SQL: could not find program unit being called: "SYS.DBMS_PREUP"
Error at line 3800: ORA-06512: at line 36
Error at line 3807: ORA-04063: package body "SYS.DBMS_PREUP" has errors
Error at line 3808: ORA-06508: PL/SQL: could not find program unit being called: "SYS.DBMS_PREUP"
or
preupgrade_fixups.sql as part of preupgrade fails as below:
SQL> @preupgrade_fixups.sql
DECLARE
*
ERROR at line 1:
ORA-04063: package body "SYS.DBMS_PREUP" has errors
ORA-06512: at line 11
DECLARE
*
ERROR at line 1:
ORA-04063: package body "SYS.DBMS_PREUP" has errors
ORA-06512: at line 11
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |