Oracle FAQ Your Portal to the Oracle Knowledge Grid

Home -> Community -> Usenet -> c.d.o.misc -> Re: not using foreign keys?

Re: not using foreign keys?

From: joel garry <>
Date: Wed, 06 Jun 2007 16:11:10 -0700
Message-ID: <>

On Jun 6, 2:55 pm, Walt <> wrote:
> DA Morgan wrote:
> > Brian Peasland wrote:
> >> A worse approach would be to let the application handle the
> >> referential integrity. But don't get me started on that....
> > What we somehow need to educate these front-end developers about is that
> > front-ends are technically incapable of enforcing referential integrity.
> > They give the appearance of doing so but actually do not and can not.
> > No front-end designable is capable of keeping someone accessing the
> > data with any other tool from destroying it be that batch loads with
> > SQL*Loader, DBAs with SQL*Plus, or a host of tools that use ODBC or JDBC.
> Well said.
> I think in this case we're looking at a data designer who is *planning*
> on wanking the data with one of those tools. Iron clad data integrity
> rules make for a "closed system" that you can't bend to your whim using
> sql*plus or your chainsaw of choice.
> What's needed here is a DBA who understands the value of data, and also
> understands that he shouldn't be allowed to break the rules of data
> integrity any more than the lowly applications programmers.
> //Walt

Playing devil's advocate for a moment, I see that there is some relatively low level of rule where it becomes simply beyond the capabilities of the database to constrain. So, wouldn't there be some design value to not having two completely different constraint mechanisms (one in the database that needs to be undone at times anyways, and the one that can handle more complex rules)?

(Lest anyone misunderstand, I'm with the advocates of "as much in the db as possible." However, not 5 minutes ago I was working on some ETL stuff that requires the same data to be viewed with both historical and current integrity constraints. Yes, it is wanked with sql*loader.)


-- is bogus.
Torture that data until it gives you what you want!  Bwahahaha!
Received on Wed Jun 06 2007 - 18:11:10 CDT

Original text of this message