Read only tablespace are skipped during restore operation
rman target="/" Recovery Manager: Release 11.2.0.4.0 - Production on Thu May 22 11:18:18 2014 Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved. connected to target database (not started) RMAN> @ ./rman/rman_check_read_only.cmd RMAN> run 2> { 3> startup mount; 4> restore database; 5> } Oracle instance started database mounted Total System Global Area 730714112 bytes Fixed Size 2256832 bytes Variable Size 452984896 bytes Database Buffers 272629760 bytes Redo Buffers 2842624 bytes Starting restore at 22-MAY-14 using target database control file instead of recovery catalog allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=21 device type=DISK allocated channel: ORA_DISK_2 channel ORA_DISK_2: SID=27 device type=DISK allocated channel: ORA_DISK_3 channel ORA_DISK_3: SID=28 device type=DISK allocated channel: ORA_DISK_4 channel ORA_DISK_4: SID=29 device type=DISK allocated channel: ORA_DISK_5 channel ORA_DISK_5: SID=30 device type=DISK skipping datafile 4; already restored to file +DATA/cvrman/datafile/users.259.847354795 skipping datafile 5; already restored to file +DATA/cvrman/datafile/example_new.dbf channel ORA_DISK_1: restoring datafile 00006 input datafile copy RECID=83 STAMP=848217961 file name=+DATA/cvrman/datafile/tbs1.294.847433665 destination for restore of datafile 00006: +DATA/cvrman/datafile/tbs1_new.dbf channel ORA_DISK_2: starting datafile backup set restore channel ORA_DISK_2: specifying datafile(s) to restore from backup set channel ORA_DISK_2: restoring datafile 00003 to +DATA/cvrman/datafile/undotbs1.318.848201233
Solution:
(a) Restore the datafile/tablespace(s) are skipped as restored in a separate command
RMAN> restore datafile 4,5; Starting restore at 22-MAY-14 using channel ORA_DISK_1 using channel ORA_DISK_2 using channel ORA_DISK_3 using channel ORA_DISK_4 using channel ORA_DISK_5 channel ORA_DISK_1: restoring datafile 00005 input datafile copy RECID=86 STAMP=848219445 file name=+DATA/cvrman/datafile/example.308.847525493 destination for restore of datafile 00005: +DATA/cvrman/datafile/example_new.dbf channel ORA_DISK_2: starting datafile backup set restore channel ORA_DISK_2: specifying datafile(s) to restore from backup set channel ORA_DISK_2: restoring datafile 00004 to +DATA/cvrman/datafile/users.259.847354795 channel ORA_DISK_2: reading from backup piece +DATA/cvrman/backupset/2014_05_22/nnndf0_tag20140522t051830_0.313.848207917 channel ORA_DISK_2: piece handle=+DATA/cvrman/backupset/2014_05_22/nnndf0_tag20140522t051830_0.313.848207917 tag=TAG20140522T051830 channel ORA_DISK_2: restored backup piece 1 channel ORA_DISK_2: restore complete, elapsed time: 00:00:03 channel ORA_DISK_1: copied datafile copy of datafile 00005 output file name=+DATA/cvrman/datafile/example_new.dbf RECID=0 STAMP=0 Finished restore at 22-MAY-14
(b)Tried the command restore database check readonly, but still the restoration of backup is skipped for datafile 4 and 5 as per the script.
No comments:
Post a Comment