OCP-1Z0-053-V13.02-233题

来源:互联网 发布:java集合用大括号 编辑:程序博客网 时间:2024/06/05 22:47

233.Your system has been upgraded from Oracle Database 10g to Oracle Database 11g. You imported

SQL Tuning Sets (STS) from the previous version. After changing the OPTIMIZER_FEATURE_ENABLE

parameter to 10.2.0.4 and running the SQL Performance Analyzer, you observed performance regression

for a few SQL statements. What would you do with these SQL statements?

A. Set OPTIMIZER_USE_PLAN_BASELINES to FALSE to prevent the use of regressed plans.

B. Capture the plans from the previous version using STS and then load them into the stored outline.

C. Capture the plans from the previous version using STS and then load them into SQL Management Base (SMB).

D. Set OPTIMIZER_CAPTURE_SQL_PLAN_BASELINES to FALSE to prevent the plans from being loaded to the SQL plan baseline.

Answer: C

答案解析:

参考:http://blog.csdn.net/rlhua/article/details/16369811


SQL 性能分析器和SQL 计划基准方案
上一个图中所述的第一种方法的一个变体是通过使用SQL 性能分析器。可以捕获STS  中Oracle Database 11 g 之前的计划,并将这些计划导入到Oracle Database 11 g。然后,将初始化参数optimizer_features_enable设置为10g,使优化程序将此数据库当成10g Oracle DB 进行操作。接下来,为STS  运行SQL 性能分析器。运行完成后,将初始化参数optimizer_features_enable设置回11g,并为STS  重新运行SQL 性能分析器。
SQL 性能分析器将生成一个报表,列出了从10g 到11g 其计划已发生回归的SQL 语句。
对于那些SQL 性能分析器显示的由于新优化程序版本而发生性能回归的SQL 语句,可以使用STS  捕获其计划,然后将这些计划加载到SMB 中。
此方法提供了计划植入进程的最佳形式,因为它有助于在保留数据库升级所带来的性能改进的同时,防止性能回归。

 

原创粉丝点击