Problem with output file using TKPROF - Oracle 9i Release 2 [message #185312] |
Tue, 01 August 2006 03:03 |
kumarsz
Messages: 180 Registered: March 2005 Location: canada
|
Senior Member |
|
|
Hi,
I am using "Oracle9i Enterprise Edition Release 9.2.0.7.0"
I wanted to find out slow running queries in the database.
I generated trace file with following
alter session set events '10046 trace name context forever,level 12';
and used TKProf as following
tkprof d:\pratap\tkprof_trcs\dev13_ora_29776.trc d:\pratap\tkprof_trcs\text_29776.txt sort=prsela
However i could not found the user defined SQL statements in the output file generated.
(File attached for Reference)
Then i changed the sort parameter value for "prscpu"
tkprof d:\pratap\tkprof_trcs\dev13_ora_29776.trc d:\pratap\tkprof_trcs\text_29776_01.txt sort=prscpu
still could not found User Defined (and expected slow running SQLs)
Please suggest.
Thanks and Regards,
Pratap
Note : Output files are attached for reference
|
|
|
|
|
|
Re: Problem with output file using TKPROF - Oracle 9i Release 2 [message #185753 is a reply to message #185333] |
Thu, 03 August 2006 07:32 |
kumarsz
Messages: 180 Registered: March 2005 Location: canada
|
Senior Member |
|
|
Hi,
i could see the trace files after 2 hours in Udump.(for all the 2-3 sessions i was trying)
Could not know what happened.
Also i want to know the following
I start tracing sessions using
exec sys.dbms_system.set_sql_trace_in_session(51,2963,true);
Is trace file generated immediately after this command?
Also when shall i call the following then?
exec sys.dbms_system.set_sql_trace_in_session(51,2963,false);
Please reply and help.
Thanks and Regards,
Pratap
|
|
|
|
|