ImageVerifierCode 换一换
格式:DOCX , 页数:8 ,大小:21.07KB ,
资源ID:433980      下载积分:10 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.docduoduo.com/d-433980.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录   微博登录 

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(rman-全备与0、1级增量备份.docx)为本站会员(天天快乐)主动上传,道客多多仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知道客多多(发送邮件至docduoduo@163.com或直接QQ联系客服),我们立即给予删除!

rman-全备与0、1级增量备份.docx

1、Rman 全备与 0、1 级增量备份时间: 2013-10-9 分类: ORACLE 备份恢复 作者: Dennis 450 次浏览TAGS: RMAN 增量备份 rman 全备与 0、1 级增量备份1、简单来说, rman 全库备份只需要 backup database;(未压缩),或者 backup as compressed backupset database; (压缩)。即可完全备份,如下:RMAN backup database;Starting backup at 08-OCT-13using target database control file instead of rec

2、overy catalogallocated channel: ORA_DISK_1channel ORA_DISK_1: SID=34 device type=DISKchannel ORA_DISK_1: starting full datafile backup setchannel ORA_DISK_1: specifying datafile(s) in backup setinput datafile file number=00001 name=/u01/app/oracle/oradata/orcl/system01.dbfinput datafile file number=

3、00002 name=/u01/app/oracle/oradata/orcl/sysaux01.dbfinput datafile file number=00003 name=/u01/app/oracle/oradata/orcl/undotbs01.dbfinput datafile file number=00004 name=/u01/app/oracle/oradata/orcl/users01.dbfchannel ORA_DISK_1: starting piece 1 at 08-OCT-13channel ORA_DISK_1: finished piece 1 at 0

4、8-OCT-13piece handle=/u01/app/oracle/fast_recovery_area/ORCL/backupset/2013_10_08/o1_mf_nnndf_TAG20131008T221828_95851ofr_.bkp tag=TAG20131008T221828 comment=NONEchannel ORA_DISK_1: backup set complete, elapsed time: 00:00:55channel ORA_DISK_1: starting full datafile backup setchannel ORA_DISK_1: sp

5、ecifying datafile(s) in backup setincluding current control file in backup setincluding current SPFILE in backup setchannel ORA_DISK_1: starting piece 1 at 08-OCT-13channel ORA_DISK_1: finished piece 1 at 08-OCT-13piece handle=/u01/app/oracle/fast_recovery_area/ORCL/backupset/2013_10_08/o1_mf_ncsnf_

6、TAG20131008T221828_95853fmr_.bkp tag=TAG20131008T221828 comment=NONEchannel ORA_DISK_1: backup set complete, elapsed time: 00:00:01Finished backup at 08-OCT-13RMAN可以看出备份集以及备份保存路径等信息,这部分信息都在 show all;的参数中进行设置,这里都是默认的参数;由于是 nocatalog 模式,备份信息都存在控制文件中.可以使用操作系统命令查看相关的控制文件信息:oracleoracledba $strings /u01/

7、app/oracle/oradata/orcl/control01.ctlDISK/u01/app/oracle/fast_recovery_area/ORCL/backupset/2013_10_08/o1_mf_nnndf_TAG20131008T221828_95851ofr_.bkpTAG20131008T221828DISK/u01/app/oracle/fast_recovery_area/ORCL/backupset/2013_10_08/o1_mf_ncsnf_TAG20131008T221828_95853fmr_.bkpTAG20131008T221828DISK/u01/

8、app/oracle/fast_recovery_area/ORCL/backupset/2013_10_08/o1_mf_nnndf_TAG20131008T221828_95851ofr_.bkpTAG20131008T221828使用 list backupset;命令查看备份信息:RMAN list backupset;using target database control file instead of recovery catalogList of Backup Sets=BS Key Type LV Size Device Type Elapsed Time Completi

9、on Time- - - - - - -1 Full 1.03G DISK 00:00:50 08-OCT-13 BP Key: 1 Status: AVAILABLE Compressed: NO Tag: TAG20131008T221828Piece Name: /u01/app/oracle/fast_recovery_area/ORCL/backupset/2013_10_08/o1_mf_nnndf_TAG20131008T221828_95851ofr_.bkpList of Datafiles in backup set 1File LV Type Ckp SCN Ckp Ti

10、me Name- - - - - -1 Full 1059012 08-OCT-13 /u01/app/oracle/oradata/orcl/system01.dbf2 Full 1059012 08-OCT-13 /u01/app/oracle/oradata/orcl/sysaux01.dbf3 Full 1059012 08-OCT-13 /u01/app/oracle/oradata/orcl/undotbs01.dbf4 Full 1059012 08-OCT-13 /u01/app/oracle/oradata/orcl/users01.dbfBS Key Type LV Siz

11、e Device Type Elapsed Time Completion Time- - - - - - -2 Full 9.36M DISK 00:00:01 08-OCT-13 BP Key: 2 Status: AVAILABLE Compressed: NO Tag: TAG20131008T221828Piece Name: /u01/app/oracle/fast_recovery_area/ORCL/backupset/2013_10_08/o1_mf_ncsnf_TAG20131008T221828_95853fmr_.bkpSPFILE Included: Modifica

