Trace file name [message #364590] |
Tue, 09 December 2008 04:02 |
gajini
Messages: 262 Registered: January 2006
|
Senior Member |
|
|
Hi,
My Oracle version is 10gR2 and server is HP Unix. I wants to enable sql trace file for some oracle sessions,to find the trace file generated in udump, We need to have OS Process Id of that session. But in HP Unix, v$session.process & v$process.spid is not showing the exact os process id. What I've to do to find out the exact trace file generated for that session in HP Unix?
Thanks...
|
|
|
|
|
|
Re: Trace file name [message #364607 is a reply to message #364595] |
Tue, 09 December 2008 04:30 |
|
Michel Cadot
Messages: 68718 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
Here's a query to find trace file name:
SQL> Select s.sid, s.username,
2 i.instance_name || '_ora_' || ltrim(to_char(p.spid)) ||
3 decode (p.traceid, null, '', '_'||p.traceid) || '.trc'
4 TraceFile
5 from v$session s, v$process p, v$instance i
6 where p.addr = s.paddr
7 and s.type = 'USER' and s.username is not null
8 order by username, sid
9 /
SID USERNAME TRACEFILE
---------- ------------------------------ ------------------------------
149 MICHEL mika_ora_9312.trc
150 MICHEL mika_ora_8884.trc
151 MICHEL mika_ora_8224.trc
3 rows selected.
Regards
Michel
|
|
|