DDL Generation Failed with ORA-65047: Object SYS.KUPUTIL is invalid Mustafa, 2025-06-19 Hello everyone, recently I copied a PDB into another CDB and after all the actions are done, developers got error during ddl generation: ORA-65047: Object SYS.KUPUTIL is invalid or compiled with errors in root. ORA-06508: PL/SQL: could not find program unit being called: "SYS.KUPUTIL" ORA-06512: at "SYS.KUPU$UTILITIES_INT", line 1730 ORA-06512: at "SYS.DBMS_METADATA", line 1216 ORA-06512: at "SYS.DBMS_METADATA", line 8546 ORA-06512: at line 1 123456 ORA-65047: Object SYS.KUPUTIL is invalid or compiled with errors in root.ORA-06508: PL/SQL: could not find program unit being called: "SYS.KUPUTIL"ORA-06512: at "SYS.KUPU$UTILITIES_INT", line 1730ORA-06512: at "SYS.DBMS_METADATA", line 1216ORA-06512: at "SYS.DBMS_METADATA", line 8546ORA-06512: at line 1 This is basically because and invalid synonym “KUPUTIL”. to overcome the issue, I recreate the synonym and compile invalid objects one by one. it must be done with SYS user: show user SYS Alter session set "_oracle_script"=true; CREATE OR REPLACE NONEDITIONABLE SYNONYM "SYS"."KUPUTIL" FOR "SYS"."KUPU$UTILITIES"; alter PACKAGE KUPU$UTILITIES_INT compile; alter PACKAGE KUPU$UTILITIES_INT compile BODY; alter PACKAGE KUPU$UTILITIES compile; alter PACKAGE KUPU$UTILITIES compile body; alter package KUPW$WORKER compile body; 1234567891011 show userSYS Alter session set "_oracle_script"=true;CREATE OR REPLACE NONEDITIONABLE SYNONYM "SYS"."KUPUTIL" FOR "SYS"."KUPU$UTILITIES"; alter PACKAGE KUPU$UTILITIES_INT compile;alter PACKAGE KUPU$UTILITIES_INT compile BODY;alter PACKAGE KUPU$UTILITIES compile;alter PACKAGE KUPU$UTILITIES compile body;alter package KUPW$WORKER compile body; after that we are able to generate DDLs. have a nice day. 19c Administration 19cddlKUPUTIL