Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: CONSTRAINT ENABLE?
Use the 'exceptions into' clause to find the rows causing the problem.
Query the exception rows to determine which keys are missing in the parent table.
Then either delete those rows from the child table, or add rows to the parent table.
Jared
"Seema Singh" <oracledbam_at_ho To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> tmail.com> cc: Sent by: Subject: CONSTRAINT ENABLE? root_at_fatcity.c om 01/11/02 07:10 AM Please respond to ORACLE-L
Hi
I found some of constraint in database is disable and its type is R.
When I try to enable by
alter table tablename enable constraint constraintname;
It showing following error
"ERROR at line 1:
ORA-02298: cannot validate (AWAY.GT_TRACK_CAT_REF_SRCH_TRACK) - parent keys
not found"
How to coenable these constraints?
Thanks
-seema
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Seema Singh
INET: oracledbam_at_hotmail.com
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: ListGuru_at_fatcity.com (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).
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
INET: Jared.Still_at_radisys.com
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: ListGuru_at_fatcity.com (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 Fri Jan 11 2002 - 11:32:17 CST
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message