Incomplete recover---scn (建表lee2后rman没有针对lee2备份)

Incomplete recover---scn (建表lee2rman没有针对lee2备份)

//建表lee2,获得scn,删除表(之前没有rman针对lee2的备份)

C:\Documents and Settings\Administrator>sqlplus /nolog

 

SQL*Plus: Release 10.2.0.1.0 - Production on 星期四 6 19 15:06:04 2008

 

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

 

15:06:04 idle>conn /as sysdba

已连接。

15:06:09 sys@LEE2>create table lee2

15:06:19   2  (id int);

 

表已创建。

 

已用时间:  00: 00: 00.23

15:06:24 sys@LEE2>insert into lee2 values(1);

 

已创建 1 行。

 

已用时间:  00: 00: 00.00

15:06:48 sys@LEE2>insert into lee2 values(2);

 

已创建 1 行。

 

已用时间:  00: 00: 00.00

15:06:51 sys@LEE2>commit;

 

提交完成。

 

已用时间:  00: 00: 00.00

15:06:53 sys@LEE2>select * from lee2;

 

        ID

----------

         1

         2

 

已用时间:  00: 00: 00.00

15:07:09 sys@LEE2>select current_scn from v$database;

 

CURRENT_SCN

-----------

     641621

 

已用时间:  00: 00: 00.04

15:07:29 sys@LEE2>drop table lee2;

 

表已删除。

 

已用时间:  00: 00: 01.23

15:07:40 sys@LEE2>select * from lee2;

select * from lee2

              *

1 行出现错误:

ORA-00942: 表或视图不存在

 

 

已用时间:  00: 00: 00.03

15:07:43 sys@LEE2>exit;

Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production

With the Partitioning, OLAP and Data Mining options 断开

 

C:\Documents and Settings\Administrator>

 

// rman不完全恢复

C:\Documents and Settings\Administrator>rman

 

恢复管理器: Release 10.2.0.1.0 - Production on 星期四 6 19 15:09:34 2008

 

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

 

RMAN> connect target/

 

连接到目标数据库: LEE2 (DBID=2813054007)

 

RMAN> shutdown immediate

 

使用目标数据库控制文件替代恢复目录

数据库已关闭

数据库已卸载

Oracle 实例已关闭

 

RMAN> startup mount

 

已连接到目标数据库 (未启动)

Oracle 实例已启动

数据库已装载

 

系统全局区域总计     440401920 字节

 

Fixed Size                     1249440 字节

Variable Size                113250144 字节

Database Buffers             318767104 字节

Redo Buffers                   7135232 字节

 

RMAN> restore database;

 

启动 restore 19-6 -08

分配的通道: ORA_DISK_1

通道 ORA_DISK_1: sid=155 devtype=DISK

 

通道 ORA_DISK_1: 正在开始恢复数据文件备份集

通道 ORA_DISK_1: 正在指定从备份集恢复的数据文件

正将数据文件00001恢复到E:\ORACLE\PRODUCT\10.2.0\ORADATA\LEE2\SYSTEM01.DBF

正将数据文件00002恢复到E:\ORACLE\PRODUCT\10.2.0\ORADATA\LEE2\UNDOTBS01.DBF

正将数据文件00003恢复到E:\ORACLE\PRODUCT\10.2.0\ORADATA\LEE2\SYSAUX01.DBF

正将数据文件00004恢复到E:\ORACLE\PRODUCT\10.2.0\ORADATA\LEE2\USERS01.DBF

通道 ORA_DISK_1: 正在读取备份段 E:\BACKUP\LEE2\BACKUP_0CJJAH86_1_1

通道 ORA_DISK_1: 已恢复备份段 1

段句柄 = E:\BACKUP\LEE2\BACKUP_0CJJAH86_1_1 标记 = TAG20080619T105502

通道 ORA_DISK_1: 恢复完成, 用时: 00:00:56

完成 restore 19-6 -08

 

RMAN> recover database until scn 641621;

 

启动 recover 19-6 -08

使用通道 ORA_DISK_1

 

正在开始介质的恢复

 

存档日志线程 1 序列 2 已作为文件 E:\ARCHIVE\LEE2\ARC00002_0657801610.001 存在于磁盘上

存档日志线程 1 序列 3 已作为文件 E:\ARCHIVE\LEE2\ARC00003_0657801610.001 存在于磁盘上

存档日志线程 1 序列 1 已作为文件 E:\ARCHIVE\LEE2\ARC00001_0657803006.001 存在于磁盘上

存档日志线程 1 序列 1 已作为文件 E:\ARCHIVE\LEE2\ARC00001_0657806224.001 存在于磁盘上

存档日志文件名 =E:\ARCHIVE\LEE2\ARC00002_0657801610.001 线程 =1 序列 =2

存档日志文件名 =E:\ARCHIVE\LEE2\ARC00003_0657801610.001 线程 =1 序列 =3

存档日志文件名 =E:\ARCHIVE\LEE2\ARC00001_0657803006.001 线程 =1 序列 =1

存档日志文件名 =E:\ARCHIVE\LEE2\ARC00001_0657806224.001 线程 =1 序列 =1

介质恢复完成, 用时: 00:00:10

完成 recover 19-6 -08

 

RMAN> alter database open resetlogs;

 

数据库已打开

 

RMAN> exit

 

 

恢复管理器完成。

 

C:\Documents and Settings\Administrator>sqlplus /nolog

 

SQL*Plus: Release 10.2.0.1.0 - Production on 星期四 6 19 15:14:03 2008

 

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

 

15:14:03 idle>conn /as sysdba

已连接。

15:14:09 sys@LEE2>select * from lee2;

 

        ID

----------

         1

         2

 

已用时间:  00: 00: 00.04

15:14:13 sys@LEE2>

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/11134734/viewspace-366403/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/11134734/viewspace-366403/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值