RMAN> show all;
RMAN configuration parameters for database with db_unique_name DRZ are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
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 CHANNEL DEVICE TYPE DISK FORMAT '/u01/app/backup/db_%U.rmn';
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRU
E ; # defaultCONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/Oracle/product/11.2.0/db_1/dbs/snapc
f_drz.f'; # default
RMAN> CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 30 DAYS;
RMAN> CONFIGURE RETENTION POLICY TO REDUNDANCY 2;
RMAN> CONFIGURE RETENTION POLICY TO NONE;
RMAN> CONFIGURE RETENTION POLICY CLEAR;
backup optimization:默认值为 off,启用优化后,会按照优化算法进行备份,比如只读表空间不备份等。
RMAN> CONFIGURE BACKUP OPTIMIZATION ON;RMAN> CONFIGURE BACKUP OPTIMIZATION OFF;RMAN> CONFIGURE BACKUP OPTIMIZATION CLEAR;
default device type:默认值为 disk,指定备份到磁盘或者是磁带
RMAN> CONFIGURE DEFAULT DEVICE TYPE TO DISK;
RMAN> CONFIGURE DEFAULT DEVICE TYPE TO STB;
RMAN> CONFIGURE DEFAULT DEVICE TYPE CLEAR;
RMAN> CONFIGURE CONTROLFILE AUTOBACKUP ON;
RMAN> CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/home/oracle/backup/control/cf_%F';
RMAN> CONFIGURE CONTROLFILE AUTOBACKUP CLEAR;
RMAN> CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK CLEAR;
RMAN> CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/backup/contolfile/CF_%F';
RMAN> CONFIGURE SNAPSHOT CONTROLFILE NAME CLEAR;
RMAN> CONFIGURE EXCLUDE FOR TABLESPACE 'EXAMPLE';
RMAN> CONFIGURE EXCLUDE FOR TABLESPACE 'EXAMPLE' CLEAR;
RMAN> CONFIGURE MAXSETSIZE TO nG|nM|nK|UNLIMITED;
RMAN> CONFIGURE MAXSETSIZE CLEAR;
RMAN> show compression algorithm;RMAN configuration parameters for database with db_unique_name DRZ are:CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
RMAN> CONFIGURE COMPRESSION ALGORITHM 'HIGH';
RMAN> CONFIGURE COMPRESSION ALGORITHM 'MEDIUM';RMAN> CONFIGURE COMPRESSION ALGORITHM 'LOW';RMAN> CONFIGURE COMPRESSION ALGORITHM 'BASIC';
run {SET COMPRESSION ALGORITHM 'HIGH/MEDIUM/LOW/BASIC';...}
新闻热点
疑难解答