10g RMAN的REDUNDANCY策略改變
最近發現10g的RMAN備份保留REDUNDANCY策略和9i相比發生了改變。
在Oracle9i中,備份保留策略的REDUNDANCY的值,指的是備份冗餘的個數。也就是說,如果REDUNDANCY設定為1,那麼Oracle會保留2個備份。
但是在10g以後,REDUNDANCY的值,就是最終備份保留的值,手頭沒有10g的環境,用11g的rman做了一個例子:
solaris*orcl-/home/oracle$ rman target /
Recovery Manager: Release 11.2.0.3.0 - Production on Sun Jul 8 19:04:43 2012
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: ORCL (DBID=1299676637)
RMAN> show retention policy;
using target database control file instead of recovery catalog
RMAN configuration parameters for database with db_unique_name ORCL are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
RMAN> backup tablespace ts_32k;
Starting backup at 08-JUL-12
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=180 device type=DISK
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00005
name=/u01/app/oracle/oradata/ORCL/datafile/o1_mf_ts_32k_7w1w3zmb_.dbf
channel ORA_DISK_1: starting piece 1 at 08-JUL-12
channel ORA_DISK_1: finished piece 1 at 08-JUL-12
piece handle=/u01/app/oracle/flash_recovery_area/ORCL/backupset/2012_07_08/o1_mf_nnndf_TAG20120708T190559_7zltdqxy_.bkp
tag=TAG20120708T190559 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 08-JUL-12
RMAN> backup tablespace ts_32k;
Starting backup at 08-JUL-12
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00005
name=/u01/app/oracle/oradata/ORCL/datafile/o1_mf_ts_32k_7w1w3zmb_.dbf
channel ORA_DISK_1: starting piece 1 at 08-JUL-12
channel ORA_DISK_1: finished piece 1 at 08-JUL-12
piece
handle=/u01/app/oracle/flash_recovery_area/ORCL/backupset/2012_07_08/o1_mf_nnndf_TAG20120708T190609_7zltf22b_.bkp
tag=TAG20120708T190609 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02
Finished backup at 08-JUL-12
RMAN> list backup of tablespace ts_32k;
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
20 Full 2.69M
DISK 00:00:01 08-JUL-12
BP Key: 20 Status: AVAILABLE Compressed: NO Tag: TAG20120708T190559
Piece Name: /u01/app/oracle/flash_recovery_area/ORCL/backupset/2012_07_08/o1_mf_nnndf_TAG20120708T190559_7zltdqxy_.bkp
List of Datafiles in backup set 20
File LV Type Ckp SCN Ckp Time
Name
---- -- ---- ---------- --------- ----
5
Full 28932281 08-JUL-12
/u01/app/oracle/oradata/ORCL/datafile/o1_mf_ts_32k_7w1w3zmb_.dbf
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
21 Full 2.69M
DISK 00:00:01 08-JUL-12
BP Key: 21 Status: AVAILABLE Compressed: NO Tag: TAG20120708T190609
Piece Name:
/u01/app/oracle/flash_recovery_area/ORCL/backupset/2012_07_08/o1_mf_nnndf_TAG20120708T190609_7zltf22b_.bkp
List of Datafiles in backup set 21
File LV Type Ckp SCN Ckp Time
Name
---- -- ---- ---------- --------- ----
5
Full 28932300 08-JUL-12
/u01/app/oracle/oradata/ORCL/datafile/o1_mf_ts_32k_7w1w3zmb_.dbf
RMAN> delete obsolete;
RMAN retention policy will be applied to the command
RMAN retention policy is set to redundancy 1
using channel ORA_DISK_1
Deleting the following obsolete backups and copies:
Type Key Completion Time Filename/Handle
-------------------- ------ ------------------ --------------------
Backup Set 20 08-JUL-12
Backup Piece 20
08-JUL-12
/u01/app/oracle/flash_recovery_area/ORCL/backupset/2012_07_08/o1_mf_nnndf_TAG20120708T190559_7zltdqxy_.bkp
Do you really want to delete the above objects (enter YES or
NO)? yes
deleted backup piece
backup piece
handle=/u01/app/oracle/flash_recovery_area/ORCL/backupset/2012_07_08/o1_mf_nnndf_TAG20120708T190559_7zltdqxy_.bkp
RECID=20 STAMP=788123159
Deleted 1 objects
可以看到,從10g開始設定的REDUNDANCY的值,就是最終備份保留的個數。為了確認這個問題,特意查詢了一下9i和10g的官方文件。
9i的說法是:
The REDUNDANCY parameter specifies that any number of backups or copies beyond a specified number need not be retained.
而10g的文件中,該引數的描述變為:
A redundancy-based backup retention policy determines whether a backup is obsolete based on how many backups of a file are currently on disk.
Oracle改變功能的實現很常見,但是沒有想到,對於這種細節的定義也會調整。對於熟悉9i備份策略的DBA需要留神,在設定10g以後的RMAN備份保留策略時,需要在9i的基礎上增加1。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/4227/viewspace-734914/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 動態改變quartz的觸發器策略?quartz觸發器
- 【RMAN】RMAN的備份保留策略
- 10g 新特性 快改變跟蹤
- 【Oracle】rman 的相容策略Oracle
- 當asm file的REDUNDANCY值高於diskgroup的REDUNDANCY時ASM
- 【RMAN】改變FRA到新路徑,需要做哪些工作
- 【案例】RAID卡寫策略改變引發的問題AI
- 改變無法改變的Query 變數變數
- rman 備份策略
- rman總結(包含10g rman中的新特性)
- 中小企業促ERP廠商改變策略(轉)
- RMAN備份恢復——備份集儲存位置改變
- 10g中查詢初始化引數的值有所改變
- rman備份集的保留策略
- [20211020]改變備庫的rman配置.txt
- oracle 10g RMAN管理Oracle 10g
- normal redundancy Diskgroup裡required_mirror_free_mb值的變化規律ORMUI
- Oracle ASM 的redundancy與failgroupOracleASMAI
- RMAN 備份策略 scripts
- 微軟改變資料訪問策略 OLE DB再次轉向ODBCOS微軟
- 10g RAC rman tips
- oracle 10g rman 指令碼Oracle 10g指令碼
- 【rman備份策略】實驗
- 說說10g rman的catalog命令
- 【轉】OAuth的改變OAuth
- [一分鐘知識]改變無法改變的Query 變數變數
- 10G RMAN恢復新特性
- 用rman copy current controlfile實現控制檔案路徑改變的遷移
- 疫情促使軟銀改變投資策略 從謀求長期主導地位變為短期求存
- 戴爾在美國率先改變直銷策略 沃爾瑪賣臺式PC
- 一次 rman 備份策略的調整
- 10G 新特性系列:RMAN 新的引數-PREVIEWView
- GPO策略變更
- 客戶參與如何改變品牌制定其互動策略的方式(附原資料表)
- for while改變indexWhileIndex
- App改變世界APP
- Google改變生活Go
- oracle rman備份及策略設定Oracle