Automatic Tuning of Undo Retention

简介:
Oracle 10gR2 and higher automatically tunes the undo retention period based on how the undo tablespace is configured.
  1. If the undo tablespace is configured with the AUTOEXTEND option, the database dynamically tunes the undo retention period to be somewhat longer than the longest-running active query on the system. However, this retention period may be insufficient to accommodate Oracle Flashback operations. Oracle Flashback operations resulting in "snapshot too old" errors are the indicator that you must intervene to ensure that sufficient undo data is retained to support these operations. To better accommodate Oracle Flashback features, you can either set the UNDO_RETENTION parameter to a value equal to the longest expected Oracle Flashback operation, or you can change the undo tablespace to fixed size.
  2. If the undo tablespace is fixed size, the database dynamically tunes the undo retention period for the best possible retention for that tablespace size and the current system load. This best possible retention time is typically significantly greater than the duration of the longest-running active query.
  3. To guarantee the success of long-running queries or Oracle Flashback operations, you can enable retention guarantee. If retention guarantee is enabled, the specified minimum undo retention is guaranteed; the database never overwrites unexpired undo data even if it means that transactions fail due to lack of space in the undo tablespace. If retention guarantee is not enabled, the database can overwrite unexpired undo when space is low, thus lowering the undo retention for the system. This option is disabled by default.

本文转自maclean_007 51CTO博客,原文链接:http://blog.51cto.com/maclean/1277881
相关文章
|
11月前
|
Oracle 关系型数据库
Mixed Mode Auditing
Mixed Mode Auditing
38 1
|
机器学习/深度学习 存储 人工智能
【5分钟 Paper】Prioritized Experience Replay
【5分钟 Paper】Prioritized Experience Replay
155 0
|
SQL
Automatic Workload Repository (AWR)
Automatic Workload Repository (AWR)
156 0
 Automatic Workload Repository (AWR)
|
C++
PAT (Advanced Level) Practice - 1038 Recover the Smallest Number(30 分)
PAT (Advanced Level) Practice - 1038 Recover the Smallest Number(30 分)
148 0
PAT (Advanced Level) Practice - 1030 Travel Plan(30 分)
PAT (Advanced Level) Practice - 1030 Travel Plan(30 分)
127 0
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等