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 can i lock an user from a package?

Re: How can i lock an user from a package?

From: Dave <x_at_x.com>
Date: Tue, 30 Nov 2004 20:18:02 GMT
Message-ID: <_z4rd.26856$up1.5727@text.news.blueyonder.co.uk>

"Alvaro G?lvez" <bakanon_at_yahoo.com> wrote in message news:dce856b.0411301159.7bddae42_at_posting.google.com...
> Hi
> I need to lock an oracle user from inside a package, so i can't use
> ALTER instruction... If i do
>
> ALTER USER username ACCOUNT LOCK;
>
> it throws the following:
>
> PLS-00103: Encountered the symbol "ALTER" when expecting one of the
> following:
>
> begin declare exit for goto if loop mod null pragma raise
> return select update while

execute immediate 'alter user username account lock';

its not sql so it cant run it so must wrap it in execute immediate Received on Tue Nov 30 2004 - 14:18:02 CST

Original text of this message

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