Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles
New Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

 
 

Oracle Trace Analyzer (trcanlzr.sql)

Oracle Tips by Burleson Consulting

January 16, 2015

This is a rare opportunity to get a senior Oracle Corporate Developer enhancing our utilities, so I encourage al of you to contact him with comments. Oracle Corporation is interested in feedback from Oracle Tips! Carlos Sierra, developer of the wonderful sqltxplain.sql (see MOSC) and trcanlzr.sql script writes:

I am very interested in receiving feedback from your people on my scripts. That helps me keep the scripts current and useful.
 
Regards, Carlos Sierra carlos.sierra@oracle.com

Below is another superbly-improved Oracle Utility by Carlos, the new Oracle Trace Analyzer:

Using the Trace Analyzer Utility

Trace Analyzer (trcanlzr) is an application from Oracle with much the same purpose as TKPROF. It is also designed to help analyze the trace files generated by SQL tracing. Trace Analyzer offers enhancements over TKPROF in a number of areas. Several of the key improvements are as follows:

n  Trace Analyzer provides a more detailed list of wait events for every SQL statement that is part of the trace file. Only in recent versions has TKPROF provided at least limited wait information.  Older versions provide no information on wait events regardless of the trace data.

n  Trace Analyzer reports totals for statements that execute multiple times; whereas TKPROF  would report each execution separately.  This is important when tracing a process that is updating many records, but doing it one row at a time.  Identifying this with TKPROF requires more manual effort.

n  Trace Analyzer provides the values used by bind variables, as long as the trace file was generated at a level that includes bind variables; whereas this feature is not available with TKPROF.

Installation of Trace Analyzer is fairly straightforward as long as the instructions are followed completely.  It is very similar to installing Statspack . MOSC document 224270.1 provides an adequate explanation for finding the files to accomplish the installation as well as how to install and use it.  Be very careful to follow the instructions exactly.

Executing Trace Analyzer

The first step is to enable tracing at the appropriate level. For example, to provide maximum trace data, a Level 12 trace can be started for the current session:

 

SQL> ALTER SESSION SET EVENTS '10046 TRACE NAME CONTEXT FOREVER, LEVEL 12';

 

After the session executes for enough time to gain needed data, the trcanlzr.sql script can be executed. It requires the name of the directory object. This object points to the physical operating system directory for the user_dump_dest . The installation of the utility will automatically create the directory object required (named UDUMP).

 

SQL>@d:\trcanlzr.sql UDUMP asg920xr_ora_13033.trc

 

Once executed, the output will be displayed on the screen and a spool file is created in the current directory.  It is possible to change the output spool file by modifying the trcanlzr.sql script.

.

 

 



 

 

��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster
 
 
 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2017

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.

Remote Emergency Support provided by Conversational