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

Home -> Community -> Usenet -> c.d.o.server -> Re: How to disable foreign key constraints in a stored procedure?

Re: How to disable foreign key constraints in a stored procedure?

From: Mladen Gogala <gogala_at_sbcglobal.net>
Date: Mon, 20 Mar 2006 04:15:56 GMT
Message-Id: <pan.2006.03.20.04.15.56.281508@sbcglobal.net>


On Fri, 17 Mar 2006 17:40:58 +0000, Jeremy wrote:

> Suppose you want to bulk load data into database - the data is coming
> from a source where its integrity is guaranteed (because of the
> constaints there) and you want the quickest load time (perhaps this is a
> data migration exercise?) - is it not reasonable to want to temporarily
> disable constraints? Assuming that this is dedicated access for the
> duration?

In the data warehouse situation, it is unreasonable to even have the constraints in place. You should drop them and not disable them.

-- 
http://www.mgogala.com
Received on Sun Mar 19 2006 - 22:15:56 CST

Original text of this message

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