pdb_to_apppdb.sql Fails With "ORA-02266: unique/primary keys in table referenced by enabled foreign keys"

(Doc ID 2325493.1)

Last updated on NOVEMBER 13, 2017

Applies to:

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

Symptoms

During the creation of Application Seed PDB process, the pdb_to_apppdb.sql script fails with the following error:
 
ERROR at line 1:
ORA-02266: unique/primary keys in table referenced by enabled foreign keys
ORA-06512: at line 11
ORA-06512: at line 11
Disconnected from Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production

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