当前位置:  数据库>oracle

Oracle备份恢复之Trial Recovery

    来源: 互联网  发布时间:2017-05-12

    本文导语: 一 什么是Trial Recovery 官方解释:A trial recovery applies redo in a way similar to normal media recovery, but it never writes its changes to disk and it always rolls back its changes. Trial recovery occurs only in memory. trial recovery基本上类似于正常的介质恢复,应用redo...

一 什么是Trial Recovery
 
官方解释:A trial recovery applies redo in a way similar to normal media recovery, but it never writes its changes to disk and it always rolls back its changes. Trial recovery occurs only in memory.
 
trial recovery基本上类似于正常的介质恢复,应用redo的过程仅仅发生在内存中,不会把数据的改变写到磁盘。说白了就是测试介质恢复过程
 
 
 
二 Trial Recovery如何工作
 
1 默认,如果恢复由于数据块损坏而卡住或者遇到类似问题,会标记相关块以求继续恢复,同时写错误信息到alert文件。
 
2 当遭遇如下问题时,Trial Recovery过程会结束
 
 
 
● 超出内存buffer限制
 
● 遭遇一个不可恢复性错误,即使通过标记坏块也不能解决,比如文件丢失
 
● 用户取消或者终止恢复会话
 
● 所有必须的redo已经被应用,即不需要恢复。
 
当 trial recovery 结束,一切恢复原样,只是错误消息会记录在alter 文件中。运行测试时,注意排除由于内存原因造成测试过程结束的影响。
 
 
 
三 Trial Recovery 的语句
 
recover ……..test
 
例如:
 
recover database test
 
recover database using backup controlfile until cancel test
 
recover tablespace users test
 
recover database until cancel test
 
 
 
注意: 默认trial recovery会在内存中标记(无限制)的坏块,使恢复过程能够继续进行。我们可以指定 allow n corruption 语句 在 recover…..test 后面,以限制可以标记的坏块数。
 
 
 
四 测试过程
 
正常情况:
 
RMAN> recover database test;
 
 
 
Starting recover at 05-DEC-12
 
using channel ORA_DISK_1
 
starting media recovery
 
archive log thread 1 sequence 1 is already on disk as file /Oracle/archive/1_1_801229657.dbf
 
archive log thread 1 sequence 2 is already on disk as file /oracle/archive/1_2_801229657.dbf
 
archive log thread 1 sequence 3 is already on disk as file /oracle/archive/1_3_801229657.dbf
 
archive log thread 1 sequence 4 is already on disk as file /oracle/archive/1_4_801229657.dbf
 
archive log thread 1 sequence 5 is already on disk as file /oracle/archive/1_5_801229657.dbf
 
archive log thread 1 sequence 6 is already on disk as file /oracle/archive/1_6_801229657.dbf
 
archive log thread 1 sequence 7 is already on disk as file /oracle/archive/1_7_801229657.dbf
 
archive log thread 1 sequence 8 is already on disk as file /oracle/archive/1_8_801229657.dbf
 
archive log thread 1 sequence 9 is already on disk as file /oracle/archive/1_9_801229657.dbf
 
archive log thread 1 sequence 10 is already on disk as file /oracle/archive/1_10_801229657.dbf
 
archive log thread 1 sequence 11 is already on disk as file /oracle/archive/1_11_801229657.dbf
 
archive log thread 1 sequence 12 is already on disk as file /oracle/archive/1_12_801229657.dbf
 
archive log thread 1 sequence 13 is already on disk as file /oracle/archive/1_13_801229657.dbf
 
archive log thread 1 sequence 14 is already on disk as file /oracle/archive/1_14_801229657.dbf
 
archive log filename=/oracle/archive/1_1_801229657.dbf thread=1 sequence=1
 
archive log filename=/oracle/archive/1_2_801229657.dbf thread=1 sequence=2
 
archive log filename=/oracle/archive/1_3_801229657.dbf thread=1 sequence=3
 
