Getting ORA-21700 while Compiling or Dropping Packages in 12c (Doc ID 2110386.1)

Last updated on JULY 20, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.1 to 12.1.0.1 [Release 12.1]
Information in this document applies to any platform.
***Checked for relevance on 21-Jul-2017***

Symptoms

After upgrade to 12c, below error might be thrown while trying to compile packages.
This will happen even if there is no reference to Oracle Types in source code.

For example :
SQL> alter package FRS1202R2.CLPKS_CLDCMTVM_MAIN compile;
alter package FRS1202R2.CLPKS_CLDCMTVM_MAIN compile
*
ERROR at line 1:
ORA-21700: object does not exist or is marked for delete

Drop of package or user also fails.

For example :
SQL> drop package CLPKS_CLDCMTVM_MAIN ;
drop package CLPKS_CLDCMTVM_MAIN
*
ERROR at line 1:
ORA-21700: object does not exist or is marked for delete

SQL> drop user FRS1202R2 cascade;
drop user FRS1202R2 cascade
*
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-21700: object does not exist or is marked for delete

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms