My Oracle Support Banner

How to Create Unique/Primary Key Constraints with NOVALIDATE Clause (Doc ID 215854.1)

Last updated on NOVEMBER 17, 2023

Applies to:

Oracle Database - Enterprise Edition - Version and later
Oracle Database Cloud Schema Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Information in this document applies to any platform.


This note provides information on avoiding the ORA-2299 cannot validate <> - duplicate keys found" error while adding a unique or primary key constraint with the NOVALIDATE clause in a table with duplicate keys.


Database administrators.


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.