博客
关于我
数据恢复顾问(DRA)
阅读量:444 次
发布时间:2019-03-06

本文共 730 字,大约阅读时间需要 2 分钟。

(1)DRA介绍

         数据恢复顾问(Data Recovery Advise)是一个诊断和修复数据库的工具,DRA能够修复数据文件和(某些环境下)控制文件的损坏,它不提供spfile和logfile的修复。

(2)DRA局限性

        1.只有实例处于nomount或更高状态时,才能使用DRA进行数据库恢复;

        2.DRA只适用于单实例的数据库环境,RAC和Data Guard均不适用;

(3)使用DRA进行数据恢复

        使用DRA恢复数据库主要用到三个命令:

        --LIST FAILURE : display failures

        --ADVISE FAILURE : display repair options

        --REPAIR FAILURE :fix the failures

三个命令具有严格的顺序:list failure --> advise failure --> repair failure。

 

例子1.使用DRA恢复数据文件

Step1.备份整个数据库,作为DRA数据恢复的基础

Step2.查看数据库的数据文件

Step3.删除12号数据文件

 

Step4.重启数据库,发现只能启动到mount状态,无法打开数据库,提示缺少12号文件

Step5.连接到RMAN

Step6.使用list failure列出数据文件的故障问题

 

Step7.使用advise failure展现修复选项,这里有手动修复选项和自动修复选项,我们可以使用自动修复选项

在自动修复选项的最后面,有一个修复脚本,我们可以看一下里面的内容

Step8.使用repair failure修复数据文件,其实就是去执行上一步修复脚本文件里面的命令

 数据文件恢复完成,将数据库打开

 

完成恢复。

转载地址:http://fnsyz.baihongyu.com/

你可能感兴趣的文章
No module named ‘MySQLdb‘错误解决No module named ‘MySQLdb‘错误解决
查看>>
No new migrations found. Your system is up-to-date.
查看>>
No qualifying bean of type XXX found for dependency XXX.
查看>>
No qualifying bean of type ‘com.netflix.discovery.AbstractDiscoveryClientOptionalArgs<?>‘ available
查看>>
No resource identifier found for attribute 'srcCompat' in package的解决办法
查看>>
no session found for current thread
查看>>
no such file or directory AndroidManifest.xml
查看>>
No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android
查看>>
NO.23 ZenTaoPHP目录结构
查看>>
no1
查看>>
NO32 网络层次及OSI7层模型--TCP三次握手四次断开--子网划分
查看>>
NOAA(美国海洋和大气管理局)气象数据获取与POI点数据获取
查看>>
NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationBeanFactoryMetadata
查看>>
node exporter完整版
查看>>
node HelloWorld入门篇
查看>>
Node JS: < 一> 初识Node JS
查看>>
Node JS: < 二> Node JS例子解析
查看>>
Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime(72)
查看>>
Node 裁切图片的方法
查看>>
Node+Express连接mysql实现增删改查
查看>>