关于RMAN 中 backup backupset (备份集的备份) 的讨论 总结
上一篇 / 下一篇 2008-06-27 17:07:16 / 个人分类:Oracle - 备份与恢复
ITPUB个人空间h,T0K+}'X+d;l-p*Xx
------------------------------------------------------------------------------ITPUB个人空间:e+h:uGA
问题:ITPUB个人空间~Xd6w-yIk
------------------------------------------------------------------------------
请教RMAN中备份集的备份如何恢复?
在RMAN中可以用以下命令对备份集进行备份:ITPUB个人空间!b3NgN#w2PH!Oz0M?
备份所有备份集:
~\7S"V4XT+u4?.|"~C0 RMAN> backup backupset all;
,N1V%ejG4GL0 备份指定备份集:ITPUB个人空间GN_F!L,x
RMAN> backup backupset bs_num;
请问,如何对其做恢复操作?我上网查了好久都没找到相应命令,特请教各位大侠!
我一同事看到这几个命令,问起我,我也觉得有些疑惑,所以发帖相问。谢谢各位!
------------------------------------------------------------------------------
D(Tn1Ma0查资料
Qkb4|B'n @A0------------------------------------------------------------------------------
%NEP_yR }%i4Vg0查了一下 Oracle9i Database: Advanced Backup and Recovery Using RMAN
备份集备份的目的: 主要用于改变备份集的位置,或者创建多个镜像备份,比如将备份集从硬盘备份到磁带。
? This feature allows RMAN to change the locationITPUB个人空间 ksB9nK(?1k
of a backup set.
sq/feoow0? The source location for this command must beITPUB个人空间 L ~/u{#m7J;z
disk, however, the destination can be DISK or SBT.
ITPUB个人空间#w#K0R8?
gu&|+{F
`+a4w
BACKUP... BACKUPSET <key|CompletedTimeSpec|ALL>ITPUB个人空间~'x?vY.O"Z\nV
RMAN> BACKUP backupSET CREATED BEFORE 'sysdate – 1'ITPUB个人空间o;q6Yykd2]
2> DELETE INPUT;
Backing Up Backup Sets
-j&StW(}*c9n0 You can back up backup sets from disk to tape or from disk to disk. If RMAN discovers aITPUB个人空间Ow6x#d~Mbp1[
corrupt block or missing backup piece during the backup, then RMAN automatically performsITPUB个人空间+c`1G~2\s
failover to an existing intact copy. The BACKUP BACKUPSET command uses the default disk
_Q@%@-zV0channel to copy backup sets from disk to disk. To back up from disk to tape, you must either
+I-DY^"L0manually allocate a channel of DEVICE TYPE SBT or configure an automatic sbt channel.ITPUB个人空间/q7S \6dh2Z+dI
The BACKUP BACKUPSET command is a useful way to spread backups among multiple media.ITPUB个人空间I*u(r6ni oaI
For example, you can execute the following BACKUP command weekly as part of the productionITPUB个人空间1?,HF;y-X
SYwG
backup schedule:
^:IXU'Y6h|Y#GV0 RMAN> BACKUP DEVICE TYPE SBT BACKUPSET ALL;ITPUB个人空间'k:A7`vSM-r:_6F
Now your backups exist on both disk and tape. You can also duplex backups of backup sets
&R-N3s"fw*{Yh0(except for control file autobackups), as in this example:ITPUB个人空间q*o
f&?qyT,c"V
RMAN> BACKUP COPIES 2 DEVICE TYPE sbt BACKUPSET ALL;ITPUB个人空间0P(NiK8OD
]*}9?
Note: If backup optimization is enabled when you issue the command to back up a backup set