Cloning of Oracle R11i - appsdba.info · 2010-12-27 · Note: 135792.1 - Cloning Oracle...

19
Author A.Kishore/Sachin http://appsdba.info 1 Contents 1> What is Cloning and How to do Single Node Cloning on Single machine Page 2 - 2 2> Cloning steps Page 2 - 4 3> Prepare Source System Page 4 6 4> Copy Source Node File System Page 7 - 9 5> Configure Target System Page 1017 6> Finishing Tasks Page 17 - 19

Transcript of Cloning of Oracle R11i - appsdba.info · 2010-12-27 · Note: 135792.1 - Cloning Oracle...

Page 1: Cloning of Oracle R11i - appsdba.info · 2010-12-27 · Note: 135792.1 - Cloning Oracle Applications Release 11i Note: 230672.1 - Cloning Oracle Applications Release 11i with Rapid

Author – A.Kishore/Sachin

http://appsdba.info

1

Contents

1> What is Cloning and How to do Single Node Cloning on Single machine Page 2 - 2 2> Cloning steps Page 2 - 4 3> Prepare Source System Page 4 – 6 4> Copy Source Node File System Page 7 - 9 5> Configure Target System Page 10– 17 6> Finishing Tasks Page 17 - 19

Page 2: Cloning of Oracle R11i - appsdba.info · 2010-12-27 · Note: 135792.1 - Cloning Oracle Applications Release 11i Note: 230672.1 - Cloning Oracle Applications Release 11i with Rapid

Author – A.Kishore/Sachin

http://appsdba.info

2

What is Cloning and How to do Single Node cloning on Single machine

Cloning is the act of creating an identical copy of an already existing Production Oracle Applications system.

Simply copying all of the components from source to target system does not provide us a working Oracle Applications system, there are various configuration files that must be changed & for this purpose we do Cloning.

There are various reasons for cloning an Oracle Applications system such as: • Creating a copy of the production system for testing updates. • Migrating an existing system to new hardware. • Creating a stage area to reduce patching downtime. We will use Rapid Clone to create template files for cloning on the source system. After the source system is copied to the target, Rapid Clone updates these templates to contain the new target system configuration settings. Rapid Clone will not change the source system configuration. Note: 135792.1 - Cloning Oracle Applications Release 11i

Note: 230672.1 - Cloning Oracle Applications Release 11i with Rapid Clone

In this Cloning demonstation, we will clone our PROD single node instance to DEV instance. Even we are doing single node cloning, we will have to take dbTier and appsTier as two nodes. Our source node is ERP and target node is also ERP. And our source database node is PROD and Target database node is DEV. The TARGET directory structure is same as Source that is /d01/oracle.

Page 3: Cloning of Oracle R11i - appsdba.info · 2010-12-27 · Note: 135792.1 - Cloning Oracle Applications Release 11i Note: 230672.1 - Cloning Oracle Applications Release 11i with Rapid

Author – A.Kishore/Sachin

http://appsdba.info

3

Cloning Steps:

We should remember that the clone application system and existing Production application system must have same component versions & operating system type. And also we can not clone from windows to linux.

Login as Applications file user & set the environment file.

su applmgr

cd /d01/oracle/prodappl

. ./APPSORA.env

Page 4: Cloning of Oracle R11i - appsdba.info · 2010-12-27 · Note: 135792.1 - Cloning Oracle Applications Release 11i Note: 230672.1 - Cloning Oracle Applications Release 11i with Rapid

Author – A.Kishore/Sachin

http://appsdba.info

4

Login to database tier as oracle user and set the environment. su oracle cd /d01/oracle/proddb/9.2.0 . ./PROD_erp.env

Prepare the source system

