Tkprof with sort options doesn't work on concatenated file with aggregate=no
(Doc ID 744417.1)
Last updated on AUGUST 04, 2018
Applies to:Oracle Server - Enterprise Edition - Version: 184.108.40.206 to 220.127.116.11 - Release: 9.2 to 11.1
Information in this document applies to any platform.
now you want to run tkprof with the sort option against these traces.
To make life easier yo've concatenated all these traces into one big trace file
(for example with the cat command on Unix) and now you run tkprof against the
As an example take this command line (TEST.trc is the concatenated trace):
tkprof TEST.trc TEST.tkp sort=(exeela,fchela)
This sorts the trace file according to elapsed time executing (=exeela) and
fetched time executing (=fchela) and prints the formatted output to file TEST.tkp.
This is working fine. Note also that this command line uses the default setting for the
aggregate option, i.e. aggregate=yes. With this setting tkprof aggregates multiple users
of the same SQL text.
But suppose you want to sort the concatenated file with aggregate=no, i.e.:
tkprof TEST.trc TEST.tkp aggregate=no sort=(exeela,fchela)
Though it seems to work, when you check TEST.tkp you see the sort options are ignored.
So what went wrong?
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document