You are on page 1of 7

Steps to Clone SOA 11g

High Level Steps:-

> SOA database Clone or export & import SOA schema in target database.
> Copy basic clone script and java from source to backup location
> Backup Fusion Middleware Weblogic 11g software to backup
location(Copybinary.sh) (Source Server)
> Clone the SOA Suite components (Copyconfig.sh)(Source Server)
> Create the execute plan for the clone(Extractmoveplan.sh)(Source Server)
> Copy all backup files to target server(Source to target)
> Extract the cloned middleware home(pasteBinary.sh)(Target Server)
> Final step to extract, configure and start Fusion Middleware Weblogic with SOA
Suite(pasteConfig.sh)(Target Server)
> Change webtier parameters (target server)

1. Database Clone or SOA schema export:

> After clone or SOA schema import in target server stop all job schedules if its present
and disable all db links.

2. SOA CLONING environments:

Source Server(test1):-

MW_HOME=/oracle/app/product/Middleware
Backp_loc=/backup/soa
JAVA_HOME=/oracle/app/product/java/jrockit-jdk1.6.0_33-R28.2.4-4.1.0
passwrod file location=/backup/soa/pass.txt
Hostname=test1.muthu.com

Target Server(test2):-

MW_HOME=/oracle/app/product/Middleware
Backup_loc=/backup/soa
JAVA_HOME=/oracle/app/product/java/jrockit-jdk1.6.0_33-R28.2.4-4.1.0
passwrod=/backup/soa/pass.txt
Hostname=test2.muthu.com

Based on source server same directory structure or your convenient directory structure
you can create.
3. Copy the pastebinary, cloneclient.jar, jdk files to backup directory.

Source Server(test1):-

Copy basic clone script and java from source to backup location

[oracle@test1 soa]$ cp
/oracle/app/product/Middleware/oracle_common/bin/pasteBinary.sh /backup/soa
[oracle@test1 soa]$ cp
/oracle/app/product/Middleware/oracle_common/jlib/cloningclient.jar
/backup/soa
[oracle@test1 soa]$ cp /oracle/app/product/java/jrockit-jdk1.6.0_33-R28.2.4-4.1.0
/backup/soa

4. Run the copybinary.sh from test1.muthu.com(Source Server).

Backup Fusion Middleware Weblogic 11g software to backup location:-

[oracle@test1 soa]$ sh
/oracle/app/product/Middleware/oracle_common/bin/copyBinary.sh -javaHome
/oracle/app/product/java/jrockit-jdk1.6.0_33-R28.2.4-4.1.0 -archiveLoc
/backup/soa/my_copy.jar -sourceMWHomeLoc /oracle/app/product/Middleware -
invPtrLoc /oracle/app/product/Middleware/oracle_common/oraInst.loc

Log File: "/tmp/CLONE2015-09-20_04-57-28AM-LOG/CLONE2015-09-20_04-57-


28AM.log".
Error File: "/tmp/CLONE2015-09-20_04-57-28AM-LOG/CLONE2015-09-20_04-57-
28AM.error".

INFO : Sep 20, 2015 5:06:03 AM - CLONE-21017 Adding Oracle home


/oracle/app/product/Middleware/Oracle_SOA1 to the archive finished.
INFO : Sep 20, 2015 5:06:03 AM - CLONE-21096 Process complete in 161731 milli sec.
INFO : Sep 20, 2015 5:06:03 AM - CLONE-21030 Adding
"/oracle/app/product/Middleware/Oracle_SOA1" to the archive is successful.
INFO : Sep 20, 2015 5:06:03 AM - CLONE-21031 Time taken to add all the cloners to
archive was "467" seconds.
INFO : Sep 20, 2015 5:06:03 AM - CLONE-21032 Archive created successfully at
/backup/soa/my_copy.jar.
INFO : Sep 20, 2015 5:06:04 AM - CLONE-21006 Total time taken by T2P process was
514 seconds.

