Understanding the Movement of a Middleware Home

20-10 Oracle Fusion Middleware Administrators Guide The following example copies the configuration of a domain containing Java components: copyConfig.sh -javaHome scratchjrockit_160_20_D1.1.0-18 -archiveLoc tmpa.jar -sourceDomainLoc scratchmw_home1user_projectsdomainsWLS_SOAWC -sourceMWHomeLoc scratchworkmw_home1 -domainHostName myhost.example.com -domainPortNum 7001 -domainAdminUserName weblogic -domainAdminPassword homeoraclep.txt -silent true Table 20–3 describes the options for the copyConfig script for Java components. Table 20–3 Options for the copyConfig 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 to be created by the copyConfig script. Mandatory -sourceDomainLoc -sdl The absolute path of the source domain containing the Java component. Mandatory -sourceMWHomeLoc -smw The absolute path of the source Middleware home. Mandatory -domainHostName -dhn The name of the host on which the domain is configured. Mandatory -domainPortNum -dpn The port number of the Administration Server for the domain. In previous releases, this option was named domainPortNo, but that name is now deprecated. In previous releases, the shortcut was -domainport, but that shortcut is now deprecated. Mandatory -domainAdminUserName -dau The name of the administrative user for the domain. In previous releases, the shortcut was -domainuser, but that shortcut is now deprecated. Mandatory -domainAdminPassword -dap The absolute path of a secure file containing the password for the administrative user for the domain on the source environment. You must provide a password file, even if you are not changing the configuration. In previous releases, the shortcut was -domainpass, but that shortcut is now deprecated. Mandatory Using the Movement Scripts 20-11

20.3.1.4 copyConfig Script for System Components

Creates a configuration archive that contains the snapshot of the configuration of an Oracle instance. The underlying system components, such as Oracle HTTP Server or Oracle Internet Directory, persist their configuration information in different data stores, such as a file system, Oracle Metadata Service MDS, LDAP, or a database. The copyConfig script supports moving the following system components: ■ Oracle HTTP Server ■ Oracle Internet Directory ■ Oracle Virtual Directory You must run the copyConfig script for each Oracle instance in the source environment. A configuration archive is created for each Oracle instance. 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 -sourceInstanceHomeLoc src_instance_path -sourceComponentName src_component_name [-logDirLoc log_dir_path] [-silent {true | false}] The following example shows how to create an archive of the Oracle Virtual Directory instance named ovd1 in the Oracle instance located in scratchOracleMiddlewareim_1 on Linux: copyConfig.sh -javaHome scratchOracleMiddleware1jrockit_160_20_D1.1.0-18 -archiveLoc tmpovd1.jar -sourceInstanceHomeLoc scratchOracleMiddleware1im_1 -sourceComponentName ovd1 -mdsDataImport -mdi Specifies whether to export the application MDS metadata to the archive so that it can be imported into the target. The default is true. Specify false if you do not want to export the application MDS metadata. If this option is set to true, the subsequent pasteConfig script that copies the component to the target imports the application MDS metadata to the target. Optional -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–3 Cont. Options for the copyConfig Script for Java Components Options Shortcut Description Mandatory or Optional