免费注册 查看新帖 |

Chinaunix

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

求救:只有归档日志、控制文件、一个全备份,怎么恢复数据库?! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-09-21 15:15 |只看该作者 |倒序浏览
系统硬盘掉线,未及时处理,导致操作系统崩溃,数据全丢失。
现手上只有归档日志、控制文件、几天前的一个冷备份,怎么恢复到控制文件时数据库啊?!

启动数据库:
SQL> ORACLE instance started.

Total System Global Area  252777592 bytes
Fixed Size                   451704 bytes
Variable Size             218103808 bytes
Database Buffers           33554432 bytes
Redo Buffers                 667648 bytes
Database mounted.
ORA-01113: file 1 needs media recovery
ORA-01110: data file 1: '/oracle/u06/oradata/ORA920/system01.dbf'

SQL> recover database until cancel;
ORA-00279: change 84420099 generated at 09/18/2006 09:17:36 needed for thread
ORA-00289: suggestion : /oracle/u06/oradata/ORA920/archive/arch_t1_s1083.dbf
ORA-00280: change 84420099 for thread 1 is in sequence #1083


Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
auto
ORA-00279: change 84450092 generated at 09/18/2006 09:52:35 needed for thread
ORA-00289: suggestion : /oracle/u06/oradata/ORA920/archive/arch_t1_s1084.dbf
ORA-00280: change 84450092 for thread 1 is in sequence #1084
ORA-00278: log file '/oracle/u06/oradata/ORA920/archive/arch_t1_s1083.dbf' no
longer needed for this recovery


ORA-00279: change 84514952 generated at 09/18/2006 13:12:49 needed for thread
ORA-00289: suggestion : /oracle/u06/oradata/ORA920/archive/arch_t1_s1085.dbf
ORA-00280: change 84514952 for thread 1 is in sequence #1085
ORA-00278: log file '/oracle/u06/oradata/ORA920/archive/arch_t1_s1084.dbf' no
longer needed for this recovery


ORA-00283: recovery session canceled due to errors
ORA-00314: log 3 of thread 1, expected sequence# 1086 doesn't match 1083
ORA-00312: online log 3 thread 1: '/oracle/u05/oradata/ORA920/redo_g03c.log'
ORA-00314: log 3 of thread 1, expected sequence# 1086 doesn't match 1083
ORA-00312: online log 3 thread 1: '/oracle/u04/oradata/ORA920/redo_g03b.log'
ORA-00314: log 3 of thread 1, expected sequence# 1086 doesn't match 1083
ORA-00312: online log 3 thread 1: '/oracle/u03/oradata/ORA920/redo_g03a.log'


ORA-01112: media recovery not started

论坛徽章:
0
2 [报告]
发表于 2006-09-21 15:36 |只看该作者
好象没有人愿意回答?!
看了些网站,好象如下可以实现?!
recover database until cancel ;
cancel;
recover database until cancel;
auto;
alter database open resetlogs;

我要去检查数据是否回来了。

论坛徽章:
0
3 [报告]
发表于 2006-09-21 15:37 |只看该作者
alter database open resetlogs
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP