RMAN restore PRD to QA, different DBID, different location [message #360158] |
Wed, 19 November 2008 20:06 |
shayna
Messages: 2 Registered: November 2008
|
Junior Member |
|
|
I us RMAN to backup PRD and QA.
I need to refresh QA with PRD database.
How do I restore PRD to QA using different sid/dbid and different data file locations/directories?
Looking for step to do this.
Help on step not sure if this is correct?
--rman / target
run {
set DBID <number would be for QA>
startup nomount
restore controlfile from '/u01/oracle/product/ora10g/dbs/c-3932056136-20070213-02' ;
alter database mount ;
---Rename the Redologfiles--
SQL> alter database rename file '/u01/oracle/product/log/redo01.log' to '/u02/oracle/test/log/redo01.log';
---restore the datafiles to new locations and recover--
set newname for datafile '/u01/prd/data/sys01.dbf' to '/u02/oracle/test/data/sys01.dbf';
restore database;
switch datafile all;
recover database;
alter database open resetlogs;
}
|
|
|
|