Tim Gorman has appropriate script: http://www.evdbt.com/tracetrg.sql I think your problem is with the number of quotes. Igor Neyman, OCP DBA ineyman@xxxxxxxxxxxxxx -----Original Message----- From: oracle-l-bounce@xxxxxxxxxxxxx [mailto:oracle-l-bounce@xxxxxxxxxxxxx] On Behalf Of Ken Payton Sent: Thursday, May 13, 2004 8:56 AM To: oracle-l@xxxxxxxxxxxxx Subject: RE: trace via logon trigger yes, it works outside the trigger. I believe it's my pl/sql, not my strongest point. I am getting errors = when building my trigger. create or replace trigger kpayton.logon_trigger after logon on kpayton.schema begin execute immediate 'alter session set events ''10046 trace name context = forever, level 4'' '; exeptions when others then null; end; / Errors for TRIGGER KPAYTON.LOGON_TRIGGER: 2/48 PLS-00103: Encountered the symbol "10046" when expecting one of the following: . ( * @ % & =3D - + ; < / > at in is mod not rem return returning <an exponent (**)> <> or !=3D or ~=3D >=3D <=3D <> = and or like between into using || bulk -----Original Message----- From: oracle-l-bounce@xxxxxxxxxxxxx [mailto:oracle-l-bounce@xxxxxxxxxxxxx]On Behalf Of Stephen.Lee@xxxxxxxx Sent: Thursday, May 13, 2004 9:49 AM To: oracle-l@xxxxxxxxxxxxx Subject: RE: trace via logon trigger > -----Original Message----- > does not start the session tracing. >=20 > execute immediate 'alter session set events Does the user have alter session privilege? ---------------------------------------------------------------- Please see the official ORACLE-L FAQ: http://www.orafaq.com ---------------------------------------------------------------- To unsubscribe send email to: oracle-l-request@xxxxxxxxxxxxx put 'unsubscribe' in the subject line. -- Archives are at //www.freelists.org/archives/oracle-l/ FAQ is at //www.freelists.org/help/fom-serve/cache/1.html ----------------------------------------------------------------- ---------------------------------------------------------------- Please see the official ORACLE-L FAQ: http://www.orafaq.com ---------------------------------------------------------------- To unsubscribe send email to: oracle-l-request@xxxxxxxxxxxxx put 'unsubscribe' in the subject line. -- Archives are at //www.freelists.org/archives/oracle-l/ FAQ is at //www.freelists.org/help/fom-serve/cache/1.html ----------------------------------------------------------------- ---------------------------------------------------------------- Please see the official ORACLE-L FAQ: http://www.orafaq.com ---------------------------------------------------------------- To unsubscribe send email to: oracle-l-request@xxxxxxxxxxxxx put 'unsubscribe' in the subject line. -- Archives are at //www.freelists.org/archives/oracle-l/ FAQ is at //www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------