Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Enabling the SQL Trace from a logon trigger

Re: Enabling the SQL Trace from a logon trigger

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Wed, 8 Sep 1999 16:01:10 +0100
Message-ID: <936803267.22703.0.nnrp-10.9e984b29@news.demon.co.uk>

Does your user have the 'alter session' privilege ?

    grant alter session to myuser;

--

Jonathan Lewis
Yet another Oracle-related web site: http://www.jlcomp.demon.co.uk

lolocyrano_at_my-deja.com wrote in message <7r5ri9$gag$1_at_nnrp1.deja.com>...
>I create the following trigger in the schema MyUser under the user
>MyUser:
>
>create trigger tr_logon after logon on schema
>begin
> execute immediate 'alter session set sql_trace true';
>end;
>
>It compiles.
>Then, when I logon using MyUser, I get the following message:
>
>ORA-00604: error occurred at recursive SQL level 1
>ORA-01031: insufficient privileges
>ORA-06512: at line 2
Received on Wed Sep 08 1999 - 10:01:10 CDT

Original text of this message

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