pasteBinary Script Movement Scripts Syntax

Using the Movement Scripts 20-15 The following example shows how to apply the archive of the domain to the Middleware home MW_home1: pasteConfig.sh -javaHome scratchOracleMiddleware1jrockit_160_20_D1.1.0-18 -archiveLoc tmpjava_ee_cl.jar -targetDomainLoc scratchoracleMW_home1userprojectsdomainsdom_cl -targetMWHomeLoc scratchoracleMW_home1 -movePlanLoc scratchoraclejava_eemove_plan.xml -domainAdminPassword scratchpwd_dirpass.txt -logDirLoc tmplog Table 20–8 describes the options for the pasteConfig script for Java components. Table 20–7 Options for the pasteConfig Script for Java Components 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 created by the copyConfig script. Mandatory -targetDomainLoc -tdl The absolute path of the target domain. The domain location must not exist for the specified Middleware home. The domain directory may be located outside of the directory structure of the Middleware home. Mandatory -targetMWHomeLoc -tmw The absolute path of the target Middleware home in which the domain is to be copied. Mandatory -movePlanLoc -mpl The absolute path of the move plan extracted from the source. Mandatory -domainAdminPassword -dap The absolute path of a secure file containing the password for the administrative user for the domain on target environment. You must provide a password file, even if you are not changing the configuration. Note that the password is based on the authentication provider for the domain. For example, the authenticator can be an embedded LDAP or an external LDAP. In previous releases, the shortcut was -domainpass, but that shortcut is now deprecated. Mandatory. -appDir -ad The absolute path of the Oracle WebLogic Server application directory on the target. Optional 20-16 Oracle Fusion Middleware Administrators Guide

20.3.1.8 pasteConfig Script for System Components

Applies the copied configurations from the source environment to the target environment. Inputs for the script include the location of the configuration archive created with the copyConfig script for the Oracle instance and the modified move plan. The pasteConfig script iterates and recreates the configuration information for the Oracle instance in the target environment. It also merges the move plan property values for the target environment. The copyConfig script supports moving the following system components: ■ Oracle HTTP Server ■ Oracle Internet Directory ■ Oracle Virtual Directory The syntax is: pasteConfig -javaHome path_of_jdk -archiveLoc archive_location -movePlanLoc move_plan_path -targetComponentName trgt_component_name -targetInstanceHomeLoc trgt_Instance_path [-targetInstanceName trgt_Instance_name] [-targetOracleHomeLoc trgt_ORACLE_HOME_path] [-logDirLoc log_dir_path] [-silent {true | false}] [ Domain Detail ] Domain Detail = -domainHostName domain_host_name -domainPortNum domain_port_number -domainAdminUserName domain_admin_username -domainAdminPassword domain_admin_password_file The following example shows how to apply the archive to the Oracle instance im_2 and to name the target Oracle Virtual Directory instance ovd_cl: pasteConfig.sh -javaHome scratchOracleMiddlewarejrockit_160_20_D1.1.0-18 -archiveLoc tmpovd1.jar -movePlanLoc scratchoracleovdmove_plan.xml -targetOracleHomeLoc scratchOracleMiddlewareOracle_IM2 -targetInstanceHomeLoc scratchOracleMiddlewareim_2 -targetInstanceName im_2 -targetComponentName ovd_cl -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 Table 20–7 Cont. Options for the pasteConfig Script for Java Components Options Shortcut Description Mandatory or Optional Using the Movement Scripts 20-17 -domainHostName myhost -domainPortNum 7001 -domainAdminUserName domain_admin_username -domainAdminPassword domain_admin_password_file Table 20–8 describes the options for the pasteConfig script for system components. Table 20–8 Options for the pasteConfig Script for System Components 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 created by the copyConfig script. In previous releases, this option was named archiveLocation, but that name is now deprecated. Mandatory -movePlanLoc -mpl The absolute path of the move plan extracted from the source. Mandatory -targetComponentName -tcn The name of the target component to be copied. The name must be unique in the instance. Mandatory -targetInstanceHomeLoc -tih The absolute path of the target Oracle instance. If the Oracle instance directory does not exist at that location, the script creates the directory. Mandatory -targetInstanceName -tin The name of the target Oracle instance. The name must be unique in the domain. Optional, if the targetInstanceHomeL oc directory exists. In this case, the operation retrieves the name from the configuration. -targetOracleHomeLoc -toh The absolute path of the target Oracle home. The target Oracle home must exist and it must contain the binaries for the component you are copying. Optional, if the targetInstanceHomeL oc exists. In this case, the operation retrieves the value from the configuration. -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