rman備份指令碼

2022-05-17 12:59:57 字數 869 閱讀 5594

$ 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_full.sh >/backup/full.log

rq2=`date '+%y/%m/%d'`" "`date '+%h:%m:%s'`

echo "rman time : "$rq1"---"$rq2 >>/backup/full.log

$ more run_full.sh

runrun

exit;

排除某個表空間可以使用類似如下命令:

configure exclude for tablespace users;

如果想取消排除設定則可以使用如下命令:

configure exclude for tablespace users clear;

此外常用的排除備份命令還有:

backup database skip readonly, skip offline;

configure exclude for tablespace users;

configrue exclude clear; --清除設定

backup database noexclude; --會備份users表空間

此命令用於將指定的表空間不備份到備份集中。

rman> configure exclude for tablespace users;

rman增量備份指令碼

配置rman 登入rman rman target rman show all 2 using target database control file instead of recovery catalog rman configuration parameters for database wi...

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 常用的備份指令碼

vi backupfull.shbackupfull.sh檔案的內容為 script backupfull.sh creater leon lan date 2012 7 22 desc backup full database datafile in archive with rman conne...