archive log filename=/oracle/archive/1_4_801229657.dbf thread=1 sequence=4
 
archive log filename=/oracle/archive/1_5_801229657.dbf thread=1 sequence=5
 
archive log filename=/oracle/archive/1_6_801229657.dbf thread=1 sequence=6
 
archive log filename=/oracle/archive/1_7_801229657.dbf thread=1 sequence=7
 
archive log filename=/oracle/archive/1_8_801229657.dbf thread=1 sequence=8
 
archive log filename=/oracle/archive/1_9_801229657.dbf thread=1 sequence=9
 
RMAN-11006: WARNING: test recovery results:

ORA-10574: Test recovery did not corrupt any data block
 
ORA-10573: Test recovery tested redo from change 2779426987 to 2779427975
 
ORA-10572: Test recovery canceled due to errors
 
ORA-10581: Can not modify redo log header during test recovery
 
media recovery complete, elapsed time: 00:00:00
 
Finished recover at 05-DEC-12


    
 
 

您可能感兴趣的文章:

  • 如何将Aix上的oracle 物理备份 然后再在linux 系统上还原oracle
  • Oracle数据库设置任务计划备份一周的备份记录
  • Oracle数据库备份和恢复工具 RMan
  • oracle10g 数据备份与导入
  • aix下自动备份oracle 的输出日志问题,急!!
  • hp unix下备份oracle表的问题
  • linux小白提问linux备份oracle数据库的问题
  • oracle不能自动备份
  • Oracle数据库逻辑备份的SH文件
  • Linux环境中Oracle数据导入与导出备份操作
  • oracle数据库备份急???????????
  • oracle定时备份压缩的实现步骤
  • Unix系统下如何将oracle数据库备份
  • 详解如何应用改变跟踪技术加速Oracle递增备份
  • Oracle中备份表的简单sql命令语句
  • 实战Oracle数据库备份与恢复
  • Linux下实现自动备份Oracle数据库
  • oracle备份恢复的具体方法
  • 利用windows任务计划实现oracle的定期备份
  • Oracle11g备份和恢复功能的提高
  •  
    本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
    本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。












  • 相关文章推荐
  • Oracle数据库恢复后心得
  • 关于系统重装后Oracle数据库完全恢复的解决办法
  • oracle drop table(表)数据恢复方法
  • oracle中误删除表后恢复语句(FLASHBACK)
  • oracle冷备份恢复和oracle异机恢复使用方法
  • 在Oracle 10gR2中设定指定的恢复点实现轻松闪回
  • Oracle重做日志文件损坏或丢失后的恢复
  • oracle下实现恢复一个丢失的数据文件的代码
  • 详解通过Backup Exec来实施Oracle灾难恢复
  • Oracle的恢复管理器及DBMS_JOB包分析
  • Oracle数据库文件恢复以及备份思路
  • Oracle数据库备份恢复最佳实践
  • oracle如何恢复被覆盖的存储过程
  • rman恢复方案和oracle异机恢复
  • oracle数据库创建备份与恢复脚本整理
  • ORACLE 数据库RMAN备份恢复
  • 一次误操作引起的Oracle数据库大恢复
  • Oracle数据库的备份与恢复完全攻略
  • Oracle数据库的备份与恢复
  • Oracle数据库的备份及恢复策略研究
  • Oracle 12c发布简单介绍及官方下载地址
  • 论坛 iis7站长之家
  • oracle 11g最新版官方下载地址
  • 请问su oracle 和su - oracle有什么不同?
  • Oracle 数据库(oracle Database)Select 多表关联查询方式
  • 虚拟机装Oracle R12与Oracle10g
  • Oracle数据库(Oracle Database)体系结构及基本组成介绍
  • Oracle 数据库开发工具 Oracle SQL Developer
  • 如何设置让Oracle SQL Developer显示的时间包含时分秒
  • Oracle EBS R12 支持 Oracle Database 11g
  • Oracle 10g和Oracle 11g网格技术介绍


  • 站内导航:


    特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

    ©2012-2021,