1. 程式人生 > >Linux RAC環境下的備份腳本

Linux RAC環境下的備份腳本

all tab ros bsp current tro release delet lte

run{ crosscheck archivelog all; allocate channel c1 device type disk connect sys/oracle@node1 maxpiecessize = 200000m; allocate channel c2 device type disk connect sys/oracle@node2 maxpiecessize = 200000m; sql 'alter system archive log current thread 1 current'; sql 'alter system archive log current thread 2 current'; backup incremental level 0 tag 'inc_0' database format '/oracle/archivelog/arch1/ora_rman/peppdb_%p_%s_%t.bak' filepserset 10 include current controlfile plus archivelog format '/oracle/archive/arch1/ora_rman/peppdb_arc%p_%s_%t.bak' filepserset 10 delete all input; delete obsolete; release channel c1; release channel c2; }



PS:來源《Oracle高性能自動化運維》

Linux RAC環境下的備份腳本