Understanding the Movement of Components

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 20-12 Oracle Fusion Middleware Administrators Guide Table 20–4 describes the options for the copyConfig script for system components.

20.3.1.5 copyConfig Script for Node Manager

Creates a configuration archive that contains the snapshot of the configuration of Node Manager. You must run the copyConfig script for each Node Manager in the source environment. A configuration archive is created for each source Node Manager. The syntax is: copyConfig -javaHome path_of_jdk -archiveLoc archive_location -sourceNMHomeLoc source_Node_Manager_Home_location [-logDirLoc log_dir_path] [-silent {true | false}] The following example shows how to create a copy of the source Node Manager configuration located in scratchOracleMiddlewarewlserver_ 10.3commonnodemanager: copyConfig.sh -javaHome USER_HOMEjrockit_160_17_R28.0.0-679 Table 20–4 Options for the copyConfig 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 to be created by the copyConfig script. In previous releases, this option was named archiveLocation, but that name is now deprecated. Mandatory -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 -sourceComponentName -scn The name of the component to be copied. For example, if your Oracle Internet Directory component is named oid1, specify oid1. Mandatory -sourceInstanceHomeLoc -sih The absolute path of the Oracle instance for the source component. Mandatory