Cost-Based Oracle Fundamentals
暫譯: 基於成本的 Oracle 基礎知識

Jonathan Lewis

  • 出版商: Apress
  • 出版日期: 2005-11-02
  • 售價: $2,570
  • 貴賓價: 9.5$2,442
  • 語言: 英文
  • 頁數: 536
  • 裝訂: Paperback
  • ISBN: 1590596366
  • ISBN-13: 9781590596364
  • 相關分類: Oracle
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

相關主題

商品描述

Description

The question, "Why isn't Oracle using my index?" must be one of the most popular (or perhaps unpopular) questions ever asked on the Oracle help forums. You've picked exactly the right columns, you've got them in the ideal order, you've computed statistics, you've checked for null columnsand the optimizer flatly refuses to use your index unless you hint it. What could possibly be going wrong?

If you've suffered the frustration of watching the optimizer do something completely bizarre when the best execution plan is totally obvious, or spent hours or days trying to make the optimizer do what you want it to do, then this is the book you need. Youll come to know how the optimizer thinks,?understand why it makes mistakes, and recognize the data patterns that make it go awry. With this information at your fingertips, you will save an enormous amount of time on designing and trouble-shooting your SQL.

The cost-based optimizer is simply a piece of code that contains a model of how Oracle databases work. By applying this model to the statistics about your data, the optimizer tries to efficiently convert your query into an executable plan. Unfortunately, the model can't be perfect, your statistics can't be perfect, and the resulting execution plan may be far from perfect.

In Cost-Based Oracle Fundamentals, the first book in a series of three, Jonathan Lewisone of the foremost authorities in this fielddescribes the most commonly used parts of the model, what the optimizer does with your statistics, and why things go wrong. With this information, youll be in a position to fix entire problem areas, not just single SQL statements, by adjusting the model or creating more truthful statistics.

 

商品描述(中文翻譯)

**描述**

「為什麼 Oracle 不使用我的索引?」這個問題可能是 Oracle 幫助論壇上最受歡迎(或許是不受歡迎)的問題之一。你選擇了正確的欄位,並且按照理想的順序排列,計算了統計數據,檢查了空值欄位,但優化器卻堅決拒絕使用你的索引,除非你給出提示。到底發生了什麼問題?

如果你曾經感到沮喪,目睹優化器在最佳執行計劃顯而易見的情況下做出完全荒謬的決策,或者花了幾小時或幾天試圖讓優化器按照你的意願運作,那麼這本書就是你所需要的。你將了解優化器的思維方式,理解它為什麼會犯錯,並識別導致其出錯的數據模式。掌握這些資訊後,你將能夠在設計和排除 SQL 問題上節省大量時間。

基於成本的優化器只是一段包含 Oracle 數據庫運作模型的程式碼。通過將這個模型應用於你的數據統計,優化器試圖有效地將你的查詢轉換為可執行的計劃。不幸的是,這個模型不可能是完美的,你的統計數據也不可能是完美的,最終生成的執行計劃可能遠非完美。

在《基於成本的 Oracle 基礎知識》中,這是三部曲中的第一本,Jonathan Lewis 這位該領域的權威之一,描述了模型中最常用的部分,優化器如何處理你的統計數據,以及為什麼會出現問題。擁有這些資訊後,你將能夠通過調整模型或創建更真實的統計數據來修正整個問題區域,而不僅僅是單一的 SQL 語句。

最後瀏覽商品 (20)