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: Lock one row of a table from all users

Re: Lock one row of a table from all users

From: Connor McDonald <connor_mcdonald_at_yahoo.com>
Date: Sun, 16 May 2004 16:22:23 +0800
Message-ID: <40A724BF.684@yahoo.com>


George Mansoor wrote:
>
> Is there a way to lock one row of data from all users, permanently?
>
> Thanks
>
> George

create or replace
trigger TRG before update or delete on T begin
  if :old.primary_key = ... then

     raise_application_error(-20000,'NO NO NO NO');   end if;
end;

-- 
Connor McDonald
Co-author: "Mastering Oracle PL/SQL - Practical Solutions"
ISBN: 1590592174

web: http://www.oracledba.co.uk
web: http://www.oaktable.net
email: connor_mcdonald_at_yahoo.com

Coming Soon! "Oracle Insight - Tales of the OakTable"

"GIVE a man a fish and he will eat for a day. But TEACH him how to fish,
and...he will sit in a boat and drink beer all day"

------------------------------------------------------------
Received on Sun May 16 2004 - 03:22:23 CDT

Original text of this message

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