ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 关于flashback log

关于flashback log

原创 Linux操作系统 作者:v_fantasy 时间:2011-05-31 10:54:20 0 删除 编辑

Flashback Database uses its own logging mechanism, creating flashback logs which are stored in the flash recovery area. You can only use Flashback Database if flashback logs are available. Therefore, you must set up your database in advance to create flashback logs if you want to take advantage of this feature.
To enable Flashback Database, you set up a flash recovery area, and set a flashback retention target, to specify how far back into the past you want to be able to restore your database with Flashback Database.
From that time on, at regular intervals, the database copies images of each altered block in every datafile into the flashback logs. These block images can later be reused to reconstruct the datafile contents as of any moment at which logs were captured.
When a database is restored to its state at some past target time using Flashback Database, each block changed since that time is restored from the copy of the block in the flashback logs most immediately prior to the desired target time. The redo log is then used to re-apply changes since the time that block was copied to the flashback logs.
Note:
Redo logs must be available for the entire time period spanned by the flashback logs, whether on tape or on disk. (In practice, however, redo logs are generally needed much longer than the flashback retention target to support point-in-time recovery.)

 

来源于http://www.itpub.net/thread-744924-1-1.html#
 

根据这个链接里面的图片显示会更有利于理解这段话,

rvwr进程一段时间将block image写入flashback log中(not every change)

flashback database是怎么恢复的呢,根据flashback log中的at some past target time的block进行restore,然后根据redo log进行recover到target time,哈哈就是这样简单

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/16158219/viewspace-696746/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-10-07

  • 博文量
    98
  • 访问量
    179506