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

Home -> Community -> Usenet -> c.d.o.server -> Re: Need help locating correct trace file.

Re: Need help locating correct trace file.

From: Martin Haltmayer <Martin.Haltmayer_at_0800-einwahl.de>
Date: Sat, 20 Jan 2001 19:58:14 +0100
Message-ID: <3A69DFC6.AD332969@0800-einwahl.de>

At Solaris 2.6 8.1.6 I use the following script reliably. You have to run this as SYS or internal. You get the trace file name by "select name from my_trace;":

create or replace view my_trace as

select	distinct p.spid

, f.value || '/' || lower (i.instance_name) || '_ora_' || to_char (p.spid,
'fm999999') || '.trc' as name from v$process p
, v$session s
, v$instance i
, v$parameter f
where 1 = 1 and p.addr = s.paddr and s.audsid = userenv ('sessionid') and 'user_dump_dest' = f.name

/

create public synonym my_trace for my_trace;

grant select on my_trace to public; Received on Sat Jan 20 2001 - 12:58:14 CST

Original text of this message

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