12、tion time: 08-OCT-13SPFILE db_unique_name: ORCLControl File Included: Ckp SCN: 1059037 Ckp time: 08-OCT-13RMAN可以看出有两个备份集,每个备份集有一个备份片,恢复的时候需要用到这两个备份,可以把文件拷贝到其他目录或者磁带上保存,需要恢复的时候拷贝到原始备份的目录(即控制文件中记录的目录)即可恢复!如果需要压缩备份全库及归档日志可以执行如下命令:backup as compressed backupset database plus archivelog;2、rman 0 级增量备份:其实

13、全备和 0 级增量备份都是全备,但是也是有区别的,0 级增量备份可以用于增量备份恢复的基础,而单独的全备不能用于增量备份的恢复基础!0 级增量备份的命令如下:RMAN backup incremental level 0 database;或者RMAN backup incremental level= 0 database;RMAN backup incremental level 0 database;Starting backup at 08-OCT-13using channel ORA_DISK_1channel ORA_DISK_1: starting incremental le

14、vel 0 datafile backup setchannel ORA_DISK_1: specifying datafile(s) in backup setinput datafile file number=00001 name=/u01/app/oracle/oradata/orcl/system01.dbfinput datafile file number=00002 name=/u01/app/oracle/oradata/orcl/sysaux01.dbfinput datafile file number=00003 name=/u01/app/oracle/oradata

15、/orcl/undotbs01.dbfinput datafile file number=00004 name=/u01/app/oracle/oradata/orcl/users01.dbfchannel ORA_DISK_1: starting piece 1 at 08-OCT-13channel ORA_DISK_1: finished piece 1 at 08-OCT-13piece handle=/u01/app/oracle/fast_recovery_area/ORCL/backupset/2013_10_08/o1_mf_nnnd0_TAG20131008T225334_

16、95873gfh_.bkp tag=TAG20131008T225334 comment=NONEchannel ORA_DISK_1: backup set complete, elapsed time: 00:00:45channel ORA_DISK_1: starting incremental level 0 datafile backup setchannel ORA_DISK_1: specifying datafile(s) in backup setincluding current control file in backup setincluding current SP

17、FILE in backup setchannel ORA_DISK_1: starting piece 1 at 08-OCT-13channel ORA_DISK_1: finished piece 1 at 08-OCT-13piece handle=/u01/app/oracle/fast_recovery_area/ORCL/backupset/2013_10_08/o1_mf_ncsn0_TAG20131008T225334_95874wqs_.bkp tag=TAG20131008T225334 comment=NONEchannel ORA_DISK_1: backup set

18、 complete, elapsed time: 00:00:01Finished backup at 08-OCT-13RMAN list backupset;List of Backup Sets=BS Key Type LV Size Device Type Elapsed Time Completion Time- - - - - - -4 Incr 0 1.03G DISK 00:00:43 08-OCT-13 BP Key: 4 Status: AVAILABLE Compressed: NO Tag: TAG20131008T225334Piece Name: /u01/app/

19、oracle/fast_recovery_area/ORCL/backupset/2013_10_08/o1_mf_nnnd0_TAG20131008T225334_95873gfh_.bkpList of Datafiles in backup set 4File LV Type Ckp SCN Ckp Time Name- - - - - -1 0 Incr 1060153 08-OCT-13 /u01/app/oracle/oradata/orcl/system01.dbf2 0 Incr 1060153 08-OCT-13 /u01/app/oracle/oradata/orcl/sy

20、saux01.dbf3 0 Incr 1060153 08-OCT-13 /u01/app/oracle/oradata/orcl/undotbs01.dbf4 0 Incr 1060153 08-OCT-13 /u01/app/oracle/oradata/orcl/users01.dbfBS Key Type LV Size Device Type Elapsed Time Completion Time- - - - - - -5 Incr 0 9.36M DISK 00:00:01 08-OCT-13 BP Key: 5 Status: AVAILABLE Compressed: NO

21、 Tag: TAG20131008T225334Piece Name: /u01/app/oracle/fast_recovery_area/ORCL/backupset/2013_10_08/o1_mf_ncsn0_TAG20131008T225334_95874wqs_.bkpSPFILE Included: Modification time: 08-OCT-13SPFILE db_unique_name: ORCLControl File Included: Ckp SCN: 1060170 Ckp time: 08-OCT-13list backupset 结果可以看出,全备和 0

22、级增量备份在 type 上的区别!同理,可以对数据库做 1 级增量备份,命令如下:RMAN backup incremental level 1 database;此时 rman 需要对比 0 级增量备份后到执行 1 级增量备份时候的数据变化情况,备份出来的备份大小由数据更改的多少而定!RMAN backup incremental level 1 database;Starting backup at 08-OCT-13using channel ORA_DISK_1channel ORA_DISK_1: starting incremental level 1 datafile backu

23、p setchannel ORA_DISK_1: specifying datafile(s) in backup setinput datafile file number=00001 name=/u01/app/oracle/oradata/orcl/system01.dbfinput datafile file number=00002 name=/u01/app/oracle/oradata/orcl/sysaux01.dbfinput datafile file number=00003 name=/u01/app/oracle/oradata/orcl/undotbs01.dbfi

