rman backup database force 功能

paulyibinyi發表於2007-12-21

FORCE
Causes RMAN to ignore backup optimization. In other words, even if CONFIGURE BACKUP OPTIMIZATION is set to ON, RMAN backs up all specified files.

Note: You can also specify this option in the backupSpecOperand clause.
加上FORCE選項,則RMAN忽略調CONFIGURE裡的最佳化功能選項.
比如:你配置了RMAN最佳化功能為ON,之前對只讀表空間作了備份,這時,再備份全庫,不加FORCE.
則RMAN不會備份只讀表空間,因為之前已經備份過,加上FORCE,則RMAN忽略掉最佳化功能,
作全庫備份.

RMAN> show all;

RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION ON;

SQLalter tablespace tools read only;





Tablespace altered.


RMANbackup tablespace tools;





Starting backup at 21-DEC-07


using channel ORA_DISK_1


channel ORA_DISK_1
starting full datafile backupset


channel ORA_DISK_1
specifying datafile(sin backupset


input datafile fno
=00004 name=D:ORACLEORADATAPAULTOOLS01.DBF


channel ORA_DISK_1
starting piece 1 at 21-DEC-07


channel ORA_DISK_1
finished piece 1 at 21-DEC-07


piece handle
=D:BACKUP3IJ454LF_1_1 comment=NONE


channel ORA_DISK_1
backup set completeelapsed time00:00:01


Finished backup at 21
-DEC-07





Starting Control File 
and SPFILE Autobackup at 21-DEC-07


piece handle
=D:BACKUPC-1605165889-20071221-03 comment=NONE


Finished Control File 
and SPFILE Autobackup at 21-DEC-07





RMAN
backup database;





Starting backup at 21-DEC-07


using channel ORA_DISK_1


skipping datafile 4
already backed up 3 time(s)


channel ORA_DISK_1starting full datafile backupset


channel ORA_DISK_1
specifying datafile(sin backupset


input datafile fno
=00001 name=D:ORACLEORADATAPAULSYSTEM01.DBF


input datafile fno
=00002 name=D:ORACLEORADATAPAULUNDOTBS01.DBF


input datafile fno
=00003 name=D:ORACLEORADATAPAULINDX01.DBF


input datafile fno
=00005 name=D:ORACLEORADATAPAULUSERS01.DBF


channel ORA_DISK_1
starting piece 1 at 21-DEC-07


channel ORA_DISK_1
finished piece 1 at 21-DEC-07


piece handle
=D:BACKUP3KJ454M1_1_1 comment=NONE


channel ORA_DISK_1
backup set completeelapsed time00:00:45


Finished backup at 21
-DEC-07





Starting Control File 
and SPFILE Autobackup at 21-DEC-07


piece handle
=D:BACKUPC-1605165889-20071221-04 comment=NONE


Finished Control File 
and SPFILE Autobackup at 21-DEC-07





RMAN
backup database force;





Starting backup at 21-DEC-07


using channel ORA_DISK_1


channel ORA_DISK_1
starting full datafile backupset


channel ORA_DISK_1
specifying datafile(sin backupset


input datafile fno
=00001 name=D:ORACLEORADATAPAULSYSTEM01.DBF


input datafile fno
=00002 name=D:ORACLEORADATAPAULUNDOTBS01.DBF


input datafile fno
=00003 name=D:ORACLEORADATAPAULINDX01.DBF


input datafile fno
=00005 name=D:ORACLEORADATAPAULUSERS01.DBF


input datafile fno
=00004 name=D:ORACLEORADATAPAULTOOLS01.DBF


channel ORA_DISK_1
starting piece 1 at 21-DEC-07


channel ORA_DISK_1
finished piece 1 at 21-DEC-07


piece handle
=D:BACKUP3MJ454NL_1_1 comment=NONE


channel ORA_DISK_1
backup set completeelapsed time00:00:55


Finished backup at 21
-DEC-07





Starting Control File 
and SPFILE Autobackup at 21-DEC-07


piece handle
=D:BACKUPC-1605165889-20071221-05 comment=NONE


Finished Control File 
and SPFILE Autobackup at 21-DEC-07





RMAN
>

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7199859/viewspace-1032/,如需轉載,請註明出處,否則將追究法律責任。

相關文章