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

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 性能分析器。可以捕获 ST S  中Oracle Databa se 11 g 之前的计划,并将这些计划导入到Oracle Databa se 11 g。然后,将初始化参数optimizer_feature s_enable设置为10g,使优化程序将此数据库当成10g Oracle DB 进行操作。接下来,为 ST S  运行 SQL 性能分析器。运行完成后,将初始化参数optimizer_feature s_enable设置回11g,并为 ST S  重新运行 SQL 性能分析器。
SQL 性能分析器将生成一个报表,列出了从10g 到11g 其计划已发生回归的 SQL 语句。
对于那些SQL 性能分析器显示的由于新优化程序版本而发生性能回归的SQL 语句,可以使用STS  捕获其计划,然后将这些计划加载到SMB 中。
此方法提供了计划植入进程的最佳形式,因为它有助于在保留数据库升级所带来的性能改进的同时,防止性能回归。

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值