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 stop user from altering schema

Re: how to stop user from altering schema

From: DA Morgan <damorgan_at_psoug.org>
Date: Fri, 10 Jun 2005 23:34:44 -0700
Message-ID: <1118471694.803004@yasure>


nitin_kaul_at_rediffmail.com wrote:
> hi all
>
> I have a user on prod db..which has got no create privs...
>
> But the user can alter the objects in its own schema.
>
> Is there any way by which i can stop it.
>
> regards
>

CREATE OR REPLACE TRIGGER no_alter
BEFORE ALTER
ON SCHEMA DECLARE BEGIN
   RAISE_APPLICATION_ERROR(-20998, 'You Are Not Allowed To Alter This Schema');
END no_alter;
/

-- 
Daniel A. Morgan
http://www.psoug.org
damorgan_at_x.washington.edu
(replace x with u to respond)
Received on Sat Jun 11 2005 - 01:34:44 CDT

Original text of this message

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