rman configure
------------------------------------------------------------
--configure (配置RMAN的default設定)
------------------------------------
--1 顯示當前的configure
RMAN> show all;
RMAN configuration parameters 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; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
RMAN configuration has no stored or default parameters
RMAN configuration has no stored or default parameters
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/9.2.0/dbs/snapcf_uw920A.f'; # default
RMAN>
---------------------
--2. configure command
---------------------------------------------------------------------------
2.01 retention policy
configure retention policy to recovery window of 3 days;
configure retention policy to redundancy 3;
configure retention policy clear;
2.02 backup optimization
configure backup optimization on;
configure backup optimization off;
configure backup optimization clear;
2.03 default device type
configure default device type to disk;
configure default device type to stb;
configure default device type clear;
2.04 controlfile
configure controlfile autobackup on;
configure controlfile autobackup format for device type disk to '/cfs01/backup/conf/conf_%F';
configure controlfile autobackup clear;
configrue controlfile autobackup format for device type disk clear;
configrue snapshot controlfile name to '/cfs01/backup/snapcf/scontrofile.snp';
configrue snapshot controlfile name clear;
2.05 device type disk|stb pallelism n
configure device type disk|stb parallelism 2;
configure device type disk|stb clear;
configure channel device type disk format 'e:rmanback_%U';
configure channel device type disk maxpiecesize 100m
configure channel device type disk rate 1200K
configure channel 1 device type disk format 'e:rmanback_%U';
configure channel 2 device type disk format 'e:rmanback_%U';
configure channel 1 device type disk maxpiecesize 100m
2.06 datafile|archivelog backup copies
configure datafile backup copies for device type disk|stb to 3;
configure archivelog backup copies for device type disk|stb to 3;
configure datafile|archivelog backup copies for device type disk|stb clear
BACKUP DEVICE TYPE DISK DATABASE
FORMAT '/disk1/backup/%U', '/disk2/backup/%U', '/disk3/backup/%U';
2.07 exclude
configure exclude for tablespace 'users';
configrue exclude clear;
2.08 maxsetsize
configure maxsetsize to 1G|1000M|1000000K|unlimited;
configure maxsetsize clear;
2.09 auxiliary
CONFIGURE AUXNAME FOR DATAFILE 1 TO '/oracle/auxfiles/aux_1.f';
CONFIGURE AUXNAME FOR DATAFILE 2 TO '/oracle/auxfiles/aux_2.f';
CONFIGURE AUXNAME FOR DATAFILE 3 TO '/oracle/auxfiles/aux_3.f';
CONFIGURE AUXNAME FOR DATAFILE 4 TO '/oracle/auxfiles/aux_4.f';
---------
CONFIGURE AUXNAME FOR DATAFILE 1 CLEAR;
CONFIGURE AUXNAME FOR DATAFILE 2 CLEAR;
CONFIGURE AUXNAME FOR DATAFILE 3 CLEAR;
CONFIGURE AUXNAME FOR DATAFILE 4 CLEAR;
e.g.
-------------------
RMAN> show all;
RMAN configuration parameters 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; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
RMAN configuration has no stored or default parameters
RMAN configuration has no stored or default parameters
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/9.2.0/dbs/snapcf_uw920A.f'; # default
RMAN> CONFIGURE DEVICE TYPE DISK PARALLELISM 3;
new RMAN configuration parameters:
CONFIGURE DEVICE TYPE DISK PARALLELISM 3;
new RMAN configuration parameters are successfully stored
released channel: ORA_DISK_1
RMAN> CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT '/cfs01/%U';
new RMAN configuration parameters:
CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT '/cfs01/%U';
new RMAN configuration parameters are successfully stored
RMAN> CONFIGURE CHANNEL 2 DEVICE TYPE DISK FORMAT '/cfs01/%U';
new RMAN configuration parameters:
CONFIGURE CHANNEL 2 DEVICE TYPE DISK FORMAT '/cfs01/%U';
new RMAN configuration parameters are successfully stored
RMAN> show all;
RMAN configuration parameters 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 3;
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT '/cfs01/%U';
CONFIGURE CHANNEL 2 DEVICE TYPE DISK FORMAT '/cfs01/%U';
RMAN configuration has no stored or default parameters
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/9.2.0/dbs/snapcf_uw920A.f'; # default
RMAN> CONFIGURE CHANNEL DEVICE TYPE disk clear;
old RMAN configuration parameters are successfully deleted
RMAN> show all;
RMAN configuration parameters 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 3;
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT '/cfs01/%U';
CONFIGURE CHANNEL 2 DEVICE TYPE DISK FORMAT '/cfs01/%U';
RMAN configuration has no stored or default parameters
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/9.2.0/dbs/snapcf_uw920A.f'; # default
RMAN> CONFIGURE CHANNEL 1 DEVICE TYPE DISK clear;
old RMAN configuration parameters:
CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT '/cfs01/%U';
old RMAN configuration parameters are successfully deleted
RMAN> CONFIGURE CHANNEL 2 DEVICE TYPE DISK clear;
old RMAN configuration parameters:
CONFIGURE CHANNEL 2 DEVICE TYPE DISK FORMAT '/cfs01/%U';
old RMAN configuration parameters are successfully deleted
RMAN> CONFIGURE DEVICE TYPE DISK clear;
old RMAN configuration parameters:
CONFIGURE DEVICE TYPE DISK PARALLELISM 3;
RMAN configuration parameters are successfully reset to default value
RMAN> show all;
RMAN configuration parameters 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; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
RMAN configuration has no stored or default parameters
RMAN configuration has no stored or default parameters
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/9.2.0/dbs/snapcf_uw920A.f'; # default
RMAN>
come from:http://vongates.itpub.net/post/2553/19393
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/90618/viewspace-681556/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- rman:configure exclude for tablespace ...
- rman configure exclude測試!
- Oracle RMAN CONFIGURE命令配置Oracle
- rman configure配置彙總及原理
- RMAN的CONFIGURE配置和FORMAT字串格式化ORM字串格式化
- Oracle Rman 命令詳解(List report backup configure)Oracle
- RMAN說,我能備份(15)--RMAN中的字串定義和CONFIGURE命令字串
- RMAN命令configure,report,list,crosscheck,delete的使用方法ROSdelete
- Oracle OCP 1Z0 053 Q652(RMAN Configure Rate)Oracle
- oracle 11g rman configure retention policy to recovery window of days系列一Oracle
- Oracle OCP 1Z0 053 Q301(RMAN Configure Compressed Backupset)Oracle
- set autotrace on [configure]
- ./configure 幫助
- oracle10g data guard(dg)__歸檔日誌備份刪除相關策略_rman_configureOracle
- docker install and configureDocker
- configure shared serverServer
- mysql configure 引數MySql
- configure net card in Solaris
- Xenomai-2.6.0-configureAI
- rlwrap ./configure報錯configure: WARNING: No termcap nor curses library found
- Configure innodb 表空間
- Cenots 7 Configure static IP
- configure Django db settingDjango
- Configure In-Memory HTTP ReplicationHTTP
- configure ssh service in linux :Linux
- configure vnc server in linuxVNCServerLinux
- not found the actionForm name in action configureORM
- liferay 5.11 configure
- Configure BI Java ConnectorsJava
- How to Configure a New Plant in SAP?
- Unable to boot ApiServiceProvider configure..bootAPIIDE
- Oracle Linux 7 Configure DNSOracleLinuxDNS
- 【Autofs】How to Configure Autofs on CentOS 7?CentOS
- Configure Pi as simulation hardware for Simulink
- GoldenGate<二> configure data pumpGo
- 9I Catalog Configure
- Configure swagger with spring bootSwaggerSpring Boot
- ./configure,make,make install的作用