Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Oracle Database XE 11gR2 Jump Start Guide

You're reading from  Oracle Database XE 11gR2 Jump Start Guide

Product type Book
Published in Jul 2012
Publisher Packt
ISBN-13 9781849686747
Pages 146 pages
Edition 1st Edition
Languages
Author (1):
Asif Momen Asif Momen
Profile icon Asif Momen

Table of Contents (20) Chapters

Oracle Database XE 11gR2 Jump Start Guide
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
Database Editions and Oracle Database XE Installing and Uninstalling Oracle Database XE Connecting and Configuring Oracle Database 11g XE Accessing Table Data, DML Statements, and Transactions Creating and Managing Schema Objects Developing Stored Subprograms and Triggers Building a Sample Application with Oracle Application Express Managing Database and Database Storage Moving Data between Oracle Databases Upgrading Oracle Database 11g XE to Other Database Editions Backup and Recovery Tuning Oracle Database 11g XE Features Available with Oracle Database 11g XE

Autotrace utility


The autotrace is an SQL*Plus utility used in tuning SQL statements. The autotrace utility offers SQL statement tracing. The PLUSTRACE role is required by the database user enabling trace. The PLUSTRACE role is created by executing the $ORACLE_HOME/sqlplus/admin/plustrce.sql script as SYSDBA.

Tracing is enabled/disabled using the set autotrace command in SQL*Plus, shown as follows:

SQL> set autotrace on
SQL> set autotrace off

The autotrace utility does not generate any trace files; instead the trace output is displayed on the screen. The following are the autotrace supported options:

  • on: This enables all options

  • off: This disables tracing

  • on explain: This displays returned rows and the execution plan

  • on statistics: This displays returned rows and statistics

  • trace explain: This displays the execution plan without actually executing it

  • traceonly: This displays the execution plan and statistics without returning the rows

The following is an example usage of the autotrace...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}