RMAN> shutdown immediate;
database closed
database dismounted
Oracle instance shut down
RMAN> startup mount
connected to target database (not started)
Oracle instance started
database mounted
Total System Global Area 1636814848 bytes
Fixed Size 2253744 bytes
Variable Size 1023413328 bytes
Database Buffers 603979776 bytes
Redo Buffers 7168000 bytes
SQL> select inst_id,instance_name,version,archiver,status from gv$instance;
INST_ID INSTANCE_NAME VERSION ARCHIVE STATUS
---------- ---------------- ----------------- ------- ------------
2 orcl2 11.2.0.4.0 STARTED OPEN
1 orcl1 11.2.0.4.0 STARTED OPEN
RMAN> restore database from tag TAG20150513T101026;
Starting restore at 2015-05-15 14:48:29
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=194 instance=orcl1 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 +DBFILE1/orcl/datafile/system.268.879518581
channel ORA_DISK_1: restoring datafile 00002 to +DBFILE1/orcl/datafile/sysaux.260.879518581
channel ORA_DISK_1: restoring datafile 00003 to +DBFILE1/orcl/datafile/undotbs1.273.879518581
channel ORA_DISK_1: restoring datafile 00004 to +DBFILE1/orcl/datafile/users.263.879518581
channel ORA_DISK_1: restoring datafile 00005 to +DBFILE1/orcl/datafile/example.277.879518831
channel ORA_DISK_1: restoring datafile 00006 to +DBFILE1/orcl/datafile/undotbs2.276.879519137
channel ORA_DISK_1: restoring datafile 00007 to +DBFILE1/orcl/datafile/app_data.dbf
channel ORA_DISK_1: restoring datafile 00008 to +DBFILE1/orcl/datafile/app_idx.dbf
channel ORA_DISK_1: restoring datafile 00009 to +DBFILE1/orcl/datafile/statistics_data.dbf
channel ORA_DISK_1: restoring datafile 00010 to +DBFILE1/orcl/datafile/user_data.dbf
channel ORA_DISK_1: restoring datafile 00011 to +DBFILE1/orcl/datafile/check_recorddata_2013.dbf
channel ORA_DISK_1: restoring datafile 00012 to +DBFILE1/orcl/datafile/check_recorddata_2014.dbf
channel ORA_DISK_1: restoring datafile 00013 to +DBFILE1/orcl/datafile/check_recorddata_2015.dbf
channel ORA_DISK_1: restoring datafile 00014 to +DBFILE1/orcl/datafile/check_recorddata_2016.dbf
channel ORA_DISK_1: reading from backup piece +DATA/orcl/backupset/2015_05_13/nnndf0_tag20150513t101026_0.371.879588631
channel ORA_DISK_1: piece handle=+DATA/orcl/backupset/2015_05_13/nnndf0_tag20150513t101026_0.371.879588631 tag=TAG20150513T101026
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:25:06
Finished restore at 2015-05-15 15:13:38
RMAN> recover database until time "to_date('2015-05-13 10:15:30','yyyy/mm/dd hh24:mi:ss')";
Starting recover at 2015-05-15 15:43:28
using channel ORA_DISK_1
starting media recovery
archived log for thread 1 with sequence 37 is already on disk as file +DATA/orcl/archivelog/2015_05_13/thread_1_seq_37.375.879589817
archived log for thread 2 with sequence 16 is already on disk as file +DATA/orcl/archivelog/2015_05_13/thread_2_seq_16.374.879589817
archived log file name=+DATA/orcl/archivelog/2015_05_13/thread_1_seq_37.375.879589817 thread=1 sequence=37
archived log file name=+DATA/orcl/archivelog/2015_05_13/thread_2_seq_16.374.879589817 thread=2 sequence=16
media recovery complete, elapsed time: 00:00:02
Finished recover at 2015-05-15 15:43:37
RMAN> alter database open resetlogs;
database opened