Copying a Middleware Home or Component

Using the Movement Scripts 20-7

20.3.1.2 pasteBinary Script

Applies the archive to the target destination, by pasting the binary files of the source Middleware home to the target environment. You can apply the archive to the same host or a different host. The syntax is: Table 20–1 Options for the copyBinary Script Options Shortcut Description Mandatory or Optional -javaHome NA The absolute path of the Java Developers Kit. If the operating system is SunOS, HP-UX, or Linux 64 bit, pass the -d64 option to the scripts in the command line. To set the runtime property, you can specify the -d64 option in the T2P_JAVA_OPTIONS environment variable. For example: setenv T2P_JAVA_OPTIONS -d64 -Djava.io.tmpdir=homet2ptemp Mandatory -archiveLoc -al The absolute path of the archive location. Use this option to specify the location of the archive file to be created with the copyBinary script. The archive location must not exist, but its parent directory must exist and have write permission. Ensure that the archive location is not within the Middleware home structure. Mandatory -sourceMWHomeLoc -smw The absolute path of the Middleware home to be archived. You can only specify one Middleware home. Mandatory -invPtrLoc -ipl On UNIX and Linux, the absolute path to the Oracle Inventory pointer. Use this option if the inventory location is not in the default location, so that the operation can read the Oracle homes present in the inventory. You must have write permission to the inventory location. On UNIX and Linux, the default location is etcoraInst.loc. On Windows, if you specify this parameter, the script ignores it. In previous releases, the shortcut was -invLoc, but that shortcut is now deprecated. Optional, if the inventory is in the default location. Otherwise, it is mandatory on Linux. -logDirLoc -ldl The location of an existing directory. A new log file is created in the directory. The default is the system Temp location. Optional -silent NA Specifies whether the operation operates silently. That is, it does not prompt for confirmation. The default is that the operation prompts for confirmation. To continue, you must type yes, which is not case sensitive. Typing anything other than yes causes the script to return an error. To specify that it does not prompt for confirmation, specify this option with the value of true. Optional -ignoreDiskWarning -idw Specifies whether the operation ignores a warning that there is not enough free space available. The default is false. You may need to use this flag if the target is NFS mounted or is on a different file system, such as Data ONTAP. Optional 20-8 Oracle Fusion Middleware Administrators Guide pasteBinary -javaHome path_of_jdk -archiveLoc archive_location -targetMWHomeLoc target_MW_Home_location [-executeSysPrereqs {true | false}] [-invPtrLoc Oracle_InventoryLocation] [-logDirLoc log_dir_path] [-silent {true | false}] [-ignoreDiskWarning {true | false}] The following example shows how to apply the archive to the directory scratchoracleMW_Home_prod, on Linux: pasteBinary.sh -javaHome scratchOracleMiddleware1jrockit_160_20_D1.1.0-18 -archiveLoc tmpmw_copy.jar -targetMWHomeLoc scratchoracleMW_Home_prod Table 20–2 describes the options for the pasteBinary script. Table 20–2 Options for the pasteBinary Script Options Shortcut Description Mandatory or Optional -javaHome NA The absolute path of the Java Developers Kit. If the source Middleware home was installed with the JDK and Oracle JRockit outside of the Middleware home, the path you specify is used to configure the Middleware home. If the operating system is SunOS, HP-UX, or Linux 64 bit, pass the -d64 option to the scripts in the command line. To set the runtime property, you can specify the -d64 option in the T2P_JAVA_OPTIONS environment variable. For example: setenv T2P_JAVA_OPTIONS -d64 -Djava.io.tmpdir=homet2ptemp Mandatory -archiveLoc -al The absolute path of the archive location. Use this option to specify the location of the archive file created with the copyBinary script. The location must exist. In previous releases, this option was named archiveLocation, but that name is now deprecated. Mandatory -targetMWHomeLoc -tmw The absolute path of the target Middleware home. Ensure that the Middleware home directory does not exist at that location. If it does exist, the script returns an error message. The targetMWHomeLoc cannot be inside another Middleware home. In previous releases, this option was named targetLocation, but that name is now deprecated. In previous releases, the shortcut was -tl, but that shortcut is now deprecated. Mandatory -executeSysPrereqs -esp Specifies whether the pasteBinary operation checks the prerequisites of the Oracle homes. The default is that it checks the prerequisites. To specify that it does not check the prerequisites, specify this option with the value false. In previous releases, the shortcut was -exsysprereqs, but that shortcut is now deprecated. Optional Using the Movement Scripts 20-9

20.3.1.3 copyConfig Script for Java Components

Creates a configuration archive that contains the snapshot of the configuration of an Oracle WebLogic Server domain. The underlying components of an Oracle WebLogic Server domain persist their configuration information in different data stores, such as a file system, Oracle Metadata Service MDS, LDAP, or a database. You must run the copyConfig script for each Oracle WebLogic Server domain in the source environment. A configuration archive is created for each source domain. The Administration Server and all Managed Servers in the domain must be started when you run the script. The syntax is: copyConfig -javaHome path_of_jdk -archiveLoc archive_location -sourceDomainLoc domain_location -sourceMWHomeLoc Middleware_home_location -domainHostName domain_host_name -domainPortNum domain_port_number -domainAdminUserName domain_admin_username -domainAdminPassword domain_admin_password_file [-mdsDataImport {true | false}] [-logDirLoc log_dir_path] [-silent {true | false}] -invPtrLoc -ipl On UNIX and Linux, the absolute path to the Oracle Inventory pointer. Use this option if the inventory location is not in the default location, so that the operation can read the Oracle homes present in the inventory. You must have write permission to the inventory location. On UNIX and Linux, the default location is etcoraInst.loc. On Windows, if you specify this parameter, the script ignores it. In previous releases, the shortcut was -invLoc, but that shortcut is now deprecated. Optional, if the inventory is in the default location. Otherwise, it is mandatory on Linux. -logDirLoc -ldl The location of an existing directory. A new log file is created in the directory. The default is the system Temp location. Optional -silent NA Specifies whether the operation operates silently. That is, it does not prompt for confirmation. The default is that the operation prompts for confirmation. To continue, you must type yes, which is not case sensitive. Typing anything other than yes causes the script to return an error. To specify that it does not prompt for confirmation, specify this option with the value of true. Optional -ignoreDiskWarning -idw Specifies whether the operation ignores a warning that there is not enough free space available. The default is false. You may need to use this flag if the target is NFS mounted or is on a different file system, such as Data ONTAP. Optional Table 20–2 Cont. Options for the pasteBinary Script Options Shortcut Description Mandatory or Optional