Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: dbms_system.set_ev
Here's what I do
accept tfid prompt 'Enter value for tracefile identifier: '
alter session set current_schema= &&the_user;
create or replace trigger &&the_user..trace_all
after logon on schema
begin
execute immediate 'alter session set tracefile_identifier = ''&tfid''';
DBMS_SUPPORT.START_TRACE;
end;
/
Paul Baumgartel
CREDIT SUISSE
Information Technology
Securities Processing Databases Americas
One Madison Avenue
New York, NY 10010
USA
Phone 212.538.1143
paul.baumgartel_at_credit-suisse.com
www.credit-suisse.com
-----Original Message-----
From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Joe Smith
Sent: Thursday, May 17, 2007 11:54 AM
To: oracle-l_at_freelists.org
Subject: dbms_system.set_ev
Is there a way to name the trace file with dbms_system.set_ev();:
sys.dbms_system.set_ev();
I have a login trigger that does:
sys.dbms_system.set_ev(l_sid,l_serial#,10046,l_level,'');
but I need to name the trace file and can this be done with dbms_system.set_ev ?
thanks.
--
http://www.freelists.org/webpage/oracle-l
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
--
http://www.freelists.org/webpage/oracle-l
Received on Thu May 17 2007 - 11:52:47 CDT
![]() |
![]() |