rman配置的查看、清除

简介: 说明:rman配置的查看作为备份需要掌握的最基本的内容,以下是简单的查看和清除rman配置的选项  一、显示所有的rman 配置 SHOW ALL;    RMAN configuration parameters f...

说明:rman配置的查看作为备份需要掌握的最基本的内容,以下是简单的查看和清除rman配置的选项

 

一、显示所有的rman 配置

SHOW ALL;

   

 RMAN configuration parameters for database with db_unique_name PROD1 are:

   

CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 3 DAYS;

   

CONFIGURE BACKUP OPTIMIZATION ON;

   

CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default

   

CONFIGURE CONTROLFILE AUTOBACKUP ON;

   

CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO '%F'; # default

   

CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default

   

CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 2 BACKUP TYPE TO COMPRESSED BACKUPSET;

   

CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default

   

CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default

   

CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default

   

CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default

   

CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default

   

CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_DEVICE=tape1)';

   

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 '/disk1/oracle/dbs/snapcf_ev.f'; # default

 

二、显示指定的rman备份选项

SHOW RETENTION POLICY;

 

SHOW DEFAULT DEVICE TYPE;

 

例子:

RMAN> SHOW DEFAULT DEVICE TYPE;

   

RMAN configuration parameters for database with db_unique_name ORCL are:

CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default

 

三、清除rman的配置恢复到默认值

CONFIGURE BACKUP OPTIMIZATION CLEAR;

 

CONFIGURE RETENTION POLICY CLEAR;

 

CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK CLEAR;

例子:

RMAN> CONFIGURE RETENTION POLICY CLEAR;

   

RMAN configuration parameters are successfully reset to default value

 

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

本文作者:JOHN

ORACLE技术博客:ORACLE 猎人笔记               数据库技术群:367875324 (请备注ORACLE管理 )  

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

相关文章
|
7月前
|
Oracle 关系型数据库 数据库
rman 恢复脚本
rman 恢复脚本
74 1
|
数据库 SQL 关系型数据库
|
监控 Oracle 关系型数据库
RMAN 配置归档日志删除策略
        Oracle 11g中对于归档日志的删除,除了遵循RMAN保留策略外,也可以通过RMAN来配置归档日志的删除策略,也就是归档日志何时可以被删除。
1486 0
|
监控 Oracle 关系型数据库
|
Oracle 关系型数据库 数据库管理
|
Oracle 关系型数据库 数据库
|
SQL 监控 Oracle