Skip to main content

System Statistics

  • Chapter
  • First Online:
Troubleshooting Oracle Performance
  • 777 Accesses

Abstract

The query optimizer used to base its cost estimations on the number of physical reads needed to execute SQL statements. That method is known as the I/O cost model. The main drawback of this method is that single-block reads and multiblock reads are equally costly. Consequently, multiblock read operations, such as full table scans, are artificially favored. Before system statistics were introduced, especially in OLTP systems, the optimizer_index_caching and optimizer_index_cost_adj initialization parameters were used to work around this problem (see Chapter 9 for coverage of both parameters). In fact, the default values used to be appropriate for reporting systems and data warehouses only. Currently, a new costing method, known as the CPU cost model, is used to address this flaw. To use the CPU cost model, additional information about the performance of the system where the database engine runs, called system statistics, has to be provided to the query optimizer. Essentially, system statistics supply the following information:

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 79.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 99.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    Common sense suggests that reading a single block should be faster than reading multiple blocks. Strangely enough, this isn’t always true in reality. In any case, the important thing is to recognize that there’s a difference.

  2. 2.

    Refer to the SQL Language Reference manual in the Oracle documentation for the definition of an identifier.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2014 Christian Antognini

About this chapter

Cite this chapter

Antognini, C. (2014). System Statistics. In: Troubleshooting Oracle Performance. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-5759-2_7

Download citation

Publish with us

Policies and ethics