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

1451人阅读 评论(0) 收藏 举报
分类:
在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


0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:4365926次
    • 积分:47836
    • 等级:
    • 排名:第67名
    • 原创:903篇
    • 转载:54篇
    • 译文:5篇
    • 评论:338条