24、nput datafile file number=00004 name=/u01/app/oracle/oradata/orcl/users01.dbfchannel ORA_DISK_1: starting piece 1 at 08-OCT-13channel ORA_DISK_1: finished piece 1 at 08-OCT-13piece handle=/u01/app/oracle/fast_recovery_area/ORCL/backupset/2013_10_08/o1_mf_nnnd1_TAG20131008T230442_9587rd4t_.bkp tag=TA

25、G20131008T230442 comment=NONEchannel ORA_DISK_1: backup set complete, elapsed time: 00:00:35channel ORA_DISK_1: starting incremental level 1 datafile backup setchannel ORA_DISK_1: specifying datafile(s) in backup setincluding current control file in backup setincluding current SPFILE in backup setch

26、annel ORA_DISK_1: starting piece 1 at 08-OCT-13channel ORA_DISK_1: finished piece 1 at 08-OCT-13piece handle=/u01/app/oracle/fast_recovery_area/ORCL/backupset/2013_10_08/o1_mf_ncsn1_TAG20131008T230442_9587shm2_.bkp tag=TAG20131008T230442 comment=NONEchannel ORA_DISK_1: backup set complete, elapsed t

27、ime: 00:00:01Finished backup at 08-OCT-13RMAN list backupset;List of Backup Sets=BS Key Type LV Size Device Type Elapsed Time Completion Time- - - - - - -4 Incr 0 1.03G DISK 00:00:43 08-OCT-13 BP Key: 4 Status: AVAILABLE Compressed: NO Tag: TAG20131008T225334Piece Name: /u01/app/oracle/fast_recovery

28、_area/ORCL/backupset/2013_10_08/o1_mf_nnnd0_TAG20131008T225334_95873gfh_.bkpList of Datafiles in backup set 4File LV Type Ckp SCN Ckp Time Name- - - - - -1 0 Incr 1060153 08-OCT-13 /u01/app/oracle/oradata/orcl/system01.dbf2 0 Incr 1060153 08-OCT-13 /u01/app/oracle/oradata/orcl/sysaux01.dbf3 0 Incr 1

29、060153 08-OCT-13 /u01/app/oracle/oradata/orcl/undotbs01.dbf4 0 Incr 1060153 08-OCT-13 /u01/app/oracle/oradata/orcl/users01.dbfBS Key Type LV Size Device Type Elapsed Time Completion Time- - - - - - -5 Incr 0 9.36M DISK 00:00:01 08-OCT-13 BP Key: 5 Status: AVAILABLE Compressed: NO Tag: TAG20131008T22

30、5334Piece Name: /u01/app/oracle/fast_recovery_area/ORCL/backupset/2013_10_08/o1_mf_ncsn0_TAG20131008T225334_95874wqs_.bkpSPFILE Included: Modification time: 08-OCT-13SPFILE db_unique_name: ORCLControl File Included: Ckp SCN: 1060170 Ckp time: 08-OCT-13BS Key Type LV Size Device Type Elapsed Time Com

31、pletion Time- - - - - - -6 Incr 1 8.53M DISK 00:00:26 08-OCT-13 BP Key: 6 Status: AVAILABLE Compressed: NO Tag: TAG20131008T230442Piece Name: /u01/app/oracle/fast_recovery_area/ORCL/backupset/2013_10_08/o1_mf_nnnd1_TAG20131008T230442_9587rd4t_.bkpList of Datafiles in backup set 6File LV Type Ckp SCN

32、 Ckp Time Name- - - - - -1 1 Incr 1060699 08-OCT-13 /u01/app/oracle/oradata/orcl/system01.dbf2 1 Incr 1060699 08-OCT-13 /u01/app/oracle/oradata/orcl/sysaux01.dbf3 1 Incr 1060699 08-OCT-13 /u01/app/oracle/oradata/orcl/undotbs01.dbf4 1 Incr 1060699 08-OCT-13 /u01/app/oracle/oradata/orcl/users01.dbfBS

33、Key Type LV Size Device Type Elapsed Time Completion Time- - - - - - -7 Incr 1 9.36M DISK 00:00:01 08-OCT-13 BP Key: 7 Status: AVAILABLE Compressed: NO Tag: TAG20131008T230442Piece Name: /u01/app/oracle/fast_recovery_area/ORCL/backupset/2013_10_08/o1_mf_ncsn1_TAG20131008T230442_9587shm2_.bkpSPFILE Included: Modification time: 08-OCT-13SPFILE db_unique_name: ORCLControl File Included: Ckp SCN: 1060711 Ckp time: 08-OCT-13RMAN以上 3 种备份生成的文件,可以通过 list backupset 命令查看相关区别!同样备份信息可以在控制文件中查看!

本站链接:文库   一言   我酷   合作


客服QQ:2549714901微博号:道客多多官方知乎号:道客多多

经营许可证编号: 粤ICP备2021046453号世界地图

道客多多©版权所有2020-2025营业执照举报