Database Upgrade Failed Due to ORA-04045: errors during recompilation/revalidation of SYSTEM.DDL_TRIGGER
(Doc ID 2423932.1)
Last updated on JULY 13, 2021
Applies to:
Oracle Database - Enterprise Edition - Version 11.2.0.0 to 19.11.0.0.0 [Release 11.2 to 19]Oracle Database Cloud Schema Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.
Symptoms
Oracle Database Upgrade Failed with below Error :-
Symptoms 1:
Oracle Server
ORA-04045: errors during recompilation/revalidation of SYSTEM.LOG_AND_BLOCK_DDL_TRIGGER
ORA-01031: insufficient privileges
ORA-06512: at “SYS.DBMS_UTILITY”,line 1283
ORA-06512: at line 20
SYSTEM.LOG_AND_BLOCK_DDL_TRIGGER ORA-01031: insufficient privileges
ORA-06512 : at “SYS.DBMS_UTILITY”, line 1283
ORA-06512: at line 20
ORA-01031: insufficient privileges ORA-06512: at “SYS.DBMS_UTILITY”, line 1283
ORA-06512: at line 20
ORA-06512: at “SYS.DBMS_UTILITY”, line 1283 ORA-06512: at line 20
ORA-06512: at line 20
SQL> @<ORACLE_BASE>/cfgtoollogs/<DBNAME>/preupgrade/postupgrade_fixups.sql
Session altered.
PL/SQL procedure successfully completed.
DECLARE
*
ERROR at line 1:
ORA-04045: errors during recompilation/revalidation of ORACLE.IBTK_DB_LINK
ORA-01031: insufficient privileges
ORA-06512: at line 5
PL/SQL procedure successfully completed.
CREATE OR REPLACE PACKAGE dbms_registry_extended AS
*
ERROR at line 1:
ORA-04045: errors during recompilation/revalidation of ORACLE.IBTK_DB_LINK
ORA-01031: insufficient privileges
"
Cause :Issue due to missing privileges for oracle user in the database verified by below query
select
lpad(' ', 2*level) || granted_role "User, his roles and privileges"
from
(
select null grantee, username granted_role from dba_users
where username like upper('ORACLE')
union
select grantee, granted_role
from dba_role_privs
union
select grantee, privilege
from dba_sys_privs
)
start with grantee is null
connect by grantee = prior granted_role;
Changes
Database Upgrade from 11.2.0.4 to 19.11.0.0.0
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 |
Changes |
Cause |
Solution |