You are on page 1of 5

Cloning from the production to the test:

1234-

On the Source of DB Node while the APPS and DB running(all running):


telnet 172.27.1.2 oracle /*********** cd /DB/db/tech_st/11.1.0/appsutil/scripts/PROD_proddb/ perl adpreclone.pl dbTier PWD= ******* (the password of apps)

1234567-

On the Source of APPS Node while the APPS and DB running(all running):
telnet 172.27.1.3 applmgr /*********** cd /APP/apps/apps_st/appl/ . ./APPSPROD_prodapp.env cd $INST_TOP cd admin/scripts/ perl adpreclone.pl appsTier PWD= ******* (the password of apps) Then close the services, APPS, DB, Listener Take backup tar from /APP, /services, /DB to the backup location: On DB Node: 1- Checking the free space: - cd /dbbackup/ - df -g 2- Take the backup: - cd /DB - tar -cvf /dbbackup/ 07032012proddb.tar . 3- After finishing the tar check the size of tar file: - du -sg /DB/ - du -g /dbbackup/07032012proddb.tar Note: if they are equal then the backup is right.

On APPS Node (/APP): 1- Checking the free space: - cd /appbackup/ - df -g 2- Take the backup: - cd /APP - tar -cvf /appbackup / 07032012prodapp.tar . 3- After finishing the tar check the size of tar file: - du -sg /APP/ - du -g / appbackup /07032012prodapp.tar Note: if they are equal then the backup is right. 1

On APPS Node (/services): 2- Checking the free space: - cd /servbackup/ - df -g 2- Take the backup: - cd /services - tar -cvf /servbackup / 07032012serapp.tar . 3- After finishing the tar check the size of tar file: - du -sg /services / - du -g /servbackup / 07032012serapp.tar Note: if they are equal then the backup is right. Start the DB, Listener, APPS, services on the source (production) Take copy to /clone on 172.27.1.11 (oratest) Restore the production backup on the oratest - cd /DB - rm -fr * - tar xvf /clone/07032012proddb.tar - cd /APP - rm -fr * - tar xvf /clone/07032012prodapp.tar On ORATEST Node (/DB): 1- su - oracle 2- cd /DB/db/tech_st/11.1.0/appsutil/clone/bin/ 3- perl adcfgclone.pl dbTier 4- Enter the APPS password : ************* 5- Target System Hostname (virtual or normal) [oraerp] : Press enter button 6- Target Instance is RAC (y/n) [n] : Press enter button 7- Target System Database SID : ora 8- Target System Base Directory : /DB 9- Target System utl_file_dir Directory List : /tmp 10- Number of DATA_TOP's on the Target System [1] : Press enter button 11- Target System RDBMS ORACLE_HOME Directory [/DB/db/tech_st/11.1.0] : Press enter button 12- Do you want to preserve the Display [130.35.33.98:129.0] (y/n)? : n 13- Target System Display [oraerp:0.0] : Press enter button 14- Do you want the the target system to have the same port values as the source system (y/n) [y] ? : n Note: DB Port 0 =1521 , APP Port 0 = 8000 Note: DB Port 1 =1522 , APP Port 1 = 8001 Note: DB Port 2 =1523 , APP Port 0 = 8002 15- Target System Port Pool [0-99] : 0 2

Checking the port pool 1 Done: Port Pool 1 is free Report file located at /DB/db/tech_st/11.1.0/appsutil/temp/portpool.lst Complete port information available at /DB/db/tech_st/11.1.0/appsutil/temp/portp ool.lst Creating the new Database Context file from : /DB/db/tech_st/11.1.0/appsutil/template/adxdbctx.tmp The new database context file has been created : /DB/db/tech_st/11.1.0/appsutil/prod_oraerp.xml Log file located at /DB/db/tech_st/11.1.0/appsutil/clone/bin/CloneContext_031709 0428.log Check Clone Context logfile /DB/db/tech_st/11.1.0/appsutil/clone/bin/CloneContex t_0317090428.log for details. | 15% completed Completed Apply... Sat Mar 17 11:29:06 2012 Starting database listener for prod: Running: /DB/db/tech_st/11.1.0/appsutil/scripts/prod_oraerp/addlnctl.sh start prod You are running addlnctl.sh version 120.1.12010000.2 Logfile: /DB/db/tech_st/11.1.0/appsutil/log/prod_oraerp/addlnctl.txt Starting listener process prod ... Listener prod has already been started. addlnctl.sh: exiting with status 0 Note: DB Port 0 =1521 , APP Port 0 = 8000

On ORATEST Node (/APP): 1- Su - applmgr 2- cd /APP/apps/apps_st/comn/clone/bin/ 3- perl adcfgclone.pl appsTair 4- Enter the APPS password : ******** 5- Target System Hostname (virtual or normal) [oraerp] : Press enter button 6- Target System Database SID : ora 7- Target System Database Server Node [oraerp] : Press enter button 8- Target System Base Directory : /APP 9- Target System Tools ORACLE_HOME Directory [/APP/apps/tech_st/10.1.2] : Press enter button 10- Target System Web ORACLE_HOME Directory [/APP/apps/tech_st/10.1.3] : Press enter button 11- Target System APPL_TOP Directory [/APP/apps/apps_st/appl] : Press enter button 12- Target System COMMON_TOP Directory [/APP/apps/apps_st/comn] : Press enter button 13- Target System Instance Home Directory [/APP/inst] : Press enter button 14- Target System Root Service [enabled] : Press enter button 15- Target System Web Entry Point Services [enabled] : Press enter button 3

1617181920-

Target System Web Application Services [enabled] : Press enter button Target System Batch Processing Services [enabled] : Press enter button Target System Other Services [disabled] : Press enter button Do you want to preserve the Display [oraerp:0.0] (y/n) ? : n Target System Display [oraerp:0.0] : Press enter button Note: DB Port 0 =1521 , APP Port 0 = 8000 Note: DB Port 1 =1522 , APP Port 1 = 8001 Note: DB Port 2 =1523 , APP Port 0 = 8002 21- Target System Port Pool [0-99] : 0 done: Port Pool 0 is free Report file located at /APP/inst/apps/prod_oraerp/admin/out/portpool.lst Complete port information available at /APP/inst/apps/prod_oraerp/admin/out/portpool.lst UTL_FILE_DIR on database tier consists of the following directories. 1. /usr/tmp 2. /tmp 3. /DB/db/tech_st/11.1.0/appsutil/outbound/prod_oraerp 4. /usr/tmp 22- Choose a value which will be set as APPLPTMP value on the target node [1] : Press enter button Creating the new APPL_TOP Context file from : /APP/apps/apps_st/appl/ad/12.0.0/admin/template/adxmlctx.tmp The new APPL_TOP context file has been created: /APP/inst/apps/prod_oraerp/appl/admin/prod_oraerp.xml Log file located at /APP/apps/apps_st/comn/clone/bin/CloneContext_0317115634.lo g Check Clone Context logfile /APP/apps/apps_st/comn/clone/bin/CloneContext_03171 15634.log for details. APPS Password: Log file located at /APP/inst/apps/prod_oraerp/admin/log/ApplyA ppsTier_03171210.log | 78% completed Completed Apply... Sat Mar 17 13:05:03 2012 Others after the Clone to start the concurrent manager which the following messages appear while starting the concurrent manager: Message1 No Manager Message1 status completed error On APPS Node: 1- Su - applmgr 2- Xhost + 3- cd /APP/inst/apps/ora_oratest/ora/10.1.2/reports 4- cp Tk2Motif_AL32UTF8.rgb Tk2Motif_AR8MSWIN1256.rgb 5- cd /APP/apps/apps_st/appl 4

6- vi ora_oratest.env 7- add the shaded test on ora_test.env Just copy the following text and past it after the following text the replace AL32UTF8 With AR8MSWIN1256 .

Before adding the text on ora_test.env

After adding the text on ora_test.env

Opening the concurrent manager : 1- su applmgr 2- cd /APP/ap*/ap*/ap* 3- . ./AP* 4- cd $INST_TOP 5- cd admin/sc* 6- ./adcmctl.sh start

You might also like