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:
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 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.
Refer to the SQL Language Reference manual in the Oracle documentation for the definition of an identifier.
Author information
Authors and Affiliations
Rights 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
DOI: https://doi.org/10.1007/978-1-4302-5759-2_7
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-5758-5
Online ISBN: 978-1-4302-5759-2
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books