rman 全庫備份

全庫備份腳本,包括歸檔日誌及控制文件、SPFILE參數文件
[oracle@~]$ cat fullback.sh 
#!/bin/sh
source /home/oracle/.bash_profile
rman   log /opt/uniload/oracle/backup/log/backfull-`date +%Y%m%d-%H%M`.log <<EOF
connect target /;
run {
backup full tag 'bys001-full' database
format "/opt/uniload/oracle/backup/full_back/bys001full_%d_%t_%s"
plus archivelog
format "/opt/uniload/oracle/backup/full_back/bys001arch_%d_%t_%s"
delete all input;
}
exit
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章