My Oracle Support Banner

"ORA-21700: Object Does Not Exist Or Is Marked For Delete" After Upgrade To 12.2 for Mod_plsql Application (Doc ID 2566474.1)

Last updated on NOVEMBER 11, 2022

Applies to:

Oracle HTTP Server - Version and later
Oracle REST Data Services - Version 17.4 and later
Information in this document applies to any platform.


When have a working mod_plsql application. After upgrading to 12.2  one critical piece of code is getting the following error:

Failed to execute target procedure ORA-21700: object does not exist or is marked for delete
ORA-06512: at "XXXXXXX.YYYYYYYYY", line 46
ORA-06512: at line 33

The same query runs successfully in SQLPlus against the same database.

This same error also occurs when using Oracle REST Data Services as the PL/SQL gateway for the application.


 Upgraded the database.


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

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