Reader small image

You're reading from  Oracle Database 11g : Underground Advice for Database Administrators

Product typeBook
Published inApr 2010
PublisherPackt
ISBN-139781849680004
Edition1st Edition
Right arrow
Author (1)
April Sims
April Sims
author image
April Sims

April Sims is currently the Database Administrator at Southern Utah University and an Oracle Certified Professional: 8i, 9i, and 10g with a master's degree in Business Administration from the University of Texas at Dallas. Involved as a volunteer with the Independent Oracle Users Group for over 7 years, April is currently a Contributing Editor for the IOUG "SELECT" Journal. April is an annual presenter at Oracle OpenWorld, IOUG COLLABORATE, and numerous regional Oracle-related conferences.
Read more about April Sims

Right arrow

Gathering statistics


There is the Oracle-supplied package DBMS_STATS that will calculate statistics for a table (entire schema or the entire database), which is considered the replacement for the older (legacy) compute statistics command for calculating the cost of a query. Using the DBMS_STATS package will be your primary method for regulating statistics gathering on any database 10g and above, along with the startup initialization parameters of TIMED_STATISTICS and STATISTICS_LEVEL .

11g puts statistics gathering under the larger umbrella of Automatic Maintenance Tasks Management or AutoTask , which is used in conjunction with the resource manager so that jobs (like statistics gathering) are sure to complete successfully within the resource windows. These are the tasks automatically implemented:

  • Optimizer statistics gathering

  • Automatic Segment Advisor

  • SQL Tuning Advisor

The first set of automatic tasks is where we will start in this section-Optimizer Statistics Gathering, which calls the...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Oracle Database 11g : Underground Advice for Database Administrators
Published in: Apr 2010Publisher: PacktISBN-13: 9781849680004

Author (1)

author image
April Sims

April Sims is currently the Database Administrator at Southern Utah University and an Oracle Certified Professional: 8i, 9i, and 10g with a master's degree in Business Administration from the University of Texas at Dallas. Involved as a volunteer with the Independent Oracle Users Group for over 7 years, April is currently a Contributing Editor for the IOUG "SELECT" Journal. April is an annual presenter at Oracle OpenWorld, IOUG COLLABORATE, and numerous regional Oracle-related conferences.
Read more about April Sims