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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: FK Constraints

RE: FK Constraints

From: Holman, Rodney <rodney.holman_at_lodgenet.com>
Date: Mon, 19 Mar 2001 13:18:37 -0800
Message-ID: <F001.002D0C80.20010319105027@fatcity.com>

You are running into a primary point of contention between many DBA's and developers. Dev's don't like the use of PK/FK relationships within the database because it is not always portable across multiple RDBMS's. By making the app handle all the referential integrity issues they can say "Yes, our system runs on Oracle, Sybase, Informix, MS SQL Server, or even Access ...." All they need the RDBMS to do is store tables and indexes then. Many third party apps use this approach. The problem is when their code is correct and perfect, they are right. You don't NEED FK's. However I have yet to run across any super human developer that codes everything perfectly. What happens... you get duplicate key values and child tables filled with orphans because somewhere in the code a restriction was missed. By assigning these at the DB level you can forget about having to maintain it in the app. The RDBMS does it for you. Push for RDBMS level control of this. It will save you many headaches later over data corruption.

Rodd Holman

-----Original Message-----
Sent: Monday, March 19, 2001 12:05 PM
To: Multiple recipients of list ORACLE-L

Hi all:

We have a situation where are no relationships are defined at the database level. i.e no foreign keys constraints have established at the Database. The application is still at the Development Stage.

Everything is controlled at the application level.

I as the DBA appose this design for Data security and also cannot reverse engineer from the tables into Designer.

Can you please share you pros / Cons.

Thanks



Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: ramani akhil
  INET: srinirmala_at_yahoo.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).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Holman, Rodney
  INET: rodney.holman_at_lodgenet.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). Received on Mon Mar 19 2001 - 15:18:37 CST

Original text of this message

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