Introduction to the Movement Scripts

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 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