- 论坛徽章:
- 0
|
成功了!:wink:
RMAN> list backup summary;
List of Backups
===============
Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
------- -- -- - ----------- --------------- ------- ------- ---------- ---
1 B F A DISK 14-MAY-14 1 1 NO TAG20140514T095446
2 B F A DISK 15-MAY-14 1 1 NO TAG20140515T162453
3 B 0 A DISK 19-MAY-14 1 1 NO DB0
4 B 0 A DISK 19-MAY-14 1 1 NO DB0
5 B F A DISK 19-MAY-14 1 1 NO TAG20140519T193328
6 B 0 A DISK 21-MAY-14 1 1 NO DB0
7 B 0 A DISK 21-MAY-14 1 1 NO DB0
8 B F A DISK 21-MAY-14 1 1 NO TAG20140521T191523
RMAN> restore database from tag='DB0';
Starting restore at 23-MAY-14
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=20 device type=DISK
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00001 to /home/oracle/app/oradata/first_time_oracle/system01.dbf
channel ORA_DISK_1: restoring datafile 00002 to /home/oracle/app/oradata/first_time_oracle/sysaux01.dbf
channel ORA_DISK_1: restoring datafile 00003 to /home/oracle/app/oradata/first_time_oracle/undotbs01.dbf
channel ORA_DISK_1: restoring datafile 00004 to /home/oracle/app/oradata/first_time_oracle/users01.dbf
channel ORA_DISK_1: reading from backup piece /home/oracle/app/RmanBackup/db0_FIRST_TI_20140521_8
channel ORA_DISK_1: piece handle=/home/oracle/app/RmanBackup/db0_FIRST_TI_20140521_8 tag=DB0
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:04:15
Finished restore at 23-MAY-14
我把库重启,然后startup mount ,然后Rman restore 就行了! 以前库一直是open状态。。。。 |
|