【翻譯自mos文章】閃回區和flashback database,

來源:互聯網
上載者:User

【翻譯自mos文章】閃回區和flashback database,

閃回區和flashback database

參考自:
FLASH RECOVERY AREA and FLASHBACK database (文檔 ID 369759.1)

適用於:
Oracle Database - Enterprise Edition - Version 10.1.0.2 and later
Information in this document applies to any platform.
 ***Checked for relevance on 16-Apr-2014***

解決方案:

閃回區

閃回區(以下簡稱FRA區)是一個目錄,該目錄提供一個集中的disk location,用來backup 和recovery  files
Oracle在FRA區中建立歸檔日誌。rman可以把backup存放在FRA區中,預設情況下,FRA區是存放rman backup的地方。

All files necessary to recover the database following a media failure are located in the flash recovery area ( if defined ).

FRA區還充當 為tape 作為disk cache的角色。推薦的策略是在FRA中儲存backups,以便有更多的最近backup在disk上可用,那麼backup和restore進程將會faster。

此外,推薦周期性的備份FRA區 到tape中,那麼你將會在disk上有更近的backups,在tape上有older的backups

閃回資料庫
這是從10g引入的新特性。該特性提供一個方法將資料庫revert到 過去的某一個時間點。可以將單獨一個table revert到過去。

這不同於傳統的基於時間點的恢複(point in time recovery)。為了flashback 一個database,oracle 使用 older block image 來放棄(back out)對資料庫的修改
這意味著 Oracle block 被用它之前的image來 overwrite,以便將資料庫back到過去的一個時間點。

若是flashback database 被啟用,在正常的資料庫操作期間,Oracle建立 flashback log,databae block的 before image 會先於 該block apply any change之前 被儲存到flashback log

Oracle自動create, delete 和 resize  FRA區中的flashback log。你只需要關心如下 :監控效能和 為FRA區的flashback log 分配多少disk space。

flashback database 不是真正的media recovery,因為它不涉及到 restore 物理datafile。但是,在some cases下,Flashback 比用restore 和recover 更好
(Flashback is preferable to using the RESTORE and RECOVER commands in some cases)。因為Flashback  更快速更容易,並且不需要restore 整個資料庫。

可以通過下面的參數來限制flashback logs 的數量:
DB_FLASHBACK_RETENTION_TARGET(可動態修改)-->可以把database flashback 多少minutes之前。但是你不能手工delete flashback logs,你需要把flashback database 關閉後才能delete flashback logs

關於flashback log 空間管理,請參閱mos文章:
Note 369755.1 Flashback Logs-Space management

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.