Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: trace via logon trigger
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_at_perceptron.com
-----Original Message-----
From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Ken Payton
Sent: Thursday, May 13, 2004 8:56 AM
To: oracle-l_at_freelists.org
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_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org]On Behalf Of Stephen.Lee_at_DTAG.Com
Sent: Thursday, May 13, 2004 9:49 AM
To: oracle-l_at_freelists.org
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?
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://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_at_freelists.org put 'unsubscribe' in the subject line. -- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://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_at_freelists.org put 'unsubscribe' in the subject line. -- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Thu May 13 2004 - 09:21:46 CDT
![]() |
![]() |