Recompiling Invalid Objects on a PDB Fails with ORA-65040: operation not allowed from within a pluggable database

(Doc ID 2350934.1)

Last updated on JANUARY 19, 2018

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.1 to 12.2.0.1 [Release 12.1 to 12.2]
Oracle Spatial and Graph - Version 12.1.0.2 to 12.1.0.2 [Release 12.1]
Information in this document applies to any platform.

Symptoms

Recompiling invalid objects on a PDB fails with the following error:

ORA-65040: operation not allowed from within a pluggable database

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