rman中RETENTION POLICY和BACKUP OPTIMIZATION的制約關係!
更詳細的內容可以參考doc:
本文只針對RETENTION POLICY和BACKUP OPTIMIZATION以及結合043中的一道題做一個簡單的說明,這道題在群內問起的人很多,確實不是很好理解。
[@more@]先看一下doc吧:
If backup optimization is enabled, and if a recovery window retention policy is in
effect, then when performing SBT backups RMAN always backs up datafiles whose
most recent backup is older than the recovery window. For example, assume that:
■ Today is February 21.
■ The recovery window is 7 days.
■ The most recent backup of tablespace tools to tape is January 3.
■ Tablespace tools is read-only.
On February 21, when you issue a command to back up tablespace tools to tape,
RMAN backs it up even though it did not change after the January 3 backup (because
it is read-only). RMAN makes the backup because no backup of the tablespace exists
within the 7-day recovery window.
This behavior allows the media manager to expire old tapes. Otherwise, the media
manager would be forced to keep the January 3 backup of tablespace tools
indefinitely. By making a more recent backup of tablespace tools on February 21,
RMAN allows the media manager to expire the tape containing the obsolete January 3
backup.
--===========================================
題目如下:
You set the recovery window to seven days and the backup optimization to ON using the
CONFIGURE command of Recovery Manager (RMAN). The most recent backup of the TOOLS
tablespace to disk was taken on January 3. The TOOLS tablespace is read-only.
On February 21, when you execute a command to back up all the tablespaces to disk, you find
that RMAN backs up the TOOLS tablespace also, even though the contents of the tablespace
have not changed after the backup on January 3.
Because there are no changes made to the TOOLS tablespace, you decide that the tablespace
should not be backed up by RMAN. What can you do to skip backing up the TOOLS tablespace
without changing the current backup optimization setting?
A. configure a default device for RMAN backups
B. temporarily disable the retention policy for RMAN backups
C. configure automatic channel allocation for RMAN backups
D. use the CONFIGURE command to reconfigure the recovery window to 60 days
--==============================
答案是B沒有問題,因為儲存策略設定的是7天,1月3號做的備份其實已經過期了,所以在2月21號做備份的時候又備了只讀表空間TOOLS,儘管TOOLS的內容沒有任何變化。如果1月3號的備份不過期的話,那麼此時BACKUP OPTIMIZATION ON會發揮作用,就不會在2月21號或者之後的備份中再備份TOOLS表空間,所以說RETENTION POLICY會優先於BACKUP OPTIMIZATION 發揮作用,其實答案D中提到的透過 reconfigure the recovery window to 60 days也可以達到不備份TOOLS表空間的目的,因為修改儲存策略為60天之後,1月3號的備份就不過期了,此時BACKUP OPTIMIZATION ON發揮作用也會skip對TOOLS的備份,所以此題不是很嚴密。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/19602/viewspace-1047945/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- CONTROL_FILE_RECORD_KEEP_TIME引數 和 retention policy 的關係 (轉郝總)
- Using RMAN REPORT NEED BACKUP with Different Retention Policies
- Trust Region Policy OptimizationRust
- Oracle OCP 1Z0-053 Q706(Rman Retention Policy)Oracle
- 關於RMAN 備份片backup copies 和通道CHANNEL之間關係的總結
- oracle 11g rman configure retention policy to recovery window of days系列一Oracle
- Backup policy(備份策略)
- RMAN備份中冗餘度和Obsolete的備份的關係
- NULL和唯一約束UNIQUE的對應關係Null
- iOS 中 UIView 和 CALayer 的關係iOSUIView
- js中__proto__和prototype的關係JS
- 理解JavaScript中BOM和DOM的關係JavaScript
- Windows系統中owner owned 關係和 parent child關係Windows
- http中session和cookie的區別和關係HTTPSessionCookie
- set unused column和檢視,約束,同義詞和索引的關係索引
- rman backup script(引用)
- Rman backup standby databaseDatabase
- DP rman backup scripts
- 關於oracle的undo_retentionOracle
- 很多人比較糾結的約束和索引的關係索引
- Backup And Recovery User's Guide-RMAN資料修復概念-資料庫incarnations之間的關係GUIIDE資料庫
- FAILGROUP和REDUNDANCY之間的關係關係!AI
- Backup And Recovery User's Guide-RMAN架構-關於RMAN環境GUIIDE架構
- HTTP請求中的referrer和Referrer-PolicyHTTP
- RMAN備份中檔案與channel對應關係的格式問題
- 使用RMAN backup和restore方式部署物理備庫REST
- RMAN連線與oracle連線模式的關係Oracle模式
- Oracle 學習(Rman Backup)Oracle
- rman backup database force 功能Database
- EF Code First中的主外來鍵約定和一對一、一對多關係的實現
- OGG 中replicat 和extract 關係圖
- WPF中Grid容器中VerticalAlignment和HorizonAlignment和Margin的關係。
- JavaScript和Java的關係JavaScript
- 平等和效率的關係
- Backup And Recovery User's Guide-RMAN架構-RMAN通道-通道和裝置GUIIDE架構
- NIO中SelectionKey和Channel、Selector的關係
- 資料庫中主庫和從庫的關係資料庫
- Android 中Activity,Window和View之間的關係AndroidView