Cloning A Database On The Same Server Using Rman Duplicate From Active Database

To clone a database using Rman we used to require an existing Rman backup, on 11g we can clone databases using the "from active" database option.

In this case we do not require an existing backup, the active datafiles will be used as the source for the clone.

In order to clone with the source database open it must be on archivelog mode. Otherwise we can make the clone mounting the source database, as shown in this example.


These are the steps required to complete the clone:


  1. Configure The Network

  2. Create A Password File For The New Database

  3. Create An Init.Ora For The New Database

  4. Create The Admin Directory For The New Database

  5. Shutdown And Startup Mount The Source Database

  6. Startup Nomount The New Database

  7. Connect To The Target (Source) And Auxiliary (New Clone) Databases Using Rman

  8. Execute The Duplicate Command

  9. Remove The Old Pfile

  10. Check The New Database

A step by step example is provided on this file:

rman-duplicate-from-active-database.pdf

Comments:

Cloning is also very easy with the Oracle Enterprise Manager grid control. With just a few clicks a cloning job is created. On a small database (<5Gb) it will be ready in less than ten minutes. Optionally, a post-cloning job to anonimize data ('Data Masking') can be executed in the same run.

Posted by Paul Alsemgeest on August 03, 2010 at 01:44 AM IDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

bocadmin_ww

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today