0% found this document useful (0 votes)
4 views2 pages

Database Duplication

The document describes the steps to duplicate an Oracle database including creating a PFILE, converting file names, backing up the source database, starting the instance in nomount mode, and using RMAN to duplicate the database.

Uploaded by

Augustine Odero
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

Database Duplication

The document describes the steps to duplicate an Oracle database including creating a PFILE, converting file names, backing up the source database, starting the instance in nomount mode, and using RMAN to duplicate the database.

Uploaded by

Augustine Odero
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

CREATE PFILE = '/u01/oracle/EBSDEV/db/tech_st/11.2.0/dbs/initEBSDEV.

ora' FROM SPFILE =


'/u01/oracle/EBSDEV/db/tech_st/11.2.0/dbs/spfileEBSDEV.ora'

*.DB_FILE_NAME_CONVERT='/data/oracle/EBSPRD/db/apps_st/data','/u01/oracle/EBSDEV/db/
apps_st/data','/archive/oracle/EBSPRD/db/apps_st/data','/d01/oracle/EBSDEV/db/apps_st/
data','/redo/oracle/EBSPRD/db/apps_st/data','/d01/oracle/EBSDEV/db/apps_st/data'

*.LOG_FILE_NAME_CONVERT='/redo/oracle/EBSPRD/db/apps_st/data','/u01/oracle/EBSDEV/
db/apps_st/data'

perl adcfgclone.pl dbTechStack

/u01/oracle/EBSDEV/db/apps_st/data

/u01/oracle/EBSDEV/db/tech_st/11.2.0

DATABASE DUPLICATION

Install the oracle software and specify the ORACLE_BASE and ORACLE_HOME appropriately

CREATE PFILE

• All the file source directories must be fully indicated

# Minimum Requirement.

DB_NAME=EBSDEV

DB_BLOCK_SIZE=8192

*.diagnostic_dest='/d01/oracle/EBSDEV/db/tech_st/11.2.0/admin/EBSDEV_ebsdbdev’

# Convert file names to allow for different directory structure if necessary.

DB_FILE_NAME_CONVERT='/data/oracle/EBSPRD/db/apps_st/data','/d01/oracle/EBSDEV/db/
apps_st/data','/archive/oracle/EBSPRD/db/apps_st/data','/d01/oracle/EBSDEV/db/apps_st/data','/
redo/oracle/EBSPRD/db/apps_st/data','/d01/oracle/EBSDEV/db/apps_st/data'

LOG_FILE_NAME_CONVERT='/redo/oracle/EBSPRD/db/apps_st/data','/d01/oracle/EBSDEV/db/
apps_st/data'

control_files='/d01/oracle/EBSDEV/db/apps_st/data/cntrl01.dbf','/d01/oracle/EBSDEV/db/
apps_st/data/cntrl02.dbf','/d01/oracle/EBSDEV/db/apps_st/data/cntrl03.dbf'
BACKUP THE SOURCE DATABASE

Copy the backups,archivelogs and controlfiles to the destination of test. E.g

$ scp –r /path_of_source_bkps /path_of_dest_bkps

STARTUP THE INSTANCE TO NOMOUNT STAGE

SQL> startup nomount;

startup nomount pfile='initEBSDEV.ora';

CONNECT TO RMAN

$ rman auxiliary /

RMAN> DUPLICATE DATABASE TO EBSDEV NOFILENAMECHECK BACKUP LOCATION


'/u01/backup/rman.disk.Friday.080121';

You might also like