好长时间没怎么看 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 数据。 是不是感觉有些"虚", 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) 方法的过程如下: