Search: For:
Browsing Single Category
www.dbatoolz.com ORACLE DBA Forums Solutions › Topic Id: 1169 | Permalink

RMAN restore/recover DBF onto a different mount point

Topic ID: 1169
Created By: 2006-SEP-28 19:39:53 [Vitaliy]
Updated By: 2006-SEP-28 19:39:53 []
Status: New
Severity: Normal
Read Only: No
4411
2006-SEP-28 19:39:53
Moderator
 
 
Registered On: Mar 2006
Total Posts: 267
RMAN restore/recover DBF onto a different mount point

When a drive fails and takes a mount point down it's nessesary to recover
a lost datafile onto a different moint point.

Thankfully RMAN makes it very easy on us:

## in this example we lost datafile 6 which originally was:
##     /u03/oradata/SIDNAME/tools01.dbf
##
## our goal is to restore this file to:
##     /u04/oradata/SIDNAME/tools01.dbf
##


hostname.SIDNAME-> rman target /

RMAN> 
run {
      allocate channel c1 type disk;
      set newname for datafile 6 to '/u04/oradata/SIDNAME/tools01.dbf';
      restore datafile 6;
      switch datafile 6;
}

RMAN> recover datafile 6;

RMAN> exit

hostname.SIDNAME-> sqlplus /nolog

SQL> alter database datafile 6 online;

That's all.