Cloning A Database Using RMAN
Cloning A Database Using RMAN
Release 1.0.0
December 2013
RMAN restore Database to Different Server on Oracle Linux , Release 1.0.0
This software and related documentation are provided under a license agreement containing restrictions on
use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your
license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify,
license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means.
Reverse engineering, disassembly, or recompilation of this software, unless required by law for
Interoperability is prohibited.
The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any
errors, please report them to us in writing.
RMAN Restore Database to Different Server
Release 1.0.0 December 2013
Table of Contents
Preface...............................................................................................................................................................
Audence........................................................................................................................................................
Supporting Documentation...........................................................................................................................
Pre-requisite.................................................................................................................................................
Set DBID and Oracle SID on Destination Server........................................................................................
Locate Backup of INIT/SPFILE and restore on Destination Server............................................................
Shutdown/Startup Database in Nomount Mode...........................................................................................
Restore Control File on Destination Server.................................................................................................
Change Database to Mount Mode................................................................................................................
Create database directory structure on Destination Server...........................................................................
Run RMAN restore database........................................................................................................................
Run RMAN recover database.......................................................................................................................
Change Database to Open Mode with RESETLOGS..................................................................................
Make Backup of Database on Destination Server........................................................................................
1
RMAN Restore Database to Different Server
Release 1.0.0 December 2013
Preface
Audience
The iTracIMS® RMAN restore Database to Different Server on Oracle Linux guide is intended for System Administrator
or Database Administrator responsible for configuring Oracle database and Linux environment.
To use this white paper you must have administrative privileges on the Server where you will use Oracle RMAN backup
to restore database on Destination Server. You must have root privileges on system and familiarity with Linux Operating
System. You must have experience in Oracle database administration configuration and installation.
Supporting Documentation
http://docs.oracle.com/cd/B28359_01/backup.111/b28273/rcmsynta040.htm
http://docs.oracle.com/cd/B14117_01/server.101/b10734/rcmrecov.htm
2
RMAN Restore Database to Different Server
Release 1.0.0 December 2013
Pre-requisite
Have a RMAN backup of Source Database with Controlfile and INIT/SPFILE.
1.) Set DBID and ORACLE SID of Source Database on Destination Server
[oracle@FCIAS-ORADEV-1 admin]$ ORACLE_SID=DEV11242
DEV11242
RMAN>set dbid=11111111
executing command: SET DBID
4.) Locate your backup CONTROL FILE and Restore to Destination Server
RMAN> connect target /
connected to target database: DEV11242 (not mounted)
3
RMAN Restore Database to Different Server
Release 1.0.0 December 2013
FILE# NAME
---------- ------------------------------------------------------------
1 /u01/app/oracle/oradata/DEV11242/system01.dbf
2 /u01/app/oracle/oradata/DEV11242/sysaux01.dbf
3 /u01/app/oracle/oradata/DEV11242/undotbs01.dbf
4 /u01/app/oracle/oradata/DEV11242/users01.dbf
5 /u02/app/oracle/oradata/DEV11242/itrac_wsis.dbf
6 /u02/app/oracle/oradata/DEV11242/itrac_uofr.dbf
7 /u02/app/oracle/oradata/DEV11242/itrac_ccms.dbf
8 /u02/app/oracle/oradata/DEV11242/itrac.dbf
9 /u02/app/oracle/oradata/DEV11242/oasis_ito.dbf
10 /u02/app/oracle/oradata/DEV11242/itrac_sktel.dbf
You will need to create the same directory structure on the Destination Server.
You will need to view your INIT/SPFILE file to find directory structure for Control Files, Archive Logs, DUMPS, Audit
files etc and create these directory structure on the destination server.
7.) Run RMAN RESTORE DATABASE to apply RMAN backup pieces of Source Database
This should restore all your data files to the directory structure created in the prior step.
8.) Run RMAN RECOVER DATABASE to apply all the archive logs on Destination Server
Media recovery reapplies all changes from the archived and online redo logs and available incremental backups to
datafiles restored from backup.
4
RMAN Restore Database to Different Server
Release 1.0.0 December 2013