-
tkprof
OS=Linux
Oracle version: 9.2.0.4
I have a 1.02gb trace file. when i do a tkprof on the trace file, its hung.
It does not error out but keeps running without giving any output. I waited for atleast one hour and then killed the tkprof process. even after one hour the outputfile is 0 Bytes.
any ideas.
thanks in advance.
-
maybe u can split it to smaller filess
split -1000 filename
-
A metalink note suggests that you use mknod and pipe the trace file (like an import) to tkprof. Folks say it works. I've never tried it on tkprof though..
-
Originally posted by kris123
maybe u can split it to smaller filess
split -1000 filename
err no, chances are you will split the STAT lines all up and make a hash of it
-
-
I has the same problem looking at a trace file where tkrpof took more then 2gb in memory on my windooze server and then killed itself. I could not find a work around but check it's mem utilization to see if that is the problem
I'm stmontgo and I approve of this message
-
What is the motive to see tkproof o/p..?
* long running qry?
* resource usage?
you can fix these problems without even tkproof... cant u?
Rgds
Abhay.
funky...
"I Dont Want To Follow A Path, I would Rather Go Where There Is No Path And Leave A Trail."
"Ego is the worst thing many have, try to overcome it & you will be the best, if not good, person on this earth"
-
tkprof - finished
i tried again and this time left it to run. it took 2 hours to finish.
the outputfile was 445MB.
Used TOP to monitor and the CPU and memory usage were normal.
this tkprof process was the top session in TOP. the values of VIRT and RES columns in TOP were increasing during the run. from this i was assured TKPROF was doing something.
i tried also the mknod method(as suggested in metalink) and it took even more time(> 3 hours) to finish.
-
You should turn on sql_trace for a single session not the whole database. Once you turn on tracing for a single session go through and do all of the transactions that seem slow, turn off tracing for that session then use tkprof, it should be much smaller. I'm not sure off hand how to turn on tracing for a single session, you might look it up under tahiti.oracle.com
-
dbms_system.set_sql_trace_in_session(sid, serial#, false) will turn it off
or set_ev if using a 10046 trace
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|