数据库初始化参数中有两个retention参数:undo_retention db_flashback_retention_target 区别如下:[@more@]
DB_FLASHBACK_RETENTION_TARGET 指定了数据库可以闪回到多少分钟之前。分钟.
specifies the upper limit (in minutes) on how far back in time
the database may be flashed back.
能闪回到多少分钟之前,取决于数据在闪回区保存了多少闪回数据。
缺省1440分钟,即1天。
使用这个参数,需要同时设置了db_recovery_file_dest_size db_recovery_file_dest 和打开
数据库的flashback on .
UNDO_RETENTION 指定了undo数据保留多少秒的时间。秒.
specifies (in seconds) the low threshold value of undo retention.
缺省900秒.
在自动扩展的undo表空间下,系统保留这个参数指定的时间内的回滚数据。
在非自动扩展的undo表空间下,系统尽量保留指定时间内的回滚数据。除非
将retention guarantee设为真.
这个参数依赖于足够大的undo表空间。
系统保留多长时间的undo,可以查询V$UNDOSTAT.TUNED_UNDORETENTION,这个视图的数据每10分采样一次。