Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: CONSTRAINT ENABLE?
If the db is Oracle 8, you could use the alter table tablename enforce constraint constraintname. This command will enforce the constraint for all new data inserted and will not check data currently in the table. But I would still want to identify the rows violating the constraint and deal with them. You could have a bad app running out there.
Michele
-----Original Message-----
Sent: Friday, January 11, 2002 10:10 AM
To: Multiple recipients of list 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
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 - 12:13:31 CST
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message