【转】11.2.0.4 上需要注意的 Performance 与 Wrong Results 问题 (文档 ID 1985032.1)

适用于:

Oracle Database – Enterprise Edition – 版本 11.2.0.4 到 11.2.0.4 [发行版 11.2]
Oracle Database – Standard Edition – 版本 11.2.0.4 到 11.2.0.4 [发行版 11.2]
Oracle Database – Personal Edition – 版本 11.2.0.4 到 11.2.0.4 [发行版 11.2]
本文档所含信息适用于所有平台

用途

本文档的目的是公布一些在 11.2.0.4.x 版本中推荐的补丁,以避免有关 Performance 与 Wrong Results 方面的问题。
对于其他版本,请参考:

Document 1320966.1 Things to Consider to Avoid Poor Performance or Wrong Results on 11.2.0.2
Document 1392633.1 Things to Consider to Avoid Poor Performance or Wrong Results on 11.2.0.3
Document 2034610.1 Things to Consider to Avoid Poor Performance or Wrong Results on 12.1.0.2

最佳实践

如何主动避免问题发生及做好诊断信息的收集

有些问题是无法预见的,但大部分其它的问题如果及早发现一些征兆其实是可以避免的。同时,如果问题确实发生了,那么收集问题发生时的信息就非常重要。有关于如何主动避免问题及诊断信息的收集,请参见:

Document 1482811.1 Best Practices: Proactively Avoiding Database and Query Performance Issues
Document 1477599.1 Best Practices Around Data Collection For Performance Issues

Document 601807.1 Oracle 11gR1 Upgrade Companion
Document 785351.1 Oracle 11gR2 Upgrade Companion

适用范围

本文档主要推荐一些 11.2.0.4 的 PSU 中未包含的补丁,因为这些补丁或者包含了 Optimizer(优化器)层面的修复,或者 PSU 即将纳入但是尚未发布。
如果没有找到对应平台和版本的补丁,请提交一个服务请求,同时附上已打过补丁的列表(opatch lsinventory -detail),以及其它准备要打的补丁列表。

 

详细信息

尽管我们尝试在每个季度发行的 PSU 中包含重要的修复,但是 PSU 能包含的修复是有限制的。限制之一是对 Optimizer 层的修复,因为这些修复可能会改变执行计划,导致从一个 PSU 移植到另一个 PSU 需要做更多的测试;另外,有些修复可能还没有包括在已发布的 PSU 中。

除了打最新的 PSU 外,请考虑如下补丁,以避免某些 Performance、ORA-600/ORA-7445 错误和一些 Wrong Results 问题。

请注意:补丁的发布是基于具体案例的。这篇文档中提到的补丁可能不是所有的平台都有,或者有的平台不便于提供。它们在这篇文档中被列出不代表我们保证它们 一定会被提供。就像其它的补丁一样,提供的前提是这个问题确实对客户的业务造成了影响。对于不同的应用程序及使用的数据库特性,遇到这些 Defect 的可能性是很低或者没有的。比如特定于 AIX 上的 Defect 是不会在别的平台上遇到的,还有就是 RAC 特定的 Defect 不会在非 RAC 的环境中遇到。更多关于错误修正政策的信息,请参见以下文档:

Document 209768.1 Database, FMW, EM Grid Control, and OCS Software Error Correction Support Policy

适用于所有平台的补丁

作为最佳实践,请根据 Document 756671.1 安装 11.2.0.4 最新的 PSU,最新的 PSU 修复了许多这个文档中没有列出的已知问题。此外,基于不同的 PSU 版本选择应用以下补丁:

No PSU PSU 1 2 3 4 5 6 7 8 160119 Bugs Fixed
Patch 21392660 for 11.2.0.4.0 Patch 21765124 for 11.2.0.4.4 Document 18255105.8 Patch for upgrade scripts to identify histograms affected by fix of bug 15898932
注意,需要在运行11.2.0.4升级脚本之前打这个patch, 否则就没有用了.
Document 19855835.8 Upgrade slow when reorganizing large stats history tables
注意,需要在运行11.2.0.4升级脚本之前打这个patch, 否则就没有用了.
Patch 16188701 for 11.2.0.4.0 Document 16188701.8 ORA-942 / ORA-7445 [ksscct] invoker right procedures run by users in parallel
Patch 17551261 for 11.2.0.4.0 Document 17551261.8 ORA-904 “from$_subquery$_003”.with query rewrite
Patch 21394872 for 11.2.0.4.01 Document 16837274.8 Cardinality feedback produces poor subsequent plan
Document 20476175.8 High VERSION_COUNT (in V$SQLAREA) for query with OPT_PARAM(‘_fix_control’) hint
Document 21091518.8 Extend fix of bug 18304693 to Partition Views (取代了 Document 18304693.8 Suboptimal higher cost plan chosen for Cost-Based Query Transformation)
Patch 20879889 for 11.2.0.4.0 Patch 20879889 for 11.2.0.4.2 Document 20879889.8 Open cursor leak from DML on table with a materialized view log
Patch 18199537 for 11.2.0.3.0 PSU 4 及之后的版本已修复 Document 18199537.8 RAC database becomes almost hung when large amount of row cache are used in shared pool
Patch 13645875 for 11.2.0.4.0 PSU 3 及之后的版本已修复 Document 13645875.8 ORA-7445[qerixFetchFastFullScan] on update of IOT with secondary index
Patch 17332800 for 11.2.0.4.0 PSU 1 及之后的版本已修复 Document 17332800.8 Wrong results with IOTs and fix of bug 13705338 present

1 如果您也想安装 Document 2034706.1里的补丁,那么Patch 21394872 会与 Patch 22307860 发生冲突。建议安装11.2.0.4.0上的Patch 21788385 来取代这两个补丁从而解决冲突


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *