ORA-00001 unique constraint violated whe using MERGE statement, a bug?
I’m encountering an ORA-00001 unique constraint violated error with a MERGE statement. This statement is implemented in a procedure that had already been executed successfully a dozen times before. Nothing has been changed in the procedure’s code and I can’t figure out why this is happening as there are no duplicates in the source table.
I can reproduce the problem as of now, as the source table’s data is still available.
The MERGE statement is as follows:
MERGE INTO ENG_VENTES_POT_FACT_OP fact_op
USING (SELECT rc_id, gm2, fact_op FROM ENG_VENTES_POT_FACT_OP_TMP) tmp