/
PRIMARY/UNIQUE KEY constraint violation conflict on dbvrep table

PRIMARY/UNIQUE KEY constraint violation conflict on dbvrep table

Problem Description

The below article explains how to handle PRIMART/UNIQUE key conflicts in repository(DBVREP Schema) tables .

Solution

Conflict PRIMARY KEY constraint voilation of 'DBRSPK_OBJ$'. 

Cannot insert duplicate key in object DBRSOBJ$'.

Resolve the conflict as follows:

  1. Pause/stop APPLY

  2. Drop primary key 

  3. Create index on DBRSCOL$ using columns OBJ_, INTCOL_ and VALID_TO_SCN

SQL> create index DBRSIDX_COL$ on DBRSCOL$ (OBJ_, INTCOL_, VALID_TO_SCN);

4. Start/resume APPLY

Conflict unique key constraint violation of a dbvisit internal table

Example

Pause/stop APPLY alter table DBRSCOL$ drop primary key; create index DBRSIDX_COL$ on DBRSCOL$ (OBJ_, INTCOL_, VALID_TO_SCN); Start/resume APPLY

 

Related content

Uncommitted transactions
Uncommitted transactions
More like this
Uncommitted transactions
Uncommitted transactions
More like this
Uncommitted transactions
Uncommitted transactions
More like this
Conflict Does Not Display the Full Error Message
Conflict Does Not Display the Full Error Message
More like this
Conflict on Commit Statement
Conflict on Commit Statement
More like this
Global Default Conflict Handler
Global Default Conflict Handler
More like this