Database Administration (MOSC)

MOSC Banner

How to delete duplicate keys from partition table

edited Jan 13, 2011 1:02AM in Database Administration (MOSC) 5 commentsAnswered
 Hi,
we got the error while data transform is happen from Production to Test

ORA-01502: index 'DS_SBT.DS_SBT_PD_SUM_PK' or partition of such index is in unusable state

I checked the table last partition is unusable state.So I tried to rebuild the index partition.but i got the below error.

SQL> alter index DS_SBT.DS_SBT_PD_SUM_PK rebuild partition P_MAX tablespace DS_PK_SBT_SUM;
alter index DS_SBT.DS_SBT_PD_SUM_PK rebuild partition P_MAX tablespace DS_PK_SBT_SUM
*
ERROR at line 1:
ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center