Oracle record history using as of timestamp within a range

前端 未结 3 974
小鲜肉
小鲜肉 2021-01-06 12:19

I recently learnt that oracle has a feature which was pretty useful to me - as the designer/implementator didn\'t care much about data history - I can query the historical s

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-06 12:28

    One note to be aware of is that this sort of flashback query relies on UNDO information that is written to the UNDO tablespace. And that information is not retained forever-- most production systems under reasonable load are not going to have 24 hours of UNDO information available.

    Depending on the Oracle version, you may need to set the UNDO_RETENTION parameter to a value longer than the time period you are trying to flashback through.

提交回复
热议问题