Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Primary & Foreign key constraints
Rufus:
Whilst I agree that it's a disadvantage not having the RI enforcement at the database, I have worked on quite a few systems that did not. I wouldn't go so far as to call the designer "an idiot", because most, if not all, were legacy systems that had been designed before many databases even *had* RI syntax. They all "enforce" RI by "do-it-yourself" FK/PK lookups (using indices, of course.) It would be a waste of time at this point to put RI on the database(s) because unless the code was substantially modified to remove all the lookups, you would end up doing double the amount of work necessary. Luckily, there are little or no ad-hoc mods (or unrestricted accesses) to these databases. However, I think many programmers like to do the checking "for themselves" probably because they don't trust "the database" or "the DBAs" to do it for them!
Colin.
-----Original Message-----
From: Abdul Aleem [mailto:abchaudhary-ho_at_beaconhouse.edu.pk]
Sent: Tuesday, May 23, 2000 12:44 AM
To: Multiple recipients of list ORACLE-L
Subject: RE: Primary & Foreign key constraints
To add to what Deepak has said,
There are no merits to this practice. I would say that the person who designs a database without FK and PK is highly unprofessional (an idiot) and has absolutely no idea of RDBMS design. This can lead to current and future problems.
I would suggest to enforce RI constraints at database level at your earliest.
I would appreciate if you could tell what application is that
Hope this helps
Regards,
Aleem
-----Original Message----- From: Thapliyal, Deepak [mailto:DThapliyal_at_ea.com] Sent: 23 May, 2000 11:16 AM To: Multiple recipients of list ORACLE-L Subject: RE: Primary & Foreign key constraints Rufus, if you try to enforce RI at the app level .. u are looking in the face of increased IO hits as you try to manually force RI rules.. may also lead to funny situations (mutating/constraining) as you start playing with triggers trying to accomplish the same. thats all my brain cells allow me to write at this point :-(( deepAk -----Original Message----- Sent: Monday, May 22, 2000 10:44 PM To: Multiple recipients of list ORACLE-L Hi Guru's, Will any one tell, if there is any specific advantage if we don't have primary & foreign key constraints at database level. In one of our major applications I have seen, they do not have primary & foreign key constraints defined at database level, but handled at the front end level. Can anyone tell what could be the merits if any ? TIA, Rufus. -- Author: Rufus Chinnam INET: rufus.chinnam_at_emirates.com 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: 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). -- Author: Thapliyal, Deepak INET: DThapliyal_at_ea.com 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: 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 (likesubscribing).
-- Author: Abdul Aleem INET: abchaudhary-ho_at_beaconhouse.edu.pk 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: 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 mayReceived on Tue May 23 2000 - 12:19:05 CDT
![]() |
![]() |