Book Image

Oracle Database XE 11gR2 Jump Start Guide

By : Asif Momen
Book Image

Oracle Database XE 11gR2 Jump Start Guide

By: Asif Momen

Overview of this book

Oracle Database XE 11gR2 is an excellent beginner-level database and is a great platform to learn database concepts. "Oracle Database XE 11gR2 Jump Start Guide" helps you to install, administer, maintain, tune, back up and upgrade your Oracle Database Express Edition. The book also helps you to build custom database applications using Oracle Application Express.Using this book, you will be able to install Oracle Database XE on Windows/Linux operating system.This book helps you understand different database editions and it guides you through the installation procedure with the aid of screenshots. You will learn to interact with the database objects. You will gain a solid understanding of stored sub-programs which is followed by an introduction to Oracle Application Express (APEX). Solid database performance tuning strategies are also discussed in this book followed by backup and recovery scenarios. All in all, "Oracle Database XE 11gR2 Jump Start Guide" delivers everything that you should know to get started with Oracle Database administration.
Table of Contents (20 chapters)
Oracle Database XE 11gR2 Jump Start Guide
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface

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...