Cloning An Oracle
Cloning An Oracle
3 Votes
Table of Contents
1. Purpose of the document
2. Document Usage
3. Overview of the Procedure
3.1 Introduction
3.2 Environments
3.3 Assumption
3.4 Cloning Process
3.4.1 Steps to be followed in Primary database:
3.4.2 Steps to be followed in the Secondary database server:
5. Conclusion
1. This document illustrates a process to clone an Oracle database using hot backup. The
following sections are covered in this document
Overview
Environments
Assumptions
Cloning process
2. Document Usage
This document can be useful for any Oracle DBA for cloning an Oracle database. Generally
cloning databases with the help of source database hot backup is a standard process to
effectively and efficiently create a replica of the source database. The process illustrated in
this document can be used by any DBA who wants to create a replica of an Oracle database
with the help of hot backup and the associated archive logs.
3. Overview of the Procedure
3.1 Introduction
Cloning database is one of the routine DBA activities. Any DBA who administers various
environments and is supporting the application development team for database activities has
to periodically synchronize the acceptance/testing/development with the Production data.
This frequency of synchronization depends upon the business and application development
teams requirements. Generally this process can be done with the below mentioned procedures
1)EXPORT/IMPORT utilities
2)DATA PUMP
3)Cold Backup Restoration
4)Hot Backup Recovery
Each of the above mentioned process has got its own pros and cons. To state a few vital
reasons why Hot backup recovery process is chosen widely
a)You can recover to the most recent time period.
b)Doesnt require outage of the source database
c)Requires less time compared to the other process
d)Best method for large databases
3.2 Environments
1. Primary or the Source database system
2. Secondary or the Target database system
3.3 Assumption
Primary database operated in ARCHIVELOG mode.
Secondary database to be created by cloning in a different server
Primary and Secondary environment Operating system are same.
3.4 Cloning Process
3.4.1 Steps to be followed in Primary database:
1)Perform HOTBACKUP of all the data files
2)LSN number
Login as sys as sysdba
Sql> Alter system archive log current;
Sql> Archive log list
Note down the Current Log Sequence
SHUTDOWN IMMEDIATE;
STARTUP;
13)Check for errors in bdump.
14)Check log switch.
15)Check redo log archival
16)Compare the users, objects, size with the Primary database
17)Take a complete cold back up and maintain that as generation 0 backup.
You have cloned the database.
5. Conclusion
Hot backup recovery is one of the best methods to clone database because there is no outage
or down time required in the primary database and data is replicated in secondary database to
the most recent time period.