Q
Problem solve Get help with specific problems with your technologies, process and projects.

Using Oracle trace files

How can we generate and use SQL trace files, and how they can be helpful in SQL tuning?

How can we generate and use SQL trace files, and how they can be helpful in SQL tuning?
With Oracle9i, you can install the package dbms_support (see dbmssupp.sql and prvtsupp.plb in $ORACLE_HOME/rdbms/admin). When you use dbms_support to trace a session, the resulting trace file (once formatted with the tkprof utility) will show you where your session is spending its time, and that information -- for example, many full table scans against a large table -- can indicate what changes you need; for this example, it might be adding an index to that table. Seek out information on interpreting tkprof output for more help. Better yet, run some traces and study their output to get a feel for the information tracing can give you.
This was last published in June 2006

Dig Deeper on Oracle and SQL

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide.com

SearchDataCenter

SearchContentManagement

SearchHRSoftware

Close