My Oracle Support Banner

Error 'ORA-02429: Cannot drop index used for enforcement of unique/primary key' While Upgrading the P6 Database (Doc ID 2309960.1)

Last updated on FEBRUARY 25, 2019

Applies to:

Primavera P6 Enterprise Project Portfolio Management - Version and later
Primavera P6 Professional Project Management - Version and later
Information in this document applies to any platform.


When attempting to upgrade the P6 database using the dbsetup.bat (.sh) tool, the following error occurs and the upgrade fails.

Error in Run SQL Script ORPM_p835.sql: DatabaseToolException (ORA-02429: cannot drop index used for enforcement of unique/primary key)

In addition, the following error is logged in the DatabaseSetup.log file for the dbsetup process:

[ERROR] ORA-02429: cannot drop index used for enforcement of unique/primary key

[WARN] [USER] Could not complete because the job "Run SQL Script ORPM_p835.sql" failed.


The issue can be reproduced at will with the following steps:

  1. Launch dbsetup.bat / .sh.
  2. Enter the database connection information and begin the upgrade process.
  3. The upgrade process fails with the reported error.


To view full details, 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 a vibrant support community of peers and Oracle experts.