Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: alter session
Revoke CONNECT and RESOURCE privs as well from MGOGALA. I bet you have
CONNECT still granted to you and CONNECT, by default has ALTER SESSION priv.
So you do need ALTER SESSION for sql_trace and events, not for any other session altering commands.
Arup Nanda
www.proligence.com
> You don't need it for SQL_TRACE
> Here it goes:
>
> SQL> revoke dba from mgogala;
>
> Revoke succeeded.
>
> SQL> connect mgogala_at_hppulsed
> Enter password: ******
> Connected.
> SQL> alter session set events='10046 trace name context forever,level 1';
>
> Session altered.
>
> Mladen Gogala
> Oracle DBA
> Phone:(203) 459-6855
> Email:mgogala_at_oxhp.com
>
>
> -----Original Message-----
> Sent: Tuesday, May 06, 2003 4:08 PM
> To: Multiple recipients of list ORACLE-L
>
>
> It's one of the quarky features of Oracle. Contrary to what it may seem
> logical, ALTER SESSION privilege is not needed for any alter session
> operation except the sql_trace = true and setting events. In your case
SCOTT
> does not need any ALTER SESSION privilege to alter session set nls*, even
> setting optimizer_mode!
>
> HTH.
>
> Arup Nanda
> www.proligence.com
>
> ----- Original Message -----
> To: "Multiple recipients of list ORACLE-L" <ORACLE-L_at_fatcity.com>
> Sent: Tuesday, May 06, 2003 3:28 PM
>
>
> > Hi list
> > I create a user scott
> > and then gave him create session, create table privileges only.
> > Why is he able to do
> > alter session set nls_date_format='dd-mon-yyyy' ;
> > and
> > alter session set nls_language=French;
> > but he is unable to
> > alter session set sql_trace=true ;
> >
> > Is it because nls parameters are client side and sql_trace affects the
> > server side ?
> >
> > --
> > Please see the official ORACLE-L FAQ: http://www.orafaq.net
> > --
> > Author: <bulbultyagi_at_now-india.net.in
> > INET: bulbultyagi_at_now-india.net.in
> >
> > Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> > San Diego, California -- Mailing list and web hosting services
> > ---------------------------------------------------------------------
> > To REMOVE yourself from this mailing list, send an E-Mail message
> > to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> > the message BODY, include a line containing: UNSUB ORACLE-L
> > (or the name of mailing list you want to be removed from). You may
> > also send the HELP command for other information (like subscribing).
> >
> >
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author: Arup Nanda
> INET: orarup_at_hotmail.com
>
> Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> San Diego, California -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author: Gogala, Mladen
> INET: MGogala_at_oxhp.com
>
> Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> San Diego, California -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
>
>
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Arup Nanda INET: orarup_at_hotmail.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Tue May 06 2003 - 16:26:59 CDT