Note: It is important to understand the details of all the options that should be present in the optfile before executing any TDV utilities using the command-line.
Here is a screenshot for reference:
Find the detailed explanation of each option given below:
i) -pkgfile <file_name> (required): Specifies one or more import CAR files. The file names should be specified as absolute paths from mapped directories.
ii) Login details of the user.
-server <host_name> (required): TDV Server host to which the utility is to connect.
-user <user_name> (required): User name of profile used to import.
-password <password> (required): Password for user profile used to export package.
-domain <domain> (optional): Domain of the user performing the import. If it is omitted, the assumed value is composite.
iii) The last 4 lines in the optfile are for changing the resource attributes during import (optional). In the screenshot above, the attributes are provided with respect to the data source 'ds_inventory'.
Format:- -set <path> <type> <attribute> <value> :
Description: Enables you to change resource attributes during import. You can repeat this option to set different attributes or multiple class paths. String values can be enclosed in double-quotes to allow for spaces.
•The <path> is the TDV resource name.
•The <type> is DATA_SOURCE when the <attribute> is classpath, host, port, database, user, or password.
•The <attribute> can be one or more of the attributes of a data source. All the attributes of a datasource can be changed using the -set option.
These attributes vary with each datasource. The system table SYS_DATASOURCE_ATTRIBUTE_DEFS lists all the attributes for each datasource.