My Oracle Support Banner

Cannot Drop Old APEX 4.x Schema Due to Error - ORA-01502: Index 'MDSYS.UNIQUE_CLASS_CONSTRAINT' (Doc ID 2722826.1)

Last updated on FEBRUARY 18, 2021

Applies to:

Oracle Application Express (APEX) - Version 19.1 and later
Information in this document applies to any platform.


The current APEX version 19.1 is fully functional and backed up. 

Unable to clean up prior APEX version 4.0 schema.
Getting the following errors:

Error starting at line : 15 in command -
Error report -
ORA-00604: error occurred at recursive SQL level 1
ORA-01502: index 'MDSYS.UNIQUE_CLASS_CONSTRAINT' or partition of such index is in unusable state
ORA-06512: at line 10
00604. 00000 - "error occurred at recursive SQL level %s"
*Cause: An error occurred while processing a recursive SQL statement
  (a statement applying to internal dictionary tables).
*Action: If the situation described in the next error on the stack
  can be corrected, do so; otherwise contact Oracle Support.


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.