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: Question: Use Trigger to Prevent Deletes with no Where Clause?

Re: Question: Use Trigger to Prevent Deletes with no Where Clause?

From: GreyBeard <Fuzzy.GreyBeard_at_gmail.com>
Date: Thu, 13 Jan 2005 19:46:13 GMT
Message-Id: <pan.2005.01.13.19.45.04.8857@gmail.com>


On Thu, 13 Jan 2005 11:24:28 -0800, Jesse wrote:

> Hi all. We recently discovered a bug in one of our applications (it's
> in Visual Basic; we inherited it) that under an obscure set of
> conditions executes a "DELETE FROM [table]" without a where clause. We
> can fix the app, but getting it certified for use takes time; however,
> I can make various administrative changes to the database however
> without approval.
>
> My question is, can I use a "before" trigger to detect the mass "DELETE
> FROM" statement and prevent it from executing?
>

Version? Edition? other useful information besides 'help!'

I'm thinking a trick using VPD's rewrite capability below 10g, or the 10g rewrite capability might save you temporaarily. Haven't thought it through since I don't knpw what might be relevant.

FGB Received on Thu Jan 13 2005 - 13:46:13 CST

Original text of this message

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