好長時間沒怎么看 Oracle 技術文檔了,今天閱讀了一篇 Oracle Response Time Optimization with Method R. 這是 Optimizing Oracle Performance 經典圖書這本經典圖書的主旨方法。R 代表響應時間(response time).具體的定義如下:
1. Target the tasks that are critical to the business.
2. Collect PRoperly scoped, un-aggregated profile data for each task while the task is exhibiting the behavior you want to record.
3. React with the candidate repair that will have the greatest net payoff to the business. a. Stop if the cost of the repair exceeds the cost of the problem.
4. Go to step 1.
這里面的核心元素是 Profile .Profile 要提供給用程序到最終用戶的響應時間的具體描述.體現到 Oracle 數據庫這一層,就是要得到擴展的 SQL Trace 數據?! ∈遣皇歉杏X有些"虛", R 方法和一些我們已知的數據庫優化方法頗一些相似之處,但是 Cary Millsap 宣稱 R 方法是目前已知 Oracle 優化方法中的最優秀的、最全面的。我們來看看一些簡單比較: R方法 vs Oracle Wait Interface ">OWI 方法 OWI(Oracle wait interface)只是R方法中的一個基本元素. R 方法是適用更廣的(比如應用層)診斷指導策略(參見:How to Make an application Easy to Diagnose); R方法 vs YAPP 說來有趣, YAPP(Yet Another Performance Profiling Method) 方法的過程如下: