RMAN 常用的備份指令碼

2021-06-22 09:34:26 字數 1302 閱讀 5562

$ vi backupfull.sh
backupfull.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

1級增量備份指令碼

$ vi incr1.sh
incr1.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

**0backupfull.sh01

**3backupfull.sh301

**1-

2incr1.sh301

**4-

6incr1.sh

上面的內容的意思是週日和週三凌晨1:00執行0級全庫備份,周

一、二、四、五六凌晨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...