Overview of Scaling Your Environment

20 Using the Movement Scripts 20-1 20 Using the Movement Scripts Oracle Fusion Middleware provides a series of scripts that you can use to move your environment, for example replicating a test environment to a production environment. The scripts enable you to copy a Middleware home and the Oracle homes and Oracle WebLogic Server domains, as well as certain Oracle Fusion Middleware components, such as Oracle SOA Suite, Oracle HTTP Server, Oracle Internet Directory and Oracle Virtual Directory. This chapter explains the scripts you can use to move these entities. This chapter includes the following topics: ■ Introduction to the Movement Scripts ■ Understanding the Movement Process ■ Movement Scripts ■ Customizing Move Plans When Moving Components

20.1 Introduction to the Movement Scripts

The movement scripts minimize the amount of work that would otherwise be required to reapply all the customization and configuration changes made in one environment to another. You can use these scripts to: ■ Create a Middleware home that is a copy of a production, test, or development environment. The scripts create a new Middleware home with all patches applied to all of the Oracle homes and the WebLogic Server home in a single step. This is in contrast to separately installing and applying any patches to the WebLogic Server home and separate Oracle homes. ■ Preparing a gold image of a patched Middleware home and deploying it to many hosts. ■ Move the Middleware home, WebLogic Server home, Oracle homes, as well as the components from one environment to another. You can move the following, to the same host or a different host. The source and target environments must share the same operating system and the same platform architecture in terms of number of bits. ■ Middleware home: You can copy the Middleware home, the Oracle WebLogic Server home, and all of the Oracle homes within the Middleware home. You can copy a Middleware home that contains no Oracle homes, but you need to have the See: Chapter 21, Moving from a Test to a Production Environment for detailed instructions about using these scripts to move Oracle Fusion Middleware from one environment to another. 20-2 Oracle Fusion Middleware Administrators Guide cloningclient.jar file and movement scripts that are compatible with the version of the Middleware home you want to copy. You can apply the copy of the Middleware home to the same host or a different host. ■ Java components: You can copy the configuration of a domain containing Java components, such as Oracle SOA Suite and Oracle Business Activity Monitoring to the same or a different Middleware home, on the same host or a different host. ■ System components: You can copy the configuration of a domain containing system components, such as Oracle HTTP Server and Oracle Internet Directory, to the same or a different Oracle instance, to the same or a different Middleware home, on the same host or a different host.

20.2 Understanding the Movement Process

When you move an entity of Oracle Fusion Middleware, the scripts take a snapshot of the information required for the movement. The following topics describe the movement process: ■ Understanding the Movement of a Middleware Home ■ Understanding the Movement of Components

20.2.1 Understanding the Movement of a Middleware Home

When you move a Middleware home, you create an archive of the source Middleware home and use the archive to create the copy of the Middleware home: 1. At the source, you run the copyBinary script, specifying the Middleware home that you want to copy. The script prepares the source and creates an archive. It also records the file permissions of the Middleware home and the Oracle homes within the Middleware home. The archive contains the Oracle WebLogic Server home and all of the Oracle homes in the Middleware home. 2. At the destination, you run the pasteBinary script, specifying a destination for the Middleware home. The script checks to see that the prerequisites are met at the destination. It extracts the files from the archive file, registers the Oracle homes with the Oracle inventory and registers the WebLogic Server home with the Middleware home. The script then restores the file permissions and relinks any files if that is necessary. Note the following: ■ The copyBinary and pasteBinary scripts do not carry over all the dependencies of the source Middleware home, WebLogic Server home, and Oracle homes, such as loadable modules or application-specific libraries to the target home, because the scripts proceed by copying the Middleware home and the entire source WebLogic Server home and Oracle homes to the destination Middleware home. Any files outside the source WebLogic Server or Oracle home are not automatically copied. Hence, any applications that refer to files outside the source WebLogic Server or Oracle home may not work properly in the target home. See Also: Chapter 21 for information about moving from a test environment to a production environment