Rman restore in new server?
My linux machine hardisk has crashed, i am rebuilt entire thing from begining, we have the rman backup & controlfiles & init.ora, pwd file in the tape.
How to rebuild the database from the new catalog. appreciate any body provide a rman step to restore & rebuild...
Adv thanks
>>
Whether i need to create catalog first?. Steps pls
>>
Tell us onething, were was the catalog kept? Was it in the same database? or any other database? or you were using controlfile instead catalog to backup your database?
Lets, catalog is maintained in another database or nocatalog (controlfile) is used to backup.
set oracle_sid
startup nomount
rman target /
run {
allocate channel t1 type 'sbt_tape';
restore controlfile to '<destination>';
sql "alter database mount";
restore database;
recover database;
sql "alter database open resetlogs";
}Jaffar
Similar Messages
-
I have a complete backup of the source server and I would like to restore it to target server.
Problem is that on my source server I have the complete backup on "E" Drive.
On My target server I just have C and D Drives.
When I try to run Restore database command I get
RMAN-06023: no backup or copy of datafile 1 found to restore
for all the data files as it is looking for my backups on "E" drive which does not exist on Target Server.
Is there a way I can guide RMAN to look on D: drive when restoring?
Thanks
Edited by: user12180649 on May 16, 2012 8:07 AMuser12180649 wrote:
I have a complete backup of the source server and I would like to restore it to target server.
Problem is that on my source server I have the complete backup on "E" Drive.
On My target server I just have C and D Drives.
When I try to run Restore database command I get
RMAN-06023: no backup or copy of datafile 1 found to restore
for all the data files as it is looking for my backups on "E" drive which does not exist on Target Server.
Is there a way I can guide RMAN to look on D: drive when restoring?
Thanks
Edited by: user12180649 on May 16, 2012 8:07 AMOnce you have your controlfile, you can connect to RMAN, delete all the backup piece, and add the new with the new position.
The syntax is:
delete backup; -- to delete all the backups information
catalog start with 'PATH'; -- to add all the backup piece to the "catalog" that in this case could is in the controlfiles.
Other syntax:
http://docs.oracle.com/cd/B19306_01/backup.102/b14194/rcmsynta011.htm
Hope this helps.
Nunzio -
RMAN Hot backup Restore in new Server
Hi,
Our Current Environment:
Source: Current Production
Database: 11.1.0.7
OS: Windows server 2003 R2
Target Environemnt:
Database 11.2.0.1
OS:windows server 2008 R2
Here my scenario is need to take RMAN Hot backup in Prod Instance and need to restore in New Server with smae SID which is going to use as Prod instance.
Please suggest the detailed steps in order to achive the goal.
Waiting for your thoughts.
Thanks
ShaikRMAN can make it easy to restore a database to a new host.
Notice that: Using RMAN RESTORE and RECOVER commands to move a database permanently to another host, will keep the original database identifier (DBID) and will therefore cause a conflict in the RMAN repository, because the restored database with the same DBID will be considered the current target database.
Below you may find the steps:
Preparing the New Host
Record the DBID of the source database.
Copy the initialization parameter file from the source database to the new host.
Make sure that all source database backups are available to the new host. Do not connect to the recovery catalog.
Restoring and Recovering on the New Host
Configure environment variables on the new host.
Connect to the new target database with NOCATALOG.
Set the DBID.
Start the instance with NOMOUNT.
Restore the SPFILE from backup.
Shut down the new instance.
Edit the PFILE.
Start the instance with NOMOUNT (again).
Create an RMAN RUN block to restore the control file.
Create an RMAN RUN block to restore and recover the database.
Open the database with RESETLOGS.
Regards, -
Oracle 10.2.0.3 Databases - Restore to New Server
We will soon be replacing an old server with a new server and I need to restore all Oracle 10.2.0.3 databases to the new server
and ensure Oracle functionality/connectivity with all databases.
I am in the process of testing and need advice and hopefully a 'Step by Step' process I can follow.
I am a systems admin - not an Oracle db admin - so please explain details of any commands I may have to run.
I have already tested once:
ran command prompt: sqplus / as sysdba
SQL>shutdown immediate;
Stopped all Oracle services:
Oracle Database
Oracle Listener
Oracle DBConsole
Installed Oracle 10.2.0.3 on new server
Ensured that the SID and all other Oracle services information matched the old server during installation on the new server.
Stopped all Oracle services on the new server (used the steps above).
Backed-up and test restored to new server.
Enterprise Manager shows: Listener Up Database Instance Down Agent Down
Any help would be appreciatedIt would be good to know your operation system. I hope both new and old match or similar.
You can use RMAN to dumplicate you DB so you can follow [Creating a Duplicate Database on a New Host. Doc ID: 388431.1|https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&id=388431.1]
but a simple file system copy based manual duplication is also possible if new and old OS system is similar... -
Restore on new server with new DB_NAME/SID?
My goal is to restore database with the RMAN backup on a server that has no connectivity to the production database (I don’t want to use duplicate command).
I restore a database from RMAN using a same DB_NAME/SID and everything was ok.
- restore spfile
- restore controlfile
- restore database
- recover database
- open with reset logs
Now I want to restore database but with different DB_NAME/SID (My production database is PROD and I want to restore this PROD RMAN backup on new server and this new database I want to be called DEV).
How to restore database with new DB_NAME/SID?
Oracle 10g, Windows Server 2003
Thanks in advance!user9106065 wrote:
My goal is to restore database with the RMAN backup on a server that has no connectivity to the production database (I don’t want to use duplicate command).
I restore a database from RMAN using a same DB_NAME/SID and everything was ok.
- restore spfile
- restore controlfile
- restore database
- recover database
- open with reset logs
Now I want to restore database but with different DB_NAME/SID (My production database is PROD and I want to restore this PROD RMAN backup on new server and this new database I want to be called DEV).
How to restore database with new DB_NAME/SID?
Oracle 10g, Windows Server 2003
Thanks in advance!You can use NID command
Run NID and you can see the options to run
or see How to Change the DBID, DBNAME Using NID Utility in version 10GgR2 onwards [ID 863800.1]
Cheers -
RMAN backup restoring to new server help!
I'm using Oracle 8.1.7. The production database was copied (datafiles, controlfile etc) to a NEW server that I'm trying to set up as a development DB. I take full database backups using RMAN from the production server, and I want to restore them on the development server. I think I somehow have to specify the filename/location of the backup file but I can't seem to figure out how to do it.
I am not using a recovery catalog.
Any help is appreciated.If you restore the controlfile backup to the development server RMAN
will "read" the expected location of the backupsets from there.
In 8i you cannot use the CATALOG command so you have to copy all
the backupsets to the same path on the development server as on the
production server.
Once you have your init.ora and controlfiles in place (and created the
expected target directory structure for the database and redolog files),
you can use STARTUP MOUNT and thene RESTORE from RMAN.
I believe that you should be able to rename files in 8i RMAN as well.
If not, you'll have to stick to restoring to the same location.
The key thing is that the controlfile records the "location" of the RMAN backupsets
and the "location" where datafiles are to be restored to. -
Restore RMAN backup on new server
Hi
I took RMAN backup of a database with control file autobackup on...I copied the backup
to a new server restored the spfile from the backup and modified the parameters
bdump,udump,control file because the directory structure is different from the original
machine.I restored the control file and it was restored properly.
Now I need to restore the datafiles in the new path so I used set newname and switch
but I get some error ....I have posted the error please look at it
RMAN> run
2> {
3> set newname for datafile 1 to 'E:\ORACLE\METAGRID\ORADATA\METAGRID\SYSTEM01.DBF';
4> set newname for datafile 2 to 'E:\ORACLE\METAGRID\ORADATA\METAGRID\UNDOTBS01.DBF';
5> set newname for datafile 3 to 'E:\ORACLE\METAGRID\ORADATA\METAGRID\SYSAUX01.DBF';
6> set newname for datafile 4 to 'E:\ORACLE\METAGRID\ORADATA\METAGRID\USERS01.DBF';
7> set newname for datafile 5 to 'E:\ORACLE\METAGRID\ORADATA\METAGRID\TSDATA_01.DBF';
8> set newname for datafile 6 to 'E:\ORACLE\METAGRID\ORADATA\METAGRID\TSIDX01.DBF';
9> set newname for datafile 7 to
'E:\ORACLE\METAGRID\ORADATA\METAGRID\TSDATA_AUDIT01.DBF';
10> restore database;
11> switch datafile all;
12> recover database;
13> }
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 11-NOV-10
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile backupset restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00001 to E:\ORACLE\METAGRID\ORADATA\METAGRID\SYSTEM01.DBF
restoring datafile 00002 to E:\ORACLE\METAGRID\ORADATA\METAGRID\UNDOTBS01.DBF
restoring datafile 00005 to E:\ORACLE\METAGRID\ORADATA\METAGRID\TSDATA_01.DBF
restoring datafile 00006 to E:\ORACLE\METAGRID\ORADATA\METAGRID\TSIDX01.DBF
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 11/11/2010 12:38:24
ORA-19693: backup piece E:\RMAN\DB_0FLSLJH1_1_1 already includedTry to clear and recatalog the backups to be used, before the restore:
rman target /
crosscheck backup;
delete expired backup;
catalog start with 'path_to_your_backup'; -
RMAN backup restore on new server with CATALOG START WITH
Hello Experts,
CATALOG START WITH
is this required RMAN in catalog mode ?
reference of post
Disastor Recovery with RMAN : Restore backup on new separate Server
Edited by: 873142 on Jul 18, 2011 9:27 PMIf you use a recovery catalog and want to duplicate database in a fresh server.
1. connect with the target database.
2. connect with the recovery catalog.
3. connect with the auxiliary database.
4. Run the duplicate command.
Before running the duplicate command copy the backup piece to your fresh server from the target server. Both mount point should be same.
Regards
Asif Kabir
-- mark your helpful post as correct/helpful. -
Hi
I have rman tape backup of the entire database. I want to clone this on new server.
I have started database in new server. It is in mount stage. how to restore and recover the datafiles on new host.
I am using leagato server for tape backup. Please guide me on this.You need to use RMAN DUPLICATE and to adapt following steps to your environment http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmdupdb.htm#i1006474.
About tape backups, please note:
>
When using tape backups, you must make the tapes containing the backups accessible to the remote node. You can achieve this goal by physically moving the tape to a drive attached to the remote host or by means of a network-accessible tape server. -
Impact of Rman restore on test server.
Hi,
I am working on oracle 10g on linux 64 bit
I have rman backup from production database. Name and SID of production database is Prod1 and i want to to check this RMAN backup after restoring it on the other test server (VMDB) for Disaster recovery.
Now problem is that, i want to test it for DR, where i only need to run a script to restore and recover a database at the time of disaster in production site.
My disaster recovery site will be in different network, so i can keep the name of database and sid same as of Production but is it possible that i could install the database in test database with same db name and same sid as of Production when Test and Production database are in same network.
What will be the steps if i want to have a single script to restore database to new server. Do i need to create database with installation of Oracle on test machine or RMAN script will create database by itself.
Do i need to set same dbid as of production in test database before restore. What can be the problems when i have production database running and i am restoring backup of same database on test machine with different IP address but same database name and SID and setting same DBID. I am not using catalog
I have a full backup of database +Auto backup of controlfile and spfile
Production database is being accessed by client via TOMCAT server.>
is it possible that i could install the database in test database with same db name and same sid as of Production when Test and Production database are in same network.
>Yes it is possible.
>Do i need to create database with installation of Oracle on test machine or RMAN script will create database by itself.
>
There is no need to run CREATE DATABASE. Running the right RMAN RESTORE statements will recreate database control files, datafiles and redo log files.
>What will be the steps if i want to have a single script to restore database to new server.
>
Note that in case of disaster recovery, you must make sure that RMAN backups are available from test server.
You can try to apply following example to your environment:
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmrecov.htm#BRADV156
>
What can be the problems when i have production database running and i am restoring backup of same database on test machine with different IP address but same database name and SID and setting same DBID. I am not using catalog If you are not using RMAN catalog, risks are limited: you should take care at least:
1. that Oracle Net configuration files (tnsnames.ora) used in production are not updated
2. that any tool/script you are using to manage (monitor, backup, etc.) the test database does not interfere with the production database. -
BACKUP FROM OLD SERVER & RESTORE TO NEW SERVER
Hi ,
i have install SAP on New Server (ADM X86) , it has good hardware. that why i want to shiftout from old deveopment Server to new Server . From old server i want to take backup through DB13 and restore through Brtools on new server. backup will be on disk.
please guide me which type of backup should be taken ?
and what is difft b/t whole backup and full backup ?
NEW SERVER with 2 Quard core processor, 24 GB RAM
OS= SOLARIS 10
DB= Oracle 10.2.0.4 with 39 Interim opatch
SAP= Ecc 6.0
Hostname=sapdev
System No.=00
OLD Server(SPARK) WITH 1 Dual Core Processor , 6 GB RAM
OS= SOLARIS 10
DB= Oracle 10.2.0.4 with 39 Interim opatch
SAP= Ecc 6.0
Hostname=devsap
System No.=00
Best Regard
Imran KhanHi Imran,
In you have a full backup, using this existing backup further you can take incremental backups. The incremental backup is based on the previous full backup. The full and incremental backups is controlled by RMAN (Recovery manager).
You can take a full backup and restore the same in your new server and later take an incremental backup from your old server and restore it to the new server for all the delta changes made. By this you can make sure that your production data is made consistent in the new server.
If you have sufficient dowtime then, you can take a whole DB backup with redo log files and restore them in your new server.
There is no difference between whole backup and full backup, with respect to the database data.
784118 - System Copy Java Tools
check the OraBrcopy tool in this note. It might help you.
regards,
chandru. -
Rman restore to windows server with different drive layout
I'm restoring to a server with a different drive layout. I'm using the set newname for the datafiles and it's working fine. However. My redo logs show that they are on the f: drive and the f: drive doesn't exist on the new server (recovery). so when I'm all done I get an error saying that it cant find the redo02.log. Any ideas?
TIA
Daveno problem, thanks for the reply.
Here's what I tried in the init.ora
LOG_FILE_NAME_CONVERT=('F:\ORADATA\ORCQA08','D:\ORADATA\ORCQA08')
I didn't even create the spfile I figured I could do that later.
The datafiles alll go to the correct drive, here's my restore statement:
run
allocate channel disk_channel1 type disk;
allocate channel disk_channel2 type disk;
SET NEWNAME for datafile 1 to 'd:\ORADATA\ORCQA08\SYSTEM01.DBF';
SET NEWNAME for datafile 2 to 'd:\ORADATA\ORCQA08\SYSAUX01.DBF';
SET NEWNAME for datafile 3 to 'e:\ORADATA\ORCQA08\UNDOTBS01.DBF';
SET NEWNAME for datafile 4 to 'd:\ORADATA\ORCQA08\USERS01.DBF';
SET NEWNAME for datafile 5 to 'e:\ORADATA\ORCQA08\PLATDATA.DBF';
SET NEWNAME for datafile 6 to 'd:\ORADATA\ORCQA08\PLATHISTDATA.DBF';
SET NEWNAME for datafile 7 to 'd:\ORADATA\ORCQA08\TS_MV.DBF';
SET NEWNAME for datafile 8 to 'e:\ORADATA\ORCQA08\PLATNDX.DBF';
SET NEWNAME for datafile 9 to 'd:\ORADATA\ORCQA08\POADATA.DBF';
SET NEWNAME for datafile 10 to 'd:\ORADATA\ORCQA08\POABDATA.DBF';
SET NEWNAME for datafile 11 to 'd:\ORADATA\ORCQA08\POANDX.DBF';
SET NEWNAME for datafile 12 to 'd:\ORADATA\ORCQA08\TS_REPORT_DATA.DBF';
restore database;
release channel disk_channel1;
release channel disk_channel2;
i then do a switch database to copy and this registers the datafiles under the correct drive BUT when I try to open the database this is what i get:
ORA-00280: change 15613734 for thread 1 is in sequence #861
ORA-00278: log file
'D:\oracle\flash_recovery_area\ORCQA08\ARCHIVELOG\2012_08_03\ARC0000000860_07815
80447.0001' no longer needed for this recovery
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
cancel
Media recovery cancelled.
SQL> alter database open resetlogs;
alter database open resetlogs
ERROR at line 1:
ORA-00344: unable to re-create online log 'F:\ORADATA\ORCQA08\REDO01.LOG'
ORA-27040: file create error, unable to create file
OSD-04002: unable to open file
O/S-Error: (OS 3) The system cannot find the path specified.
You can see that it's still looking on the f: drive for the redo log. Is my syntax correct?? - - LOG_FILE_NAME_CONVERT=('F:\ORADATA\ORCQA08','D:\ORADATA\ORCQA08')
I can get rid of the other redo logs by dropping them and recreating under the proper drive but 01 is the active log.
any other ideas?
Dave -
I need to RMAN Duplicate database from One Server to New Server. However both Target Database and Auxiliary databases must have same name.
Is it possible?
Database version 11gSet the duplicate database DB_NAME differently from the target database DB_NAME in some cases. If the duplicate database exists in the same Oracle home as the target, then the DB_NAME initialization parameter must be different. If the duplicate database resides in a different Oracle home (on the same machine or on another machine), then its DB_NAME setting just has to be different from other database names in the same Oracle home on the duplicate host.
-
RMAN restore to another server - step by step
I have hot backups on tape, with catalog.
I have a prod database and a auxiliary database, but their names are the same..
I need to know the steps to perform a restore to auxiliary database´s machine (same plataform).
I´m doing the folowing for test purpose (the auxiliary database is in nomount state).
1) on AUXILIARY machine: rman target rman/pwd@PROD auxiliary sys/pwd
2) restore controlfile to 'c:\teste' from autobackup;
But, the controlfile was restored on PRODUCTION database´s machine.
Why?!
TIA
RogérioThanks for your help Kuljeet.
But i still have the same problem: if the *Backup must be available on new host" i need to restore to the new host. My problem is: I don´t know to do that using RMAN (my backup is in tape). In all my tests, the backup (controlfile) was restored to the target database´s host. If I try to restore the whole database, the target database will be overwrite. (Sorry for my english).
1) Where I connect to rman: in target database´s machine, in auxiliary database´s machine, etc? I think is in auxiliary database´s machine
2) How to connect? rman target user/pwd@database catalog user/pwd@database auxiliary sys/sys OR rman target user/pwd@database auxiliary sys/sys OR other?
Thanks
Rogerio -
Hey, I am trying to create a manual standby using this metalink article:
Alternative for standby database in standard edition [ID 333749.1]
First I create a hotbackup from my rac configuration
then
SQL>alter database backup controlfile to '/tmp/standby.ctl';
copy all over to the standby database.
startup nomount pfile=init<sid>.ora
alter database mount
--> rman target /
restore database --> all files are getting restored.
Then I try to recover the database by applying the archivelogs - thats not working.
I added the archivelog backup to the rman --> start catalog with '/tmp/.......'
Both configurations are using ASM: diskgroup DATA & RECO
So no file name convert neccessary
Any ideas whats wrong ?
Now I get these messages
QL> recover database using backup controlfile until cancel;
ORA-00279: Anderung 1079665, erstellt von 02/15/2011 13:26:56. Erforderlich fur
Thread 1
ORA-00289: Vorschlag: +RECO
ORA-00280: Anderung 1079665 fur Thread 1 in Sequenz #53
Log angeben: {<RET>=suggested | filename | AUTO | CANCEL}
AUTO
ORA-00308: Archiviertes Log '+RECO' kann nicht geoffnet werden
ORA-17503: ksfdopn:2 konnte Datei +RECO nicht offnen
ORA-15045: ASM-Dateiname "+RECO" hat nicht das Format fur Referenzen
ORA-00308: Archiviertes Log '+RECO' kann nicht geoffnet werden
ORA-17503: ksfdopn:2 konnte Datei +RECO nicht offnen
ORA-15045: ASM-Dateiname "+RECO" hat nicht das Format fur Referenzen
ChrisI added the archivelog backup to the rman --> start catalog with '/tmp/.......'but 'recover database using backup controlfile until cancel;' is a command issued in sqlplus,'catalog' does not apply.
The controlfile expects the archivelogs in diskgroup +RECO, but these are physically located under /tmp.
When prompted you have to provide these logfiles from /tmp, this has to be done manually. After the last available archivelog,stop with 'cancel'.
Werner
Maybe you are looking for
-
Pessoal, Eu consegui fazer aqui os ajustes da TAXBRJ me baseando na configuração mencionada pela nota SAP 747607 (MP135) para o PIS e COFINS e inclusive a contabilização agora está sendo direcionada para as contas de Curto (25% do valor do imposto) e
-
Hello , i am using james 2.2.0 installed on a server with a online DNS , it recives mails properly , but when i try to send emails ( also when using Authenticated SMTP) , mail go to junk mails ( as hotmail and yahoo) , When i use Outlook express outs
-
I have a problem with Flash converting. I have a one swf file that will not open in Adobe Flash. The problem , however, is the following . I want to edit swf file and to access the fla file , I use Sothink decompiler where I convert the same Swf file
-
Mouse problems...
I have a MacBook Pro (15" Late 2011) with Mavericks OS, Boot Camp creating a 225 GB partition running Windows 7 Home Premium. Download of the available drivers via BootCamp for supporting the Windows 7 on my Mac was successful. Most functions work
-
Automatic determination of the route
Hello experts. Is there any way to determine the automatic route for stock transfer between storage locations, using the shipping point of origin and destination? The automatic determination of the route is transport zone and country, being the cente