$ vi backupfull.shbackupfull.sh檔案的內容為:
# script .:backupfull.sh1級增量備份指令碼# creater:leon_lan
# date:
2012/7
/22# desc: backup
full
database datafile in archive with
rman
# connect
database
export oracle_base
oracle
export oracle_home
10.2.0
/db_1
export oracle_sid
=oms
export path
=$oracle_home/
bin:$path
rman target
/<<
eof_rman
run#
end
$ vi incr1.shincr1.sh檔案的內容為:
# script .:backupfull.sh# creater:leon_lan
# date:
2012/7
/22# desc: backup
full
database datafile in archive with
rman
# connect
database
export oracle_base
oracle
export oracle_home
10.2.0
/db_1
export oracle_sid
=oms
export path
=$oracle_home/
bin:$path
rman target
/<<
eof_rman
run#
end
$ crontab –e01上面的內容的意思是週日和週三凌晨1:00執行0級全庫備份,周**0backupfull.sh01
**3backupfull.sh301
**1-
2incr1.sh301
**4-
6incr1.sh
一、二、四、五六凌晨1:30執行1級增量備份。
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備份指令碼
more backup full xxb.sh database rman backup full run echo begin time date y m d date h m s rq1 date y m d date h m s rman target cmdfile backup run f...
rman增量備份指令碼
配置rman 登入rman rman target rman show all 2 using target database control file instead of recovery catalog rman configuration parameters for database wi...