(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 $ORACLE_HOME/appsutil/scripts/PROD_erp

.perl /adpreclone.pl dbTier

Page 5: Cloning of Oracle R11i - appsdba.info · 2010-12-27 · Note: 135792.1 - Cloning Oracle Applications Release 11i Note: 230672.1 - Cloning Oracle Applications Release 11i with Rapid

Author – A.Kishore/Sachin

http://appsdba.info

5

(b) Prepare the source system application tier for cloning

Log on to the source system as the APPLPROD user and run the following commands.

$ cd $COMMON_TOP/admin/scripts/PROD_erp

$ perl adpreclone.pl appsTier

Page 6: Cloning of Oracle R11i - appsdba.info · 2010-12-27 · Note: 135792.1 - Cloning Oracle Applications Release 11i Note: 230672.1 - Cloning Oracle Applications Release 11i with Rapid

Author – A.Kishore/Sachin

http://appsdba.info

6

Page 7: Cloning of Oracle R11i - appsdba.info · 2010-12-27 · Note: 135792.1 - Cloning Oracle Applications Release 11i Note: 230672.1 - Cloning Oracle Applications Release 11i with Rapid

Author – A.Kishore/Sachin

http://appsdba.info

7

Copy the Source Node File System

Log on to the source system application tier nodes as the APPLMGR user.

• Shut down the application tier server processes as shown below

cd $COMMON_TOP/admin/scripts/PROD_erp

./adstpall.sh apps/appspassword

• Copy the following application tier directories from the source node to the target application tier node:

cd /d01/oracle

prodappl

prodcomn

prodora

Page 8: Cloning of Oracle R11i - appsdba.info · 2010-12-27 · Note: 135792.1 - Cloning Oracle Applications Release 11i Note: 230672.1 - Cloning Oracle Applications Release 11i with Rapid

Author – A.Kishore/Sachin

http://appsdba.info

8

scp –pr proadappl oracle@target_server:/d01/oracle

scp –pr proadcomn oracle@target_server:/d01/oracle

scp –pr proadora oracle@target_server:/d01/oracle

Once copied –

- Check the ownership as required - Rename the directory

cd /d01/oracle

mv prodappl devappl

mv prodcomn devcomn

mv prodora devora

Copy the database tier file system

Log on to the source system database Tier as the ORACLE user.

• Perform a normal shutdown of the source system database

cd $RDBMS_ORACLE_HOME/appsutil/scripts/PROD_erp

./addbctl.sh stop

Page 9: Cloning of Oracle R11i - appsdba.info · 2010-12-27 · Note: 135792.1 - Cloning Oracle Applications Release 11i Note: 230672.1 - Cloning Oracle Applications Release 11i with Rapid

Author – A.Kishore/Sachin

http://appsdba.info

9

• Copy the database (DBF) files from the source to the target system

• Copy the source database ORACLE_HOME to the target system

cd /d01/oracle

scp –pr proaddb oracle@target_server:/d01/oracle

scp –pr proaddata oracle@target_server:/d01/oracle

Once copied –

- Check the ownership as required - Rename the directory

cd /d01/oracle

mv proddb devdb

mv proddata devdata

• Start up the source Applications system database and application tier processes

Page 10: Cloning of Oracle R11i - appsdba.info · 2010-12-27 · Note: 135792.1 - Cloning Oracle Applications Release 11i Note: 230672.1 - Cloning Oracle Applications Release 11i with Rapid

Author – A.Kishore/Sachin

http://appsdba.info

10

Configure the Target System Operating System of Target should be same as Source. Operating system and should have all pre requisite packages required for Oracle R11i before configuring the Target System. Execute the following commands to configure the target system. You will be prompted for the target system specific values (SID, Paths, Ports, etc) (a). Configure the target system database server Log on to target node as oracle user and run the following command and input your values to each prompt as shown below $ cd /proddb/9.2.0/appsutil/clone/bin $ perl adcfgclone.pl dbTier Enter APPS Password :

Page 11: Cloning of Oracle R11i - appsdba.info · 2010-12-27 · Note: 135792.1 - Cloning Oracle Applications Release 11i Note: 230672.1 - Cloning Oracle Applications Release 11i with Rapid

Author – A.Kishore/Sachin

http://appsdba.info

11

Page 12: Cloning of Oracle R11i - appsdba.info · 2010-12-27 · Note: 135792.1 - Cloning Oracle Applications Release 11i Note: 230672.1 - Cloning Oracle Applications Release 11i with Rapid

Author – A.Kishore/Sachin

http://appsdba.info

12

b. Configure the target system application tier server nodes Log on to the target system as the APPLMGR user and type the following commands and Specify your values to each prompt as shown below.

$ cd /d01/oracle/devcomn/clone/bin $ perl adcfgclone.pl appsTier Enter the APPS password

Page 13: Cloning of Oracle R11i - appsdba.info · 2010-12-27 · Note: 135792.1 - Cloning Oracle Applications Release 11i Note: 230672.1 - Cloning Oracle Applications Release 11i with Rapid

Author – A.Kishore/Sachin

http://appsdba.info

13

Page 14: Cloning of Oracle R11i - appsdba.info · 2010-12-27 · Note: 135792.1 - Cloning Oracle Applications Release 11i Note: 230672.1 - Cloning Oracle Applications Release 11i with Rapid

Author – A.Kishore/Sachin

http://appsdba.info

14

Page 15: Cloning of Oracle R11i - appsdba.info · 2010-12-27 · Note: 135792.1 - Cloning Oracle Applications Release 11i Note: 230672.1 - Cloning Oracle Applications Release 11i with Rapid

Author – A.Kishore/Sachin

http://appsdba.info

15

Page 16: Cloning of Oracle R11i - appsdba.info · 2010-12-27 · Note: 135792.1 - Cloning Oracle Applications Release 11i Note: 230672.1 - Cloning Oracle Applications Release 11i with Rapid

Author – A.Kishore/Sachin

http://appsdba.info

16

Page 17: Cloning of Oracle R11i - appsdba.info · 2010-12-27 · Note: 135792.1 - Cloning Oracle Applications Release 11i Note: 230672.1 - Cloning Oracle Applications Release 11i with Rapid

Author – A.Kishore/Sachin

http://appsdba.info

17

Finishing Tasks Post clone steps vary from client to client, here is the basic change.

Profile Option Name Changes at Site Level after Cloning Site Name-> PROD, Change it to “DEV – Clone of PROD as of Dec 14 2010” DEV – Clone of PROD as of 14-Dec-10

Login to Oracle Apps as SYSADMIN

Select System Administrator responsibility

Page 18: Cloning of Oracle R11i - appsdba.info · 2010-12-27 · Note: 135792.1 - Cloning Oracle Applications Release 11i Note: 230672.1 - Cloning Oracle Applications Release 11i with Rapid

Author – A.Kishore/Sachin

http://appsdba.info

18

Profile – System

Page 19: Cloning of Oracle R11i - appsdba.info · 2010-12-27 · Note: 135792.1 - Cloning Oracle Applications Release 11i Note: 230672.1 - Cloning Oracle Applications Release 11i with Rapid

Author – A.Kishore/Sachin

http://appsdba.info

19

Now Oracle Apps Instance of DEV Looks Like: