RMAN

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 2

Duplicating a Database using RMAN……………

This article provides a quick introduction on how to duplicate a database using the
RMAN DUPLICATE DATABASE command on the UNIX / Linux operating
environment. For this demonstration, we will create a duplicate target database using
RMAN's DUPLICATE DATABASE command to the same host (localhost) of the target
database.

Pre-requisites

1. A valid full database backup of the target database.


2. Target database must be mounted or open.

Steps Required

1. Create all needed FOLDER for the duplicate database.


2. Create an Initialization Parameter for the Auxiliary Database. And configure the
file with two new parameters.

db_file_name_convert = ('d:\oracle\oardata\grid', 'e:\oracle\oardata\


Dupgrig')
log_file_name_convert = ('d:\oracle\oardata\grid', 'e:\oracle\
oardata\Dupgrig')

3. Create Password File for Auxiliary Database.

Example:

C:>orapwd file=e:\oracle\ora92\database password=sys123 entries=10.

4. Create / Start the Auxiliary Instance.

C:>oradim –new –sid dupgrid -intpwd sys123 –maxusers 10 –startmode auto –pfile
e:\oracle\admin\dupgrid\pfile\init.ora.

C:>set oracle_sid=dupgrid

C:>sqlplus/nolog

SQL>conn sys/sys123 as sysdba

SQL>startup nomount pfile= e:\oracle\admin\dupgrid\pfile\init.ora.


5. Ensure Oracle Net Connectivity to Auxiliary Database and target Database.
6. Mount or Open the Target Database.

C:>set oracle_sid=grid
C:>sqlplus/nolog
SQL>conn sys as sysdba
SQL>startup

7. Make sure you Have the Necessary Backups and Archived Redo Log Files.

C:>rman

RMAN>connect target sys/sys123@grid


RMAN>run
{allocate channel c1 type disk;
allocate channel c2type disk;
backup database;
backup (archivelog all);
}
8. Login to Target and Auxiliary Database using RMAN.

C:> rman target sys/sys1230@grid auxiliary ys/sys123@dupgrid

9. Run the RMAN DUPLICATE DATABASE Command

Rman> run {
allocate auxiliary channel ch1 type disk;

duplicate target database to dupgrid;


}
10.Open the duplicate database with resetlogs option

SQL>alter database open resetlogs.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy