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: Check constraints, the impossible dream?

Re: Check constraints, the impossible dream?

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Fri, 22 Mar 2002 22:43:06 -0000
Message-ID: <1016836921.25619.0.nnrp-13.9e984b29@news.demon.co.uk>

I think it's the sort of strategy I would agree with.

However, one option that I have suggested a couple of times as a variant is to have the client load the constraints from the database then apply them locally. The code framework is non-trivial, and you have to be very strict in enforcing coding conventions, but you guarantee that the database and the client have exactly matching checks.

--
Jonathan Lewis
http://www.jlcomp.demon.co.uk

Next Seminar - UK, April 3rd - 5th
http://www.jlcomp.demon.co.uk/seminar.html

Host to The Co-Operative Oracle Users' FAQ
http://www.jlcomp.demon.co.uk/faq/ind_faq.html

Author of:
Practical Oracle 8i: Building Efficient Databases


Paul Brewer wrote in message
<3c9ba9da_3_at_mk-nntp-1.news.uk.worldonline.com>...

>
>My colleagues and I had a dilemma over this when we went over to Oracle in
>1995.
>Our conclusion was that under most circumstances, the optimum solution for
>an OLTP app is to validate twice over; catch it in the client with a
>meaningful message for the user, *and* have the db as a sort of
>wicketkeeper.
>Someone wrote 'keep the application honest'; as a DBA that seems a
>reasonable approach.
>What do you think?
>
>Paul
>
Received on Fri Mar 22 2002 - 16:43:06 CST

Original text of this message

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