RMAN中MAXSETSIZE和MAXPIECESIZE的用法

MAXSETSIZEMAXPIECESIZE用法oracle

區別:maxpiecesize設置的是備份完成後的備份片大小,對備份總體的大小沒有影響,好比一個G的備份完成文件,maxpiecesize設置爲100M,最後就會變成10100M的備份文件。Maxsetsize設置限定的是總體大小,我的認爲這個功能比較雞肋,通常只要沒人動,就用不到的。app

Maxsetsize的寫法:spa

1.orm

RMAN> configure maxsetsize to 2G;form

 

RMAN> run{channel

2> allocate channel c1 device type disk;db

3> backup database format='/u01/app/oracle/oradata/Backup/oradb_%d_%s.bak';tab

4> release channel c1;di

5> }文件

 

2.

run{

allocate channel c1 device type disk ;

backup database maxsetsize 1000M format='/u01/app/oracle/oradata/Backup/oradb_%d_%s_%p.bak';

release channel c1;

}

清除maxsetsize的語句:RMAN> CONFIGURE MAXSETSIZE clear;

Maxpiecesize的寫法:

run{

allocate channel c1 device type disk MAXPIECESIZE 100M;

backup database format='/u01/app/oracle/oradata/Backup/oradb_%d_%s_%p.bak';

release channel c1;

}

而後每一個文件都是100M

[oracle@orcl Backup]$ ls -lh

total 1.2G

-rw-r----- 1 oracle oinstall 100M Dec 24 03:01 oradb_ORCL_117_10.bak

-rw-r----- 1 oracle oinstall 100M Dec 24 03:01 oradb_ORCL_117_11.bak

-rw-r----- 1 oracle oinstall  71M Dec 24 03:01 oradb_ORCL_117_12.bak

-rw-r----- 1 oracle oinstall 100M Dec 24 02:59 oradb_ORCL_117_1.bak

-rw-r----- 1 oracle oinstall 100M Dec 24 02:59 oradb_ORCL_117_2.bak

-rw-r----- 1 oracle oinstall 100M Dec 24 02:59 oradb_ORCL_117_3.bak

-rw-r----- 1 oracle oinstall 100M Dec 24 03:00 oradb_ORCL_117_4.bak

-rw-r----- 1 oracle oinstall 100M Dec 24 03:00 oradb_ORCL_117_5.bak

-rw-r----- 1 oracle oinstall 100M Dec 24 03:00 oradb_ORCL_117_6.bak

-rw-r----- 1 oracle oinstall 100M Dec 24 03:00 oradb_ORCL_117_7.bak

-rw-r----- 1 oracle oinstall 100M Dec 24 03:00 oradb_ORCL_117_8.bak

-rw-r----- 1 oracle oinstall 100M Dec 24 03:00 oradb_ORCL_117_9.bak

-rw-r----- 1 oracle oinstall 9.7M Dec 24 03:01 oradb_ORCL_118_1.bak

相關文章
相關標籤/搜索