Clone your Oracle FMW SOA Suite 11g

0 0
Read Time:4 Minute, 45 Second

Sometimes, you would like to have an extract from a SOA Suite 11g  production environment to test it in a test or acceptance environment.

There are several ways to do this, but in this post I’d like to discuss about how to get a clone of your SOA Suite 11g, from one WebLogic Server host to another.

To extract a clone, you will have to determine which components should be cloned:

  • The SOA repository schema’s, like MDS, SOA-INFRA and so on.
  • The WebLogic and FMW software
  • The SOA Suite Domain Configuration including all SCA components and other deployments.

The SOA Repository

Only taking a clone of your you Oracle FMW  SOA Suite is not enough. It requires you to clone the database repository aswell.

You can ask your DBA to clone the database or create a new database and do an export and import of all the schema’s belonging to the SOA Suite

These schema’s are:




– ORABAM ( if installed)

The Oracle FMW/SOA Suite cloning process

This section covers a clone action from a physical server on where the following components are installed:

– Oracle WebLogic 10.3.5

– Oracle SOA Suite

The cloning will be done to configure a new physical server.

Cloning the Middleware home

First, an archive file should be created of the source Middleware home, by copying the binary files of that Middleware home, including all directories, into a archive file. Be aware that all WebLogic Admin and Managed Server instances are up and running on the source host

  • From the source host: copy and cloningclient.jar(MW_HOME/oracle_common/jlib) to the target  (MW_HOME/oracle_common)
  • On the source, clone all the software binaries executing:
$MW_HOME/oracle_common/bin/ -javaHome /app/Oracle/Middleware/jrockit_160_20_D1.1.0-18 -archiveLoc /tmp/mw_copy.jar -sourceMWHomeLoc /app/Oracle/Midleware -invPtrLoc /app/oracle/oraInst.loc

$MW_HOME is set to something like /app/oracle/Middleware.

  • On the target host, create a directory somewhere, like clone. This is for your cloned files.
  • Transfer your created archive ( in my example called mw_copy.jar) to the clone directory on the target host
  • Transfer the oraInst.loc also to the physical host. Create a directory called oraInventory and put the file in it.

Cloning the Oracle FMW / SOA Suite components

Next step is to cloning the FMW components, including domain configuration. This can be done by using the copyConfig script, located in the MW_HOME/oracle_common bin.

  • Create a simple text file and place the WebLogic adminstrator password in it
vi pwd.txt

Save the file in the home folder of the oracle user

  • Navigate to the $MW_HOME/oracle_common/bin and execute:
$MW_HOME/oracle_common/bin/ -javaHome /app/Oracle/Middleware/jrockit_160_20_D1.1.0-18 -archiveLoc /tmp/fmwsoa_copy.jar -sourceDomainLoc /app/Oracle/Middleware/user_projects/domains/WLS_SOAWC -sourceMWHomeLoc /app/Oracle/Middleware/ -domainHostName sourcehost -domainPortNum 7001 -domainAdminUserName weblogic -domainAdminPassword /home/oracle/pwd.txt-silent true

Sourcehost will be the name or ip-adress of your WebLogic host.. This jar file contains the entire domainconfiguration plus deployments, adapters and so on.

After this has been done, we should create a moveplan. This can be extracted from this archive. The moveplan creation is needed to change all kinds of settings of the new physical host.

  • Navigate to the $MW_HOME/oracle_common/bin and execute: -javaHome /app/oracle/Middleware/jrockit_160_20_D1.1.0-18 -archiveLoc /tmp/fmwsoa_copy.jar -planDirLoc /tmp/moveplan

Now transfer the moveplan and the fmwsoa_copy.jar to the target host. Next, we will work on the target host and complete the cloning process

Extract the clone on the target

Firstt, before we proceed we need to ensure that java is  installed on the target box. You could copy over you JDK directory from the source host, or do a fresh install. Afterwards, don’t forget to set your JAVA_HOME and include in into your PATH variables

export JAVA_HOME=<path to your JDK>
export PATH=$PATH:$JAVA_HOME/bin

Next we will create a directory structure similar to the source, something like /app/oracle. Normally this should be done by root, ensure that the oracle user has enough permissions to read/write/execute.

First we will extract the cloned Middleware home into /app/oracle

Next we execute from the clone directory: -javaHome /app/oracle/jrockit_160_20_D1.1.0-18 -archiveLoc /clone/mw_clone.jar -targetMWHomeLoc /app/oracle/Middleware

The java Home is the location in which you installed your JDK.

This will take some time. When fisnished, you can continue extracting your FMW SOA components.

But first, we have to edit the moveplan.xml, which was extracted from the FMW clone. In here you can set it to the new host, change JDBC, or everything else what nedds to be changed.

When this is done, we will extract the FMW archive. -javaHome /app/oracle/jrockit_160_20_D1.1.0-18 -archiveLoc /clone/fmwsoa_copy.jar -targetDomainLoc /app/oracle/Middleware/user/projects/domains/WLS_SOA -targetMWHomeLoc /app/oracle/Middleware -movePlanLoc /clone/move_plan.xml -domainAdminPassword /clone/pwd.txt -logDirLoc /tmp/log

After completed, you can start your WebLogic and SOA Suite and perform basic sanity checks like testing JDBC, lgging in to EM and navigate to the BPEL Services or check the following URL’s





About Post Author

Michel Schildmeijer

Started in pharmacy, I made the change to IT in 1996. I am an Oracle Fusion Middleware Architect at AMIS, with focus on technical infrastructure, Serverside solutions, installing, administering, configuring the Oracle Fusion Middleware stack. My experience is from integrations at telco´s using Oracle AIA, Oracle Portal, OID, Forms&Reports, Discoverer upto the latest Oracle WebLogic 11g releases with practically all Oracle products running on top of it
0 %
0 %
0 %
0 %
0 %
0 %

Average Rating

5 Star
4 Star
3 Star
2 Star
1 Star

4 thoughts on “Clone your Oracle FMW SOA Suite 11g

  1. I installed SOA in a cluster and this SOA is associated to a DB instance. However, I need to move the DB to a different host and the SID and port will also change. DBAs have created the DB, ran rcu and imported the data into this new DB. To make SOA point to this new DB, is it enough if I change the WL data sources ? Is anything more to be done?

  2. Hi Jacco
    I agree to do it with expdp/ impdp.
    However, for this test I did a clone of the DB, and it worked also.

  3. If you ever want to patch your repository with Oracle’s scripts again, just copying the mentioned schema’s is a bad idea. You should also copy the system.SCHEMA_VERSION_REGISTRY$ table for instance. Depending on the FMW product there might be more objects (and sys grants) around. In my opinion creating the repository with RCU and copying the data with datapump (content=data_only) is a more sustainable idea.

    Also, for more examples on how to clone FMW environments, see:

Comments are closed.

Next Post

How you manage to get an Object as outcome with a User task

Here’s a short update for those who, just as I did, searched for hours to the solution of getting an outcome object instead of the standard outcome string of a Human Task. You need to know this one detail if you want to get the object as an outcome. And […]
%d bloggers like this: