日期:2014-05-16  浏览次数:20557 次

rman配置参数详解

    RMAN 配置参数为:

RMAN> show all;

CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'D:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\SNCFORCL.ORA'; # default


    注释:#default表示该配置仍然是初始的默认值。回到默认配置configure..clear。

 

               1)configure retention policy to ..
                    用来决定哪些备份不在需要,共有三个可选项:
                    a)redundancy 5
                         表示某个数据文件的备份集存在的个数,此处为5份
                    b)recovery window of 7 days
                         表示你希望数据库最早能恢复到几天前
                    c)none
                         表示不需要采用保留策略
                         注释:a)和b)是互斥关系

 

               2)CONFIGURE BACKUP OPTIMIZATION ..
                     理论上,备份优化仅对于只读表空间或offline表空间起作用。当然,对于已经备份过的归档日志文件也会跳过。
                     缺省为off


   
              3)CONFIGURE DEFAULT DEVICE TYPE TO ..
                   指定i/o操作的设备类型:SBT or DISK.缺省是disk。

   
             4)
CONFIGURE CONTROLFILE AUTOBACKUP ..
                  当autobackup别置为on时,rman做任何备份操作,都会自动对控制文件进行备份。


  
&n