My Oracle Support Banner

Noncdb_to_pdb.sql fail with "ORA-20000: Unable to analyze TABLE "SYS"."UTL_RECOMP_COMPILED", insufficient privileges or does not exist" (Doc ID 2621924.1)

Last updated on APRIL 17, 2023

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.2 and later
Information in this document applies to any platform.

Symptoms

On : 12.1.0.2 version,

When following below steps

"https://docs.oracle.com/en/database/oracle/oracle-database/19/multi/cloning-a-pdb.html#GUID-0284ED92-A3F4-4D10-A8C7-B47FABA5A774"

7.4 Cloning a Non-CDB


noncdb_to_pdb.sql stopped in the step "utl_recomp.recomp_parallel"

SQL> DECLARE
  2 threads pls_integer := &&1;
  3 BEGIN
  4 utl_recomp.recomp_parallel(threads);
  5 END;
  6 /
DECLARE
*
ERROR at line 1:
ORA-20000: Unable to analyze TABLE "SYS"."UTL_RECOMP_COMPILED", insufficient
privileges or does not exist
ORA-06512: at "SYS.UTL_RECOMP", line 875
ORA-06512: at line 4

try utlrp.sql also fails with same error.
SQL> @?/rdbms/admin/utlrp.sql 

DOC> 2. Query showing UTL_RECOMP jobs that are running
DOC> SELECT job_name FROM dba_scheduler_running_jobs
DOC> WHERE job_name like 'UTL_RECOMP_SECONDARY_%';
DOC>#
DECLARE
*
ERROR at line 1:
ORA-20000: Unable to analyze TABLE "SYS"."UTL_RECOMP_COMPILED", insufficient
privileges or does not exist
ORA-06512: at "SYS.UTL_RECOMP", line 875
ORA-06512: at line 4

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


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.