Download as pdf or txt
Download as pdf or txt
You are on page 1of 14

CLONING ORACLE APPLICATIONS RELEASE

12 (BAHRI)

Presented By: egabi


Creation Date: Wednesday, October 11, 2017
Last Updated: Wednesday, October 11, 2017
Document Ref: Cloning Oracle Applications Release 12 for bahri
Version: 1.0
Contents

1- PREPARE THE SOURCE SYSTEM .....................................................................................................3


2- CONFIGURE THE TARGET SYSTEM ................................................................................................4
3- DELETING OLD DATABASE USING DBCA ....................................................................................4
4- TRANSFER BACKUP FILES FROM SOURCE TO TARGET SYSTEM .........................................8
5- RESTORING DATABASE .....................................................................................................................8
6- CONVERT DATABASE TO RAC USING RCONFIG ..................................................................... 10
7- START DATABASE USING SRVCTL COMMAND ....................................................................... 10
8- RUN FND_CONC_CLONE.SETUP_CLEAN PROCEDURE ......................................................... 11
9- MAKE APPSUTIL.ZIP ......................................................................................................................... 11
10- COPY APPSUTIL.ZIP FILE TO THE TARGET <RDBMS ORACLE_HOME> ........................ 11
11- RUN AUTOCONFIG ON DATABASE TIER .................................................................................... 12
12- TRANSFER APPLICATION FILES FROM SOURCE TO TARGET SERVER ........................... 12
13- CONFIGURE THE TARGET SYSTEM APPLICATION TIER SERVER NODES ...................... 12
14- RUN AUTOCONFIG ON APPLICATION TIER ............................................................................. 13
15- STARTUP APPLICATION SERVICES ............................................................................................. 14

egabi Page 2 of 14
1- Prepare the source system

Execute the following commands to prepare the source system for cloning:

a. Prepare the source system database tier for cloning


Log on to the source system as the ORACLE user, and run the
following commands:

$ cd [RDBMS ORACLE_HOME]/appsutil/scripts/[CONTEXT_NAME]
$ perl adpreclone.pl dbTier

b. Prepare the source system application tier for cloning


Log on to the source system as the APPLMGR user, and run the
following commands on each node that contains an APPL_TOP:

$ cd [INST_TOP]/admin/scripts
$ perl adpreclone.pl appsTier

c. Database full backup


connect target /
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK
TO '/u01/clone/rman_backup/cf_%U';
run
{
allocate channel t1 type disk ;
allocate channel t2 type disk ;
allocate channel t3 type disk ;
allocate channel t4 type disk ;
allocate channel t5 type disk ;
allocate channel t6 type disk ;
sql 'alter system archive log current';
backup as compressed backupset INCREMENTAL LEVEL 0 tag
hot_db_bk_level0 DATABASE format
'/u01/clone/rman_backup/database_backup%U';
crosscheck archivelog all;
sql 'alter system archive log current';
backup as compressed backupset format
'/u01/clone/rman_backup/FULL_Arch_%U' archivelog all;
backup spfile format '/u01/clone/rman_backup/spfile_%U';

egabi Page 3 of 14
release channel t1;
release channel t2;
release channel t3;
release channel t4;
release channel t5;
release channel t6;
restore database validate;
}

d. run the following script on source database


spool rename.sql
SET ECHO OFF
SET FEEDBACK 6
SET HEADING ON
SET LINESIZE 180
SET PAGESIZE 50000
SET TERMOUT ON
SET TIMING OFF
SET TRIMOUT ON
SET TRIMSPOOL ON
SET VERIFY OFF
select 'set new name '''||name||''' to
'''||replace(name,'+DG_DATA/prod/datafile/','+DG_DATA/test/dat
afile/')||''''||';'
from ( select name
from v$datafile
union all
select member name
from v$logfile
union all
select name
from v$tempfile )
order by name;

spool off;

this script will genereate set new name script that will be
used in target for database restore

2- Configure the target system

3- Deleting old database using DBCA

egabi Page 4 of 14
egabi Page 5 of 14
egabi Page 6 of 14
egabi Page 7 of 14
4- Transfer Backup files from source to target system

5- Restoring Database

egabi Page 8 of 14
egabi Page 9 of 14
6- Convert database to RAC using rconfig

7- Start database using SRVCTL command

egabi Page 10 of 14
8- Run fnd_conc_clone.setup_clean procedure

9- Make appsutil.zip

a.
On source application tier run the following command
perl $AD_TOP/bin/admkappsutil.pl

10- Copy appsutil.zip file to the target <RDBMS ORACLE_HOME>

a. unzip -o appsutil.zip
b. Generate the database context file:
cd <RDBMS ORACLE_HOME>/appsutil/bin
adbldxml.pl appsuser=<APPSuser> appspasswd=<APPSpwd>
c. Generate and apply AutoConfig configuration file:
cd <RDBMS ORACLE_HOME>/appsutil/bin
adconfig.sh contextfile=<CONTEXT file just generated> appspass=<APPSpwd>

egabi Page 11 of 14
11- Run Autoconfig on database tier

12- Transfer Application files from source to target server

13- Configure the target system application tier server nodes

Log on to the target system as the APPLMGR user and enter the following
commands:
$ cd [COMMON_TOP]/clone/bin
$ perl adcfgclone.pl appsTier

egabi Page 12 of 14
14- Run Autoconfig on application tier

egabi Page 13 of 14
15- Startup Application services

egabi Page 14 of 14

You might also like