在不同情况下使用RMAN对ORACLE数据库进行恢复.docVIP

在不同情况下使用RMAN对ORACLE数据库进行恢复.doc

  1. 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
在不同情况下使用RMAN对ORACLE数据库进行恢复

1. 全数据库的完全恢复 ?? run ??? { allocate channel c11 type disk; ????? allocate channel c12 type disk; ????? allocate channel c21 type sbt_tape; ????? allocate channel c22 type sbt_tape;restore controlfile; alter database mount; ????? restore database;????????????? ????? recover database;????????????? ????? sql alter database open;???? ????? release channel c11; ????? release channel c12; ????? release channel c21; ????? release channel c22; ???? } 恢复步骤如下: $ svrmgrl svrmgr connect internal svrmgr startup mount $ rmanprod recdbs.rcv rec.log $ tail –f rec.log??? # 观察日志 ? ??? 使用以上以上的全备份可以对数据库进行全库的恢复,并可以在恢复脚本中直接实现数据库归档日志的应用,将数据库自动恢复到最近的日志记录的状态。 ??? 注意:恢复时如果有需要应用很多归档日志,则应用该日志时时间会比较长,一定要耐心等待。 全恢复日志如下: ? Recovery Manager: Release 8.0.5.2.1 - Production ? RMAN-00569: ================error message stack follows================ RMAN-00554: initialization of internal recovery manager package failed RMAN-04005: error from target database: ORA-01034: ORACLE not available ? Recovery Manager: Release 8.0.5.2.1 - Production ? RMAN-06005: connected to target database: FJTEST RMAN-06008: connected to recovery catalog database ? RMAN run 2 { 3?? allocate channel c11 type disk; 4?? allocate channel c12 type disk; 5?? allocate channel c21 type sbt_tape; 6?? allocate channel c22 type sbt_tape; 7?? restore database; 8?? recover database; 9?? sql alter database open; 10?? release channel c11; 11?? release channel c12; 12?? release channel c21; 13?? release channel c22; 14 } 15 RMAN-03022: compiling command: allocate RMAN-03023: executing command: allocate RMAN-08030: allocated channel: c11 RMAN-08500: channel c11: sid=13 devtype=DISK ? RMAN-03022: compiling command: allocate RMAN-03023: executing command: allocate RMAN-08030: allocated channel: c12 RMAN-08500: channel c12: sid=14 devtype=DISK ? RMAN-03022: compiling command: allocate RMAN-03023: executing command: allocate RMAN-08030: allocated channel: c21 RMAN-08500: channel c21: sid=15 devtype=SBT_TAPE ? RMAN-03022: compiling command

文档评论(0)

dajuhyy + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档