My Oracle Support Banner

Tkprof with sort options doesn't work on concatenated file with aggregate=no (Doc ID 744417.1)

Last updated on OCTOBER 24, 2019

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 9.2 to 11.1]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Information in this document applies to any platform.


NOTE: In the images and/or the document content below, the user information and data used represents fictitious data from the Oracle sample schema(s) or Public Documentation delivered with an Oracle database product. Any similarity to actual persons, living or dead, is purely coincidental and not intended in any manner.

Suppose you have generated lots of trace files with SQL_TRACE/Event 10046 and
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
concatenated file.

As an example take this command line (TEST.trc is the concatenated trace):

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

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.