Paul's Notes

日拱一卒 | 学习、思考

Oracle数据库备份与恢复 - RMAN配置参数
在RMAN中有一系列的默认配置,这些配置决定了备份和恢复时各个方面的选项
你可以使用SHOWCONFIGURE来查看修改RMAN的配置参数。

SHOW ALL命令查看所有的RMAN配置
RMAN> SHOW ALL;

using target database control file instead of recovery catalog
RMAN configuration parameters for database with db_unique_name PTIAN 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 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 TRUE ; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'E:\APP\TIANPAN\PRODUCT\11.2.0\DBHOME_1\DATABASE\SNCFPTIAN.ORA'; # default

RMAN>
配置项后面加了# default的表示该项为初始配置,未被修改过。
SHOW出来的输出保存后,以后可以直接执行,这样就其实就可以重新恢复配置。

SHOW ...命令查看特定的RMAN配置
RMAN> SHOW RETENTION POLICY;

using target database control file instead of recovery catalog
RMAN configuration parameters for database with db_unique_name PTIAN are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default

RMAN> SHOW DEFAULT DEVICE TYPE;

RMAN configuration parameters for database with db_unique_name PTIAN are:
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default

RMAN>

CONFIGURE ... CLEAR恢复RMAN默认配置
你还可以使用CONFIGURE ... CLEAR命令把RMAN配置恢复成默认配置。
RMAN> CONFIGURE BACKUP OPTIMIZATION ON;

new RMAN configuration parameters:
CONFIGURE BACKUP OPTIMIZATION ON;
new RMAN configuration parameters are successfully stored

RMAN> CONFIGURE BACKUP OPTIMIZATION CLEAR;

old RMAN configuration parameters:
CONFIGURE BACKUP OPTIMIZATION ON;
RMAN configuration parameters are successfully reset to default value

RMAN> show BACKUP OPTIMIZATION;

RMAN configuration parameters for database with db_unique_name PTIAN are:
CONFIGURE BACKUP OPTIMIZATION OFF; # default

RMAN>


具体的各个RMAN配置参数的意思可以参考Oracle官方文档的说明:Configuring the RMAN Environment


阅读更多
版权声明:转载请以链接形式注明出处 https://blog.csdn.net/pan_tian/article/details/46828185
个人分类: Oracle RMAN
想对作者说点什么? 我来说一句

oracle数据库RMAN备份方案

2017年11月07日 171KB 下载

没有更多推荐了,返回首页

不良信息举报

Oracle数据库备份与恢复 - RMAN配置参数

最多只允许输入30个字

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