恢復目錄資料庫備份指令碼

li__hl8888發表於2016-05-20
Linux系統,整個備份過程大約持續了5個小時左右,備份出來的容量如下:
[oracle@sms backup]$ du -sk
1448023700      .
備份指令碼:
run{
allocate channel d1 type disk maxpiecesize=50G;
allocate channel d2 type disk maxpiecesize=50G;
backup full database filesperset 10 include current controlfile format '/backup/fullbak_%d_%T_%s_%p'
plus archivelog format '/backup/archbak_%d_%T_%s' delete all input;
release channel d1;
release channel d2;
}
備份自9:30開始:

Recovery Manager: Release 10.2.0.2.0 - Production on Wed Sep 9 21:30:23 2009
RMAN> run{
2> allocate channel d1 type disk maxpiecesize=50G;
3> allocate channel d2 type disk maxpiecesize=50G;
4> backup full database filesperset 10 include current controlfile format '/backup/fullbak_%d_%T_%s_%p'
5> plus archivelog format '/backup/archbak_%d_%T_%s' delete all input;
6> release channel d1;
7> release channel d2;
8> }
9>
using target database control file instead of recovery catalog
allocated channel: d1
channel d1: sid=819 instance=oradb1 devtype=DISK

allocated channel: d2
channel d2: sid=799 instance=oradb1 devtype=DISK


Starting backup at 09-SEP-09
current log archived
channel d1: starting archive log backupset
channel d1: specifying archive log(s) in backup set
input archive log thread=1 sequence=39695 recid=82786 stamp=697023074
input archive log thread=1 sequence=39696 recid=82789 stamp=697024187

結束時間是 Sep 10 02:43,五個小時左右。

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8568259/viewspace-2103734/,如需轉載,請註明出處,否則將追究法律責任。

相關文章