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

Home -> Community -> Usenet -> c.d.o.server -> Re: Integrity constraint violated

Re: Integrity constraint violated

From: <mamin_at_o2.pl>
Date: 8 Aug 2006 05:01:28 -0700
Message-ID: <1155038488.494618.281050@b28g2000cwb.googlegroups.com>


> Not very likely.
> Oracle doesn't generate constraints automatically.
> If it did generate constraints, it is because you or someone else, is
> using Designer, and instructed it do to so.
> It looks like either you or someone else has made a design error, and
> you need to rectify this. Drop the foreign key (alter table drop
> constraint) and set up the correct one.
>
> --
> Sybrand Bakker
> Senior Oracle DBA

Well, I'm sure that it was generated automatically.The only one tool I'm using is TOAD.Maybe this tool can do such things either. The correct script value for this constraint should be ALTER TABLE ZAMOWIENIA_POZYCJE ADD (
  CONSTRAINT ZAM_POZ_STAWKA_VAT_FK FOREIGN KEY (STAWKA_VAT_ID)     REFERENCES STAWKI_VAT (ID));
So the name of the referenced table is incorrect. Thanks for help.

Best regards,
Marcin Received on Tue Aug 08 2006 - 07:01:28 CDT

Original text of this message

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