INFO : Sep 20, 2015 5:06:04 AM - CLONE-21007 Cloning operation completed


successfully.

[oracle@test1 soa]$

5. Create Password file in backup location (Source Server):-

cat /backup/soa/pass.txt

soatest123

6. Clone the SOA Suite components. Make sure that Weblogic and all managed
services are up and running while running the copyConfig.sh script(Source Server):-

[oracle@test1 soa]$ sh
/oracle/app/product/Middleware/oracle_common/bin/copyConfig.sh -javaHome
/oracle/app/product/java/jrockit-jdk1.6.0_33-R28.2.4-4.1.0 -archiveLoc
/backup/soa/fmwsoa_copy.jar -sourceDomainLoc
/oracle/app/product/Middleware/user_projects/domain/SOA_domain -
sourceMWHomeLoc /oracle/app/product/Middleware -domainHostName
test1.muthu.com -domainPortNum 7001 -domainAdminUserName weblogic -
domainAdminPassword /backup/soa/pass.txt -silent true

Log File: "/tmp/CLONE2015-09-27_12-35-27PM-LOG/CLONE2015-09-27_12-35-


27PM.log".
Error File: "/tmp/CLONE2015-09-27_12-35-27PM-LOG/CLONE2015-09-27_12-35-
27PM.error".

INFO : Sep 27, 2015 12:38:33 PM - CLONE-21030 Adding


"J2EECOMPONENT@SOA_domain" to the archive is successful.
INFO : Sep 27, 2015 12:38:33 PM - CLONE-21031 Time taken to add all the cloners to
archive was "184" seconds.
INFO : Sep 27, 2015 12:38:33 PM - CLONE-21032 Archive created successfully at
/backup/soa/fmwsoa_copy.jar.
INFO : Sep 27, 2015 12:38:33 PM - CLONE-21006 Total time taken by T2P process was
184 seconds.
INFO : Sep 27, 2015 12:38:33 PM - CLONE-21007 Cloning operation completed
successfully.

7. Create the execute plan for the clone(Source Server):-

[oracle@test1 soa]$ sh
/oracle/app/product/Middleware/oracle_common/bin/extractMovePlan.sh -
javaHome /oracle/app/product/java/jrockit-jdk1.6.0_33-R28.2.4-4.1.0 -archiveLoc
/backup/soa/fmwsoa_copy.jar -planDirLoc /backup/soa/moveplan

Log File: "/tmp/CLONE2015-09-27_12-59-38PM-LOG/CLONE2015-09-27_12-59-


38PM.log".
Error File: "/tmp/CLONE2015-09-27_12-59-38PM-LOG/CLONE2015-09-27_12-59-
38PM.error".

INFO : Sep 27, 2015 12:59:39 PM - CLONE-23300 Configplans have been extracted at
"/backup/soa/moveplan".
INFO : Sep 27, 2015 12:59:39 PM - CLONE-23301 ExtractMovePlan operation completed
successfully.

[oracle@test1 soa]$

8. Create Directory structure in target server (test2.muthu.com):-

On target server, copy the backup files(test1.muthu.com to test2.muthu.com)

On the target server, create Fusion Middleware base directory and Java home

Put JAVA_HOME location in .bash_profile of oracle user.

9. Extract the cloned middleware home(target server):-

[oracle@test2 soa]$sh /backup/soa/pasteBinary.sh -javaHome


/oracle/app/product/java/jrockit-jdk1.6.0_33-R28.2.4-4.1.0 -archiveLoc
/backup/soa/my_copy.jar -tmw /oracle/app/product/Middleware -ipl
/etc/oraInst.loc -silent true -idw true -op
ORACLE_BASE=/oracle/app/product/Middleware
Log File: "/tmp/CLONE2015-10-01_01-03-18PM-LOG/CLONE2015-10-01_01-03-
18PM.log".
Error File: "/tmp/CLONE2015-10-01_01-03-18PM-LOG/CLONE2015-10-01_01-03-
18PM.error".

INFO : Oct 1, 2015 1:10:28 PM - CLONE-21217 Post operation completed.


INFO : Oct 1, 2015 1:10:34 PM - CLONE-21037 Time taken to restore all cloners from
archive was "433" seconds.
INFO : Oct 1, 2015 1:10:34 PM - CLONE-21006 Total time taken by T2P process was 435
seconds.

INFO : Oct 1, 2015 1:10:34 PM - CLONE-21007 Cloning operation completed


successfully.

[oracle@test2 soa]$

10. Edit the moveplan:-

- Look for IP address of source and change to target value


- If the database was also migrated look for all jdbc and database connection string and
change it accordingly
- Look for the tag "Password File" and update the value tag from "<value/>" to
"<value>/backup/soa/pass.txt</value>"
- Comment XML tags according to your needs.

11. The final step to extract, configure and start Fusion Middleware Weblogic with
SOA Suite (Target Server):-

[oracle@test2:/oracle/app/product/Middleware/oracle_common/bin]$sh
pasteConfig.sh -javaHome /oracle/app/product/java/jrockit-jdk1.6.0_33-R28.2.4-4.1.0
-archiveLoc /backup/soa/fmwsoa_copy.jar -targetDomainLoc
/oracle/app/product/Middleware/user_projects/domain/SOA_domain -
targetMWHomeLoc /oracle/app/product/Middleware -movePlanLoc
/backup/soa/moveplan/moveplan.xml -domainAdminPassword
/backup/soa/pass.txt
Log File: "/tmp/CLONE2015-10-13_01-47-33PM-LOG/CLONE2015-10-13_01-47-
33PM.log
Error File: "/tmp/CLONE2015-10-13_01-47-33PM-LOG/CLONE2015-10-13_01-47-
33PM.err

INFO : [PLUGIN][SOA] Stopping SOA Managed Server


INFO : [PLUGIN][OracleADF] Oct 15, 2015 12:45:06 AM - CLONE-28010 Start to run
INFO : [PLUGIN][OracleADF] Oct 15, 2015 12:45:06 AM - CLONE-28020 Finish runnin
INFO : Oct 15, 2015 12:45:06 AM - CLONE-23358 Stopping all managed servers.
INFO : Oct 15, 2015 12:46:28 AM - CLONE-21036 Restoring the component finished
INFO : Oct 15, 2015 12:46:28 AM - CLONE-21216 Performing post operation, if an
INFO : Oct 15, 2015 12:46:28 AM - CLONE-21217 Post operation completed.
INFO : Oct 15, 2015 12:46:28 AM - CLONE-21037 Time taken to restore all cloner
INFO : Oct 15, 2015 12:46:28 AM - CLONE-21006 Total time taken by T2P process

INFO : Oct 15, 2015 12:46:28 AM - CLONE-21007 Cloning operation completed


successfull

[oracle@test2:/oracle/app/product/Middleware/oracle_common/bin]$

12. Change Webtier parameters,

Go to below location and edit below files if any old paths(Source server paths) are there
expect wallet directory,

[oracle@test2:/oracle/app/product/Middleware/Oracle_WT1/instances/instance1/co
nfig/OPMN/opmn]$ls
instance.properties opmn.xml ports.prop states wallet

[oracle@test2:/oracle/app/product/Middleware/Oracle_WT1/instances/instance1/bi
n]$./opmnctl startall
opmnctl startall: starting opmn and all managed processes...

[oracle@test2:/oracle/app/product/Middleware/testsoa/Oracle_WT1/instances/insta
nce1/bin]$./opmnctl status

Processes in Instance: instance1


---------------------------------+--------------------+---------+---------
ias-component | process-type | pid | status
---------------------------------+--------------------+---------+---------
ohs1 | OHS | 17022 | Alive

You might also like