Disaster Recovery [message #286090] |
Thu, 06 December 2007 07:46 |
M.Shakeel Azeem
Messages: 226 Registered: September 2006
|
Senior Member |
|
|
Dear All,
I m testing disaster recvover plan by using the following link
http://www.orafusion.com/art_rman3.htm
it was an excellent document but it is required to have SERVER with same no. of drives and directory structure
but what if we have a server with different no. of drives and directory structure
e.g. we have all datafiles,controlfiles and Redolog files at d:\oracle\oradata previously but now i want to restore datafiles at e:\oracle\oradata in New Server
According to the document we should have d:\oracle\oradata to make disaster recovery possible
i managed to restore control file at different location by adding the following steps
1-SQL>create pfile from spfile;
modiby pfile created by the above command
control_files should be modified
2-SQL>startup force nomount pfile='D:\oracle\ora92\database\initTEST.ora';
3-SQL>create spfile from pfile;
4-SQL>startup force nomount;
5-RMAN>restore controlfile from 'd:\oracle\...'
6-RMAN>alter database mount;
But when i try to restore datafiles at different location by using the following
RMAN>run {
set newname for datafile 'D:\ORACLE\ORADATA\TEST\SYSTEM01.DBF' to 'D:\ORACLE\ORADATA\TEST1\SYSTEM01.DBF';
set newname for datafile 'D:\ORACLE\ORADATA\TEST\UNDOTBS01.DBF' to 'D:\ORACLE\ORADATA\TEST1\UNDOTBS01.DBF';
set newname for datafile 'D:\ORACLE\ORADATA\TEST\CWMLITE01.DBF' to 'D:\ORACLE\ORADATA\TEST1\CWMLITE01.DBF';
set newname for datafile 'D:\ORACLE\ORADATA\TEST\DRSYS01.DBF' to 'D:\ORACLE\ORADATA\TEST1\DRSYS01.DBF';
set newname for datafile 'D:\ORACLE\ORADATA\TEST\EXAMPLE01.DBF' to 'D:\ORACLE\ORADATA\TEST1\EXAMPLE01.DBF';
set newname for datafile 'D:\ORACLE\ORADATA\TEST\INDX01.DBF' to 'D:\ORACLE\ORADATA\TEST1\INDX01.DBF';
set newname for datafile 'D:\ORACLE\ORADATA\TEST\ODM01.DBF' to 'D:\ORACLE\ORADATA\TEST\ODM01.DBF';
set newname for datafile 'D:\ORACLE\ORADATA\TEST\TOOLS01.DBF' to 'D:\ORACLE\ORADATA\TEST1\TOOLS01.DBF';
set newname for datafile 'D:\ORACLE\ORADATA\TEST\USERS01.DBF' to 'D:\ORACLE\ORADATA\TEST1\USERS01.DBF';
set newname for datafile 'D:\ORACLE\ORADATA\TEST\XDB01.DBF' to 'D:\ORACLE\ORADATA\TEST1\XDB01.DBF';
restore database;
switch datafile all;
}
or
run {
set newname for datafile 1 to 'D:\ORACLE\ORADATA\TEST1\SYSTEM01.DBF';
set newname for datafile 2 to 'D:\ORACLE\ORADATA\TEST1\UNDOTBS01.DBF';
set newname for datafile 3 to 'D:\ORACLE\ORADATA\TEST1\CWMLITE01.DBF';
set newname for datafile 4 to 'D:\ORACLE\ORADATA\TEST1\DRSYS01.DBF';
set newname for datafile 5 to 'D:\ORACLE\ORADATA\TEST1\EXAMPLE01.DBF';
set newname for datafile 6 to 'D:\ORACLE\ORADATA\TEST1\INDX01.DBF';
set newname for datafile 7 to 'D:\ORACLE\ORADATA\TEST\ODM01.DBF';
set newname for datafile 8 to 'D:\ORACLE\ORADATA\TEST1\TOOLS01.DBF';
set newname for datafile 9 to 'D:\ORACLE\ORADATA\TEST1\USERS01.DBF';
set newname for datafile 10 to 'D:\ORACLE\ORADATA\TEST1\XDB01.DBF';
restore database;
switch datafile all;
}
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting restore at 06-DEC-07
using channel ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 12/06/2007 18:26:15
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 10 found to restore
RMAN-06023: no backup or copy of datafile 9 found to restore
RMAN-06023: no backup or copy of datafile 8 found to restore
RMAN-06023: no backup or copy of datafile 7 found to restore
RMAN-06023: no backup or copy of datafile 6 found to restore
RMAN-06023: no backup or copy of datafile 5 found to restore
RMAN-06023: no backup or copy of datafile 4 found to restore
RMAN-06023: no backup or copy of datafile 3 found to restore
RMAN-06023: no backup or copy of datafile 2 found to restore
RMAN-06023: no backup or copy of datafile 1 found to restore
Please suggest !
I'll thankful to you
|
|
|
Re: Disaster Recovery [message #286139 is a reply to message #286090] |
Thu, 06 December 2007 10:15 |
DreamzZ
Messages: 1666 Registered: May 2007 Location: Dreamzland
|
Senior Member |
|
|
But when i try to restore datafiles at different location by using the following
RMAN>run {
set newname for datafile 'D:\ORACLE\ORADATA\TEST\SYSTEM01.DBF' to 'D:\ORACLE\ORADATA\TEST1\SYSTEM01.DBF';
set newname for datafile 'D:\ORACLE\ORADATA\TEST\UNDOTBS01.DBF' to 'D:\ORACLE\ORADATA\TEST1\UNDOTBS01.DBF';
set newname for datafile 'D:\ORACLE\ORADATA\TEST\CWMLITE01.DBF' to 'D:\ORACLE\ORADATA\TEST1\CWMLITE01.DBF';
set newname for datafile 'D:\ORACLE\ORADATA\TEST\DRSYS01.DBF' to 'D:\ORACLE\ORADATA\TEST1\DRSYS01.DBF';
set newname for datafile 'D:\ORACLE\ORADATA\TEST\EXAMPLE01.DBF' to 'D:\ORACLE\ORADATA\TEST1\EXAMPLE01.DBF';
set newname for datafile 'D:\ORACLE\ORADATA\TEST\INDX01.DBF' to 'D:\ORACLE\ORADATA\TEST1\INDX01.DBF';
set newname for datafile 'D:\ORACLE\ORADATA\TEST\ODM01.DBF' to 'D:\ORACLE\ORADATA\TEST\ODM01.DBF';
set newname for datafile 'D:\ORACLE\ORADATA\TEST\TOOLS01.DBF' to 'D:\ORACLE\ORADATA\TEST1\TOOLS01.DBF';
set newname for datafile 'D:\ORACLE\ORADATA\TEST\USERS01.DBF' to 'D:\ORACLE\ORADATA\TEST1\USERS01.DBF';
set newname for datafile 'D:\ORACLE\ORADATA\TEST\XDB01.DBF' to 'D:\ORACLE\ORADATA\TEST1\XDB01.DBF';
You mentioned the same path??
|
|
|
|
|
|
|
Re: Disaster Recovery [message #286543 is a reply to message #286090] |
Sat, 08 December 2007 01:01 |
M.Shakeel Azeem
Messages: 226 Registered: September 2006
|
Senior Member |
|
|
Dear Muhammad Taj,
I didn't find any Restore command with tags in the link u provided but please look at my problem which i am facing during restore to different location
run {
set newname for datafile 1 to 'D:\ORACLE\ORADATA\TEST1\SYSTEM01.DBF';
set newname for datafile 2 to 'D:\ORACLE\ORADATA\TEST1\UNDOTBS01.DBF';
set newname for datafile 3 to 'D:\ORACLE\ORADATA\TEST1\CWMLITE01.DBF';
set newname for datafile 4 to 'D:\ORACLE\ORADATA\TEST1\DRSYS01.DBF';
set newname for datafile 5 to 'D:\ORACLE\ORADATA\TEST1\EXAMPLE01.DBF';
set newname for datafile 6 to 'D:\ORACLE\ORADATA\TEST1\INDX01.DBF';
set newname for datafile 7 to 'D:\ORACLE\ORADATA\TEST\ODM01.DBF';
set newname for datafile 8 to 'D:\ORACLE\ORADATA\TEST1\TOOLS01.DBF';
set newname for datafile 9 to 'D:\ORACLE\ORADATA\TEST1\USERS01.DBF';
set newname for datafile 10 to 'D:\ORACLE\ORADATA\TEST1\XDB01.DBF';
restore database;
switch datafile all;
}
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting restore at 06-DEC-07
using channel ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 12/06/2007 18:26:15
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 10 found to restore
RMAN-06023: no backup or copy of datafile 9 found to restore
RMAN-06023: no backup or copy of datafile 8 found to restore
RMAN-06023: no backup or copy of datafile 7 found to restore
RMAN-06023: no backup or copy of datafile 6 found to restore
RMAN-06023: no backup or copy of datafile 5 found to restore
RMAN-06023: no backup or copy of datafile 4 found to restore
RMAN-06023: no backup or copy of datafile 3 found to restore
RMAN-06023: no backup or copy of datafile 2 found to restore
RMAN-06023: no backup or copy of datafile 1 found to restore
Please suggest!
ALLAH HAFIZ
|
|
|
|
|
Re: Disaster Recovery [message #286709 is a reply to message #286608] |
Sun, 09 December 2007 23:39 |
M.Shakeel Azeem
Messages: 226 Registered: September 2006
|
Senior Member |
|
|
Dear Arju
I m sure i set DBID properly and i am able to reecover my DB without set new name command in RMAN Recovery script but now i want to restore datafiles at different location other than default
Regards,
M.Shakeel Azeem
|
|
|