cancel
Showing results for 
Search instead for 
Did you mean: 

SQL-error "1452-ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys

Former Member
0 Kudos

Hi All,

i created primary index to one custom table moving from development system to quality system it throw-ed error. Just given below error log. later deleted that index from table level again moved new TR(dev) to quality system same error happened again. if i moved any new development TR from development system to quality system same error is throwing in quality system. Please give me some suggestion.  Recently our oracle DB is upgraded to 10G.

This is error throwing every time :-

Error log:

2WETP000 12:20:54: Retcode 1: error in DDL statement for "ZDELL_STAT_FILE               " - repeat

2EETP345 12:21:06: Retcode 1: SQL-error "1452-ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys

2EETP345  found" in DDL statement for "ZDELL_STAT_FILE               "

2 ETP399 --------------- DB-ROLLBACK() ---------------

2EETP334 12:21:06: error in DDL, nametab for "ZDELL_STAT_FILE" not activated






-------------------------------------------------------



Please Provide any solution for this issue.



Thanks,

Anbusundaram A


Accepted Solutions (0)

Answers (1)

Answers (1)

former_member206552
Active Contributor
0 Kudos

Hi Anbusundaram,

Please have a look at the following note

23237 - duplicate keys, duplicate rows, duplicate records

    4. A 'create index' or enabling a primary key constraint fails with 'ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found' or 'ORA-02299: cannot add or enable constraint failed - duplicate keys found'

Best Regards

Marius