关于bakbone 恢复oracle
各位好,小弟用bakbone做了全备oracle(设置了自动备份控制文件),可恢复控制文件时报错,提示近7天没有可恢复的控制文件,后来我是直接恢复数据库,也可以成功。
不过,今天我是又做了全备,恢复控制文件时成功了,可恢复数据库时又报找不到datafile,何故?
释放的通道: c21
释放的通道: c22
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 02/06/2010 15:44:56
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 12 found to restore
RMAN-06023: no backup or copy of datafile 11 found to restore
RMAN-06023: no backup or copy of datafile 10 found to restore
RMAN-06023: no backup or copy of datafile 9 found to restore
RMAN-06023: no backup or copy of datafile 8 found to restore
RMAN-06023: no backup or copy of datafile 7 found to restore
RMAN-06023: no backup or copy of datafile 6 found to restore
RMAN-06023: no backup or copy of datafile 5 found to restore
RMAN-06023: no backup or copy of datafile 4 found to restore
RMAN-06023: no backup or copy of datafile 3 found to restore
RMAN-06023: no backup or copy of datafile 2 found to restore
RMAN-06023: no backup or copy of datafile 1 found to restore
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(9)
配置出错了
回复 7# 无牙
我还有另一个测试的数据库,也碰到这样的情况。在恢复了控制文件后恢复数据库就报找不到datafile.
RMAN> list backup of database;
using target database controlfile instead of recovery catalog
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
94 Incr 0 560M SBT_TAPE 00:00:32 03-12月-09
BP Key: 257 Status: AVAILABLE Compressed: NO Tag: TAG20091203T153804
Handle: BE_3gl0052s_1_1 Media:
List of Datafiles in backup set 94
File LV Type Ckp SCN Ckp Time Name
---- -- ---- ---------- ---------- ----
1 0 Incr 858918 03-12月-09 E:ORACLEPRODUCT10.1.0ORADATAORCLSYSTEM01.DBF
2 0 Incr 858918 03-12月-09 E:ORACLEPRODUCT10.1.0ORADATAORCLUNDOTBS01.DBF
3 0 Incr 858918 03-12月-09 E:ORACLEPRODUCT10.1.0ORADATAORCLSYSAUX01.DBF
4 0 Incr 858918 03-12月-09 E:ORACLEPRODUCT10.1.0ORADATAORCLUSERS01.DBF
5 0 Incr 858918 03-12月-09 E:ORACLEPRODUCT10.1.0ORADATAORCLEXAMPLE01.DBF
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
100 Incr 0 560M SBT_TAPE 00:00:38 03-12月-09
BP Key: 263 Status: AVAILABLE Compressed: NO Tag: TAG20091203T161727
Handle: BE_3ml007cn_1_1 Media:
List of Datafiles in backup set 100
File LV Type Ckp SCN Ckp Time Name
---- -- ---- ---------- ---------- ----
1 0 Incr 860429 03-12月-09 E:ORACLEPRODUCT10.1.0ORADATAORCLSYSTEM01.DBF
2 0 Incr 860429 03-12月-09 E:ORACLEPRODUCT10.1.0ORADATAORCLUNDOTBS01.DBF
3 0 Incr 860429 03-12月-09 E:ORACLEPRODUCT10.1.0ORADATAORCLSYSAUX01.DBF
4 0 Incr 860429 03-12月-09 E:ORACLEPRODUCT10.1.0ORADATAORCLUSERS01.DBF
5 0 Incr 860429 03-12月-09 E:ORACLEPRODUCT10.1.0ORADATAORCLEXAMPLE01.DBF
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
106 Incr 1 4M SBT_TAPE 00:00:12 03-12月-09
BP Key: 269 Status: AVAILABLE Compressed: NO Tag: TAG20091203T165113
Handle: BE_3sl009c1_1_1 Media:
List of Datafiles in backup set 106
File LV Type Ckp SCN Ckp Time Name
---- -- ---- ---------- ---------- ----
1 1 Incr 861988 03-12月-09 E:ORACLEPRODUCT10.1.0ORADATAORCLSYSTEM01.DBF
2 1 Incr 861988 03-12月-09 E:ORACLEPRODUCT10.1.0ORADATAORCLUNDOTBS01.DBF
3 1 Incr 861988 03-12月-09 E:ORACLEPRODUCT10.1.0ORADATAORCLSYSAUX01.DBF
4 1 Incr 861988 03-12月-09 E:ORACLEPRODUCT10.1.0ORADATAORCLUSERS01.DBF
5 1 Incr 861988 03-12月-09 E:ORACLEPRODUCT10.1.0ORADATAORCLEXAMPLE01.DBF
RMAN>
RMAN> list backup summary;
List of Backups
===============
Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
------- -- -- - ----------- --------------- ------- ------- ---------- ---
69 B A A SBT_TAPE 03-12月-09 1 1 NO TAG20091203T110608
70 B 0 A SBT_TAPE 03-12月-09 1 1 NO TAG20091203T110628
71 B A A SBT_TAPE 03-12月-09 1 1 NO TAG20091203T110716
72 B F A SBT_TAPE 03-12月-09 1 1 NO TAG20091203T110718
73 B A A SBT_TAPE 03-12月-09 1 1 NO TAG20091203T114517
74 B 0 A SBT_TAPE 03-12月-09 1 1 NO TAG20091203T114531
75 B A A SBT_TAPE 03-12月-09 1 1 NO TAG20091203T114617
76 B F A SBT_TAPE 03-12月-09 1 1 NO TAG20091203T114620
77 B A A SBT_TAPE 03-12月-09 1 1 NO TAG20091203T144249
78 B 0 A SBT_TAPE 03-12月-09 1 1 NO TAG20091203T144307
79 B A A SBT_TAPE 03-12月-09 1 1 NO TAG20091203T144353
80 B F A SBT_TAPE 03-12月-09 1 1 NO TAG20091203T144356
81 B F A DISK 03-12月-09 1 1 NO TAG20091203T145221
82 B A A SBT_TAPE 03-12月-09 1 1 NO TAG20091203T151252
83 B A A SBT_TAPE 03-12月-09 1 1 NO TAG20091203T151252
84 B 0 A SBT_TAPE 03-12月-09 1 1 NO TAG20091203T151311
85 B A A SBT_TAPE 03-12月-09 1 1 NO TAG20091203T151357
86 B F A SBT_TAPE 03-12月-09 1 1 NO TAG20091203T151359
87 B F A DISK 03-12月-09 1 1 NO TAG20091203T152138
88 B A A SBT_TAPE 03-12月-09 1 1 NO TAG20091203T153143
89 B A A SBT_TAPE 03-12月-09 1 1 NO TAG20091203T153143
90 B 0 A SBT_TAPE 03-12月-09 1 1 NO TAG20091203T153205
91 B A A SBT_TAPE 03-12月-09 1 1 NO TAG20091203T153242
92 B F A SBT_TAPE 03-12月-09 1 1 NO TAG20091203T153244
93 B A A SBT_TAPE 03-12月-09 1 1 NO TAG20091203T153749
94 B 0 A SBT_TAPE 03-12月-09 1 1 NO TAG20091203T153804
95 B A A SBT_TAPE 03-12月-09 1 1 NO TAG20091203T153840
96 B F A SBT_TAPE 03-12月-09 1 1 NO TAG20091203T153843
97 B F A DISK 03-12月-09 1 1 NO TAG20091203T155855
98 B A A SBT_TAPE 03-12月-09 1 1 NO TAG20091203T161706
99 B A A SBT_TAPE 03-12月-09 1 1 NO TAG20091203T161706
100 B 0 A SBT_TAPE 03-12月-09 1 1 NO TAG20091203T161727
101 B A A SBT_TAPE 03-12月-09 1 1 NO TAG20091203T161813
102 B F A SBT_TAPE 03-12月-09 1 1 NO TAG20091203T161815
103 B F A DISK 03-12月-09 1 1 NO TAG20091203T164610
104 B A A SBT_TAPE 03-12月-09 1 1 NO TAG20091203T165055
105 B A A SBT_TAPE 03-12月-09 1 1 NO TAG20091203T165055
106 B 1 A SBT_TAPE 03-12月-09 1 1 NO TAG20091203T165113
107 B A A SBT_TAPE 03-12月-09 1 1 NO TAG20091203T165130
108 B F A SBT_TAPE 03-12月-09 1 1 NO TAG20091203T165132
109 B F A DISK 03-12月-09 1 1 NO TAG20091203T170539
RMAN>
本帖最后由 zhangmq 于 2010-02-07 11:27 编辑
回复 7# 无牙
输出均为空
RMAN> list backup of database summary;
RMAN>
RMAN> list backup of database;
RMAN>
RMAN> list backup summary;
备份列表
===============
关键字 TY LV S 设备类型 完成时间 段数 副本数 标记
------- -- -- - ----------- ---------- ------- ------- ---
1 B F A DISK 06-2月 -10 1 1 TAG20100206T180319
RMAN>
RMAN-06023: no backup or copy of datafile 1 found to restore
这个错是说找不到要恢复的datafile 1的备份。
你再用这个命令列一下:
list backup of database;
list backup of summary;
RMAN> list backup;
备份集列表
===================
BS 关键字 类型 LV 大小 设备类型 经过时间 完成时间
------- ---- -- ---------- ----------- ------------ ----------
1 Full 1M DISK 00:00:00 06-2月 -10
BP 关键字: 1 状态: AVAILABLE 标记:TAG20100206T180319
段名:E:ORACLEORA92DATABASE1L5BPV7_1_1
控制文件包括: Ckp SCN: 200823 Ckp 时间:06-2月 -10
RMAN>
RMAN> list backup of controlfile;
备份集列表
===================
BS 关键字 类型 LV 大小 设备类型 经过时间 完成时间
------- ---- -- ---------- ----------- ------------ ----------
1 Full 1M DISK 00:00:00 06-2月 -10
BP 关键字: 1 状态: AVAILABLE 标记:TAG20100206T180319
段名:E:ORACLEORA92DATABASE1L5BPV7_1_1
控制文件包括: Ckp SCN: 200823 Ckp 时间:06-2月 -10
RMAN>
本帖最后由 zhangmq 于 2010-02-07 09:21 编辑
先谢楼上!
先用这个命令查一下:
list backup of controlfile
看看有什么输出。
回复 1# zhangmq
补充:从自动备份控制文件中恢复
rman target /
set dbid=2509869093
restore controlfile from autobackup;