免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 2734 | 回复: 10
打印 上一主题 下一主题

当前redo file损坏,如何恢复数据库 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-02-03 15:55 |只看该作者 |倒序浏览
ORA-00283: recovery session canceled due to errors
ORA-00313: open failed for members of log group 1 of thread 1
ORA-00312: online log 1 thread 1: '/opt/oracle/oradata/demo/redo01.log'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory


数据库无法启动
关键是损坏了所有日志文件,并且在非archive状态
没有保存和备份的redo01.log文件

数据库无法drop掉当前的log文件
有无法切换,一定要在open 状态才可以

试过将ora的_allow_resetlogs_corruption=true然后启动,
执行alter database open resetlogs后提示要recover才可以,但recover database的时候提示redo01.log'错


请教如何恢复当前redo file?

论坛徽章:
0
2 [报告]
发表于 2005-02-03 17:42 |只看该作者

当前redo file损坏,如何恢复数据库

??

论坛徽章:
0
3 [报告]
发表于 2005-02-03 17:55 |只看该作者

当前redo file损坏,如何恢复数据库

你应该有多份redolog吧

在mount状态

select * from v$logfile

如果group 1 其它member可用的话直接靠过来即可。

论坛徽章:
0
4 [报告]
发表于 2005-02-03 18:04 |只看该作者

当前redo file损坏,如何恢复数据库

就是没有啊,有的话方便了

论坛徽章:
0
5 [报告]
发表于 2005-02-04 00:33 |只看该作者

当前redo file损坏,如何恢复数据库

吧其他redolog cp过来
然后clear 一下呢

论坛徽章:
0
6 [报告]
发表于 2005-02-04 02:33 |只看该作者

当前redo file损坏,如何恢复数据库

startup mount;
select * from v$log;
select * from v$logfile;

from there you will know which trdo group is damaged and the current status of it.

if the damaged redo group has more than one members, you drop the damaged members

if the group has only one member (or all the members are damaged), the problem become more complicated.

case 1) the status = INACTIVE, you cam simply drop the group and create anoth group
case ) status = ACTIVE or CURRENT. you can not drop the group in this case. the solution is to do an imcomplete recovery of the database to the earliest log sequence number of the damaged redo group. if you do not have a proper backup, your database is not recoverable.

论坛徽章:
0
7 [报告]
发表于 2005-02-04 09:49 |只看该作者

当前redo file损坏,如何恢复数据库

原帖由 "sshd" 发表:
startup mount;
select * from v$log;
select * from v$logfile;

from there you will know which trdo group is damaged and the current status of it.

if the damaged redo group has more than one memb..........



我现在的状态是最掺的状态
当前日志没有了,因为磁盘问题,运行fsck后丢失,noarchive

论坛徽章:
0
8 [报告]
发表于 2005-02-04 14:24 |只看该作者

当前redo file损坏,如何恢复数据库

you have learned your lessons ...

论坛徽章:
1
IT运维版块每日发帖之星
日期:2015-08-02 06:20:00
9 [报告]
发表于 2005-02-17 09:04 |只看该作者

当前redo file损坏,如何恢复数据库

用RECOVER DATABASE UNTIL CANCEL 恢复数据库尝试一下。
若是非ACTIVE的,应该可以恢复,关键是那个ACTIVE,丢了真不
太好办。

论坛徽章:
0
10 [报告]
发表于 2005-02-17 10:33 |只看该作者

当前redo file损坏,如何恢复数据库

我觉得SSHD回答得很好了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP