How to distinguish b/w normal trace file and different Sessions enabled SQL trace files? [message #184051] |
Tue, 25 July 2006 02:17 |
ghalib
Messages: 8 Registered: July 2006 Location: INDIA
|
Junior Member |
|
|
Is there any way to differentiate between normal trace files and
different Session's SQL enabled trace files which generate in udump folder on Operating System?
I want to have a script which distinguishes between different
Session's SQL enable trace files and normal trace files.
So we can know that these files are generated due to enabling sql trace
utility.
Thanks in Advance.
ASAD
|
|
|
|
|
|
Re: How to distinguish b/w normal trace file and different Sessions enabled SQL trace files? [message #184373 is a reply to message #184289] |
Wed, 26 July 2006 06:31 |
|
ebrian
Messages: 2794 Registered: April 2006
|
Senior Member |
|
|
If you are looking for someone elses trace file, then you could find the sid & serial# of that particular user from SQL*Plus and use the following:
For example, if a session has sid of 14 and serial# of 39:
findstr /i /c:"SESSION ID:(14.39)" d:\oracle\admin\dbname\udump\*.trc
You could also issue the following select and look for the trace file that has this number in the filename.
select spid
from v$process p, v$session s
where s.paddr = p.addr
and s.username = '<username_of_other_session>';
SPID
----
2422
For example, you would look for file ora9i_ora_2422.trc.
[Updated on: Wed, 26 July 2006 07:06] Report message to a moderator
|
|
|
Re: How to distinguish b/w normal trace file and different Sessions enabled SQL trace files? [message #184791 is a reply to message #184289] |
Fri, 28 July 2006 01:25 |
ghalib
Messages: 8 Registered: July 2006 Location: INDIA
|
Junior Member |
|
|
As I discussed, Suppose two persons perform sql tracing for their sessions.
Is there a automize way to getting know that these two trace files are generated due to invoke SQL Tracing and then tag their tracefiles.
Obviously these two persons issue the Alter Session command for enabling SQL Trace theirselves.
Is thier a routine or something like that available that instead of these two users who perform their session trace, anautomize routine will tag their trace files to a particular name.So whenever I look at the userdump folder I can distinguish these files with each other.
Asad
|
|
|
|
|
|
|