Likely that your data in the table violates the constraint.
Export the table, truncate table, add constraint and try importing to it
-watch for violation of constraint during import.

Ciao 'n best of luck.
---
CSW

-----Original Message-----
Sent: Wednesday, April 24, 2002 3:09 PM
To: Multiple recipients of list ORACLE-L


Hallo,

I am trying to run this script,

ALTER TABLE PBK.K1
  ADD CONSTRAINT idx_rollson PRIMARY KEY (BUTIKS_NR)

but gets the erormessage

ORA-02437: cannot validate (PBK.IDX_ROLLSON) - primary key violated

what can I do to solve this? Please help me. Wouldnt it be enough to have
unique values in thefield butiks_nr?

Thanks in advance

Roland











-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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.com
--
Author: Simon Waibale
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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).

Reply via email to