RMAN中常用configure命令

2021-08-29 10:49:17 字數 3024 閱讀 1595

1 顯示當前的配置資訊

*************************==

1.01 rman> show all;

1.02 查詢rman設定中非預設值:

sql> select name,value from v$rman_configure;

2. 常用的configure選項

*************************==

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;

RMAN常用備份操作

rman常用備份操作 備份引數檔案,spfile backup spfile backup spfile format bak sp.bmp backup spfile format db sp.ora backup as copy spfile backup as copy spfile form...

RMAN常用備份指令碼

1.基本0的增量備份 create script.b whole inc0 2.基本1的增量備份 create script.b whole inc1 3.基本2的增量備份 create script.b whole inc2 4.歸檔當前的重做日誌組 create script.archive l...

RMAN常用的命令

單命令僅僅在rman提示符下執行 單獨被執行 不能夠作為run的子命令 如backup database 下列命令不能用作批命令來使用 connect configure create catalog,drop catalog,upgrade catalog create script,delete...