1.RMAN> list backup of datafile 8;
BS 关键字 类型 LV 大小 设备类型 经过时间 完成时间
------- ---- -- ---------- ----------- ------------ ----------
26 Full 80K DISK 00:01:25 16-7月 -09
BP 关键字: 26 状态: AVAILABLE 已压缩: NO 标记: TAG20090716T163028
段名:D:\ORACLE\PRODUCT\10.1.0\FLASH_RECOVERY_AREA\MYORACLE\BACKUPSET\2009_07_16\
O1_MF_NNNDF_TAG20090716T163028_55XS96PC_.BKP
备份集 26 中的数据文件列表
文件 LV 类型 Ckp SCN Ckp 时间 名称
---- -- ---- ---------- ---------- ----
8 Full 17275228 16-7月 -09 D:\TEST\TEST01.DBF
2.shutdown immediate;
3.startup mount;
4.restore datafile 8;
5.recover tablespace test01;
存档日志线程 1 序列 554 已作为文件 D:\ORACLE\PRODUCT\10.1.0\FLASH_RECOVERY_AREA\
MYORACLE\ARCHIVELOG\2009_08_06\O1_MF_1_554_57MST2KL_.ARC 存在于磁盘上
存档日志线程 1 序列 555 已作为文件 D:\ORACLE\PRODUCT\10.1.0\FLASH_RECOVERY_AREA\
MYORACLE\ARCHIVELOG\2009_08_06\O1_MF_1_555_57MXO3FR_.ARC 存在于磁盘上
存档日志线程 1 序列 556 已作为文件 D:\ORACLE\PRODUCT\10.1.0\FLASH_RECOVERY_AREA\
MYORACLE\ARCHIVELOG\2009_08_06\O1_MF_1_556_57N15KBT_.ARC 存在于磁盘上
存档日志线程 1 序列 557 已作为文件 D:\ORACLE\PRODUCT\10.1.0\FLASH_RECOVERY_AREA\
MYORACLE\ARCHIVELOG\2009_08_06\O1_MF_1_557_57N4VOJ7_.ARC 存在于磁盘上
存档日志线程 1 序列 558 已作为文件 D:\ORACLE\PRODUCT\10.1.0\FLASH_RECOVERY_AREA\
MYORACLE\ARCHIVELOG\2009_08_06\O1_MF_1_558_57N8H231_.ARC 存在于磁盘上
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 08/06/2009 09:50:19
RMAN-06053: unable to perform media recovery because of missing log
RMAN-06025: no backup of log thread 1 seq 389 lowscn 18537953 found to restore
RMAN-06025: no backup of log thread 1 seq 388 lowscn 18536702 found to restore
RMAN-06025: no backup of log thread 1 seq 387 lowscn 18532978 found to restore
RMAN-06025: no backup of log thread 1 seq 386 lowscn 18529396 found to restore
RMAN-06025: no backup of log thread 1 seq 385 lowscn 18525943 found to restore
RMAN-06025: no backup of log thread 1 seq 384 lowscn 18522007 found to restore
RMAN-06025: no backup of log thread 1 seq 383 lowscn 18518260 found to restore
RMAN-06025: no backup of log thread 1 seq 382 lowscn 18514773 found to restore
RMAN-06025: no backup of log thread 1 seq 381 lowscn 18511313 found to restore
RMAN-06025: no backup of log thread 1 seq 380 lowscn 18507653 found to restore
RMAN-06025: no backup of log thread 1 seq 379 lowscn 18503863 found to restore
RMAN-06025: no backup of log thread 1 seq 378 lowscn 18501352 found to restore
RMAN-06025: no backup of log thread 1 seq 377 lowscn 18499081 found to restore
RMAN-06025: no backup of log thread 1 seq 376 lowscn 18497286 found to restore
RMAN-06025: no backup of log thread 1 seq 375 lowscn 18493315 found to restore
RMAN-06025: no backup of log thread 1 seq 374 lowscn 18489532 found to restore
6.alter database open
error:
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of alter db command at 08/06/2009 14:45:01
ORA-01190: 控制文件或数据文件 8 来自于最后一个 RESETLOGS 之前
ORA-01110: 数据文件 8: 'D:\TEST\TEST01.DBF'
7.SQL> alter database open resetlogs;
alter database open resetlogs
*
第 1 行出现错误:
ORA-01139: RESETLOGS 选项仅在不完全数据库恢复后有效
RMAN> list backup by file;
数据文件备份列表
========================
文件关键字 TY LV S Ckp SCN Ckp 时间 段数 副本数 压缩标记
---- ------- - -- - ---------- ---------- ------- ------- ---------- ---
1 26 B F A 17275228 16-7月 -09 1 1 NO TAG2009071
6T163028
2 26 B F A 17275228 16-7月 -09 1 1 NO TAG2009071
6T163028
3 26 B F A 17275228 16-7月 -09 1 1 NO TAG2009071
6T163028
4 26 B F A 17275228 16-7月 -09 1 1 NO TAG2009071
6T163028
5 26 B F A 17275228 16-7月 -09 1 1 NO TAG2009071
6T163028
6 26 B F A 17275228 16-7月 -09 1 1 NO TAG2009071
6T163028
7 26 B F A 17275228 16-7月 -09 1 1 NO TAG2009071
6T163028
8 26 B F A 17275228 16-7月 -09 1 1