Cloning a Middleware Home

Scaling Your Environment 9-9

9.5.1 Cloning a Middleware Home

You can clone a Middleware home, which can contain zero or more Oracle homes and an Oracle WebLogic Server home. To clone a Middleware home: 1. On Windows, at the source Middleware home, stop the Administration Server and any Managed Servers running in the Middleware home. 2. At the source Middleware home, execute the copyBinary script, which finds the WebLogic Server home and the Oracle homes contained within the Middleware home. If there are no Oracle homes in the Middleware home, no Oracle homes will be present in the archive. For example, to clone a Middleware home that is located at scratchOracle Middleware1, use the following command: copyBinary.sh -javaHome scratchOracleMiddleware1jrockit_160_20_D1.1.0-18 -archiveLoc tmpmw_clone.jar -sourceMWHomeLoc scratchOracleMiddleware1 -invPtrLoc scratchoracleoraInst.loc 3. If you are cloning the Middleware home to a different host, copy the archive file to that system. 4. Copy the pasteBinary scripts and the cloningclient.jar file to the target system and ensure that they have execute permission. See Section 9.5 for the locations of the files. Do not copy the other scripts, such as pasteConfig. Those scripts are generated when you extract the files, as in step 5. 5. At the target, extract the files from the archive using the pasteBinary script. Note: ■ The cloning operation archives only those Oracle homes that lie within a Middleware home. It does not clone Oracle homes that are located outside of the Middleware home. ■ You can clone only one Middleware home at a time. ■ If Oracle WebLogic Server is not located in the Middleware home, the Oracle WebLogic Server home is not archived and cloned, but any Oracle homes in the Middleware home are archived and cloned. ■ On Windows, ensure that no Oracle WebLogic Server processes are running in the source Middleware home. ■ If the target host does not contain the file oraInst.loc, you must create the file you must have Super User or root privileges. By default, the clone operation looks for the file in the etc directory. If you create it in another location, use the -invPtrLoc parameter to the pasteBinary command to specify the location. The file must contain the following: inventory_loc=oraInventory_location inst_group=user_group 9-10 Oracle Fusion Middleware 2 Day Administration Guide For example, to apply the clone to the directory scratchoracleMW_Home_ clone, use the following command: pasteBinary.sh -javaHome scratchOracleMiddleware1jrockit_160_20_D1.1.0-18 -archiveLoc tmpmw_clone.jar -targetMWHomeLoc scratchoracleMW_Home_clone The Middleware home is extracted to scratchoracleMW_Home_clone and the WebLogic Server home and all of the Oracle homes are extracted under it with the same names as that of the source Oracle home names.

9.5.2 Customizing Move Plans When Cloning Components