Steps To Clone SOA 11g
Steps To Clone SOA 11g
> 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)
> After clone or SOA schema import in target server stop all job schedules if its present
and disable all db links.
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
[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
[oracle@test1 soa]$
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
[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
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]$
On the target server, create Fusion Middleware base directory and Java home
[oracle@test2 soa]$
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
[oracle@test2:/oracle/app/product/Middleware/oracle_common/bin]$
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