Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: unique constraint violation problem

RE: unique constraint violation problem

From: Goulet, Dick <DGoulet_at_vicr.com>
Date: Mon, 07 Jul 2003 13:29:44 -0700
Message-ID: <F001.005C3B50.20030707121928@fatcity.com>


Anna,

        A unique constraint is a unique index and vice-versa which will explain your error message. Also, no there will be no duplicate records because you defined the index as unique. I would doubt your statement about the record being inserted although the application may have updated the other fields in the record in response to the error. Depends on who wrote the application and what they did for error handling.

Dick Goulet
Senior Oracle DBA
Oracle Certified 8i DBA

-----Original Message-----
Sent: Monday, July 07, 2003 3:44 PM
To: Multiple recipients of list ORACLE-L

Hi,

I created a unique index on a table called REGISTRATION_K, but no unique constraint. Last week when the application tried to insert a record into the table, we got following error in the log file:

Oracle::st execute failed: ORA-00001: unique constraint (REGISTRATION_K) violated

However, the record was inserted into the table successfully. There are no duplicate records in the table. Could anyone explain why?

Any input will be highly appreciated. Thanks in advance.

Anna



Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail

--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Anna Li
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Goulet, Dick
  INET: [EMAIL PROTECTED]
Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Mon Jul 07 2003 - 15:29:44 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US