博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
oracle问题之数据库恢复(三)
阅读量:4351 次
发布时间:2019-06-07

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

可能很多人在做数据库恢复时,都遇到过如下错误:

SQL> recover database;ORA-00283: recovery session canceled due to errorsORA-01610: recovery using the BACKUP CONTROLFILE option must be done

对于这个错误的处理方法很简单,相信大家都知道:(只要加上using backup controlfile就可以了)

SQL> recover database using backup controlfile;ORA-00279: change 314215629614 generated at 04/25/2015 12:50:28 needed forthread 1ORA-00289: suggestion : /archlog/recovertest1/recovertest1_48089_863551860.arcORA-00280: change 314215629614 for thread 1 is in sequence #48089 Specify log: {
=suggested | filename | AUTO | CANCEL}

但是为什么会报这样的错误呢?下面我们就来说一下导致恢复时报ORA-00283,ORA-01610错误的原因

Error Text, Cause and Action from Message File/s for ORA-01610

Versions 10.2, 11.1, 11.2, 12.1

Error: ORA-01610 recovery using the BACKUP CONTROLFILE option must be done

---------------------------------------------------------------------------
Cause: Either an earlier database recovery session specified BACKUP
CONTROLFILE, or the control file was recreated with the RESETLOGS
option, or the control file being used is a backup control file. After
that only BACKUP CONTROLFILE recovery is allowed and it must be
followed by a log reset at the next database open. 

>>>>>导致恢复报ORA-01610的原因有 :

1.如果你在一次恢复中先是使用了recover database using backup controlfile命令,那么再一次执行recover database时必须也加上backup controlfile

2.你所恢复的数据库曾经被resetlogs打开过

3.你恢复使用的控制文件比恢复出来的数据文件要老(比如你restore的控制文件是5月10号的,restore的数据文件是5月10号之后的)

Action: Perform recovery using the BACKUP CONTROFILE option.

Versions 9.2, 10.1

Error: ORA-01610 recovery using the BACKUP CONTROLFILE option must be done

---------------------------------------------------------------------------
Cause: Either an earlier database recovery session specified BACKUP
CONTROLFILE, or the controlfile was recreated with the RESETLOGS
option, or the controlfile being used is a backup controlfile. After
that only BACKUP CONTROLFILE recovery is allowed and it must be
followed by a log reset at the next database open.
Action: Perform recovery using the BACKUP CONTROFILE option.

##上面这段截取自MOS的解释很清楚的说明了导致恢复时报ORA-01610的原因。

详情可参考 OERR: ORA-1610 "recovery using the BACKUP CONTROLFILE option must be done" Reference Note (Doc ID 19007.1)

转自:

转载于:https://www.cnblogs.com/zzdbullet/p/11130512.html

你可能感兴趣的文章
vi 编辑器的用法(2013最新整理)
查看>>
HTML中的footer置底问题
查看>>
[Hei.Captcha] Asp.Net Core 跨平台图形验证码实现
查看>>
truncate与delete的区别
查看>>
wepy 小程序开发(interceptor拦截器 && WXS)
查看>>
Mac下安装virtualenv, 并在PyCharm中使用
查看>>
【poj1010】 STAMPS
查看>>
NOI2015 寿司晚宴
查看>>
取石头游戏
查看>>
2-Nineteenth Scrum Meeting-20151219
查看>>
C 语言实例 - 计算两个时间段的差值
查看>>
Vue去掉警告 You are running Vue in development mode
查看>>
梦织未来Windows驱动编程 第06课 驱动对磁盘文件的操作
查看>>
(剑指Offer)面试题24:二叉搜索树的后序遍历序列
查看>>
vcastr3.swf免费开源android可用的FLV播放器使用详解
查看>>
关情纸尾-----UIKit基础-UITableView
查看>>
python之反射
查看>>
公共类
查看>>
linux系统常用命令
查看>>
python实现购物车程序
查看>>