You received complaints about the degradation of SQL query performance. You identified top SQL queries that consume time. What would be your next step to find out recommendations about statistics collection and restructuring of the SQL statement to improve query performance? A) run Segment Advisor B) run SQL Tuning Advisor on top SQL statements C) run the Automatic Workload Repository (AWR) report D) run the Automatic Database Diagnostic Monitor (ADDM) on top SQL statements Answer:B Segment Advisor在以下三种情况会用到:1.get advice on shrink segment 2.analyse the undo space unused that can be released 3.space calculation on future可见与本题无关。 AWR(自动工作负载信息库),是一个Oracle 的内置工具,它采集与性能相关的统计数据,并从那些统计数据中导出性能量度,以跟踪潜在的问题。与Statspack 不同,AWR的快照由一个称为MMON 的新的后台进程及其从进程自动地每小时采集一次。为了节省空间,采集的数据在7 天后自动清除。快照频率和保留时间都可以由用户修改。 ADDM(自动数据库诊断监控程序),他的诊断引擎被设计成为一个分类系统,它根据AWR筛选的统计数据,对整个数据库性能的影响来估计问题的领域,最后为数据库管理员提供解决方案。而AWR 进行每一次快照采集之后,又会调用ADDM 来检查量度并生成建议。因此,ADDM与AWR相结合,主动地分析数据并生成建议。 在生成的建议中,SQL方面的问题ADDM会建议使用SQL Tuning Advisor来对他进行彻底的分析。因此本题选B。
|