- 最后登录
- 2018-9-14
- 在线时间
- 103 小时
- 威望
- 0
- 金钱
- 1829
- 注册时间
- 2012-12-17
- 阅读权限
- 10
- 帖子
- 139
- 精华
- 1
- 积分
- 0
- UID
- 820
|
1#
发表于 2012-12-24 15:06:41
|
查看: 3905 |
回复: 3
DB:10.2.0.5
OS:linux redhat 4.0
在做不完全恢复的时候指定scn,但是却不能恢复到这个点
我指定的是scn 747775 但是最后从v$datafile_header上的checkpoint_change#看到的是 747780
使用rman全备数据库后恢复
RMAN> restore database;
Starting restore at 2012-12-24 14:41:15
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=157 devtype=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: sid=155 devtype=DISK
allocated channel: ORA_DISK_3
channel ORA_DISK_3: sid=154 devtype=DISK
allocated channel: ORA_DISK_4
channel ORA_DISK_4: sid=153 devtype=DISK
channel ORA_DISK_1: starting datafile backupset restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00002 to /u01/app/oracle/oradata/RAC1/undotbs01.dbf
restoring datafile 00005 to /u01/app/oracle/oradata/RAC1/test01.dbf
channel ORA_DISK_1: reading from backup piece /u01/app/oracle/oradata/RAC1/db_0_RAC1_68_1.bak
channel ORA_DISK_2: starting datafile backupset restore
channel ORA_DISK_2: specifying datafile(s) to restore from backup set
restoring datafile 00003 to /u01/app/oracle/oradata/RAC1/sysaux01.dbf
restoring datafile 00004 to /u01/app/oracle/oradata/RAC1/users01.dbf
channel ORA_DISK_2: reading from backup piece /u01/app/oracle/oradata/RAC1/db_0_RAC1_67_1.bak
channel ORA_DISK_3: starting datafile backupset restore
channel ORA_DISK_3: specifying datafile(s) to restore from backup set
restoring datafile 00001 to /u01/app/oracle/oradata/RAC1/system01.dbf
channel ORA_DISK_3: reading from backup piece /u01/app/oracle/oradata/RAC1/db_0_RAC1_66_1.bak
channel ORA_DISK_1: restored backup piece 1
piece handle=/u01/app/oracle/oradata/RAC1/db_0_RAC1_68_1.bak tag=TAG20121224T143416
channel ORA_DISK_1: restore complete, elapsed time: 00:00:05
channel ORA_DISK_2: restored backup piece 1
piece handle=/u01/app/oracle/oradata/RAC1/db_0_RAC1_67_1.bak tag=TAG20121224T143416
channel ORA_DISK_2: restore complete, elapsed time: 00:00:40
channel ORA_DISK_3: restored backup piece 1
piece handle=/u01/app/oracle/oradata/RAC1/db_0_RAC1_66_1.bak tag=TAG20121224T143416
channel ORA_DISK_3: restore complete, elapsed time: 00:00:47
Finished restore at 2012-12-24 14:42:03
RMAN> recover database until scn 747775
2> ;
Starting recover at 2012-12-24 14:43:07
using channel ORA_DISK_1
using channel ORA_DISK_2
using channel ORA_DISK_3
using channel ORA_DISK_4
starting media recovery
archive log thread 1 sequence 1 is already on disk as file /u01/app/oracle/product/10.2/db_1/dbs/arch1_1_802879164.dbf
archive log thread 1 sequence 2 is already on disk as file /u01/app/oracle/product/10.2/db_1/dbs/arch1_2_802879164.dbf
archive log thread 1 sequence 3 is already on disk as file /u01/app/oracle/product/10.2/db_1/dbs/arch1_3_802879164.dbf
archive log filename=/u01/app/oracle/product/10.2/db_1/dbs/arch1_1_802879164.dbf thread=1 sequence=1
media recovery complete, elapsed time: 00:00:02
Finished recover at 2012-12-24 14:43:10
|
|