The Data Mover Command-Line Interface must be installed for IBM AIX, Ubuntu, Windows systems, and Linux on non-Teradata servers using the following procedures. You cannot use PUT to install the Command-Line Interface on those systems.
Make sure that any existing installation on the system is uninstalled before reinstalling. You can have only one version of the Data Mover Command-Line package on a server.
Steps 1 through 4 do not apply to installation on Windows systems.
Only the major and minor versions of the Data Mover daemon and the Data Mover command line interface or Data Mover portlet must match.
- Add the following lines of code to the end of the /etc/profile file to update the JAVA_HOME and PATH environment variables for all users:export JAVA_HOME={full path of java installation location}export PATH=$JAVA_HOME/bin:$PATH
- Run the command: source /etc/profile
- Verify that the output shows JRE.11.0:java -version
- Open the .profile file of the root user and verify that the values for the JAVA_HOME and PATH environment variables are the same as those defined in /etc/profile.If the values are different, the java -version command will not produce the correct output during install time, and the installation will fail.
- Copy the properties file to an outside directory if you want to preserve any customization that you made to the default values:TDM_install_directory\CommandLine\commandline.properties
- Uninstall and upgrade the appropriate software for your system as follows:
Operating System Actions Linux (for non-Teradata servers) - At the command line, type export DM_INTERACTIVE_INSTALL=1 to set the environment variable for interactive install.
- At the command line, type the following:
gunzip DMCmdline__linux_i386.20.00.xx.xx.tar.gz
tar xvf DMCmdline__linux_i386.20.00.xx.xx.tar
cd DMCmdline.20.00*
rpm -Uvh DMCmdline__linux_noarch.20.00.xx.xx-1.rpm
- Answer the prompts as needed, and press Enter to accept the defaults where appropriate.
- Type rpm -qa |grep DMCmdline to verify installation.
IBM AIX - At the command line, type installp -u DMCmdline to uninstall.
- At the command line, type the following to upgrade:
gunzip tdm-aix__aix_power.20.00.xx.xx.tar.gz
tar xvf tdm-aix__aix_power.20.00.xx.xx.tar
installp -acF -d ./DMCmdline DMCmdline
- Answer the prompts as needed and press Enter to accept defaults where appropriate.
- Type lslpp -l "DM*" to verify installation.
Windows - To uninstall the existing DMCmdline software package, go to Teradata Data Mover Command Line Interface and select Remove. ; then, select
- Copy the Data Mover directory on the media to a folder on the hard drive.
- Go to DataMover/Windows and unzip tdm-windows__windows_i386.20.00.xx.xx.zip.
- Go to the DISK1 directory and run setup.exe.
- Answer the prompts as needed and press Next to accept defaults where appropriate.
- Select Install when finished.
- Go to to verify installation.
Ubuntu - At the command line, type dpkg -P dmcmdline to uninstall.
- The commandline.properties file is preserved as commandline.properties.dpkgsave in the /opt/teradata/client/20.00/datamover/commandline directory, and you can ignore the following warning:
Warning: while removing dmcmdline, directory /opt/teradata/client/20.00/datamover/commandline is not empty so not removed
- If you do not want to preserve the properties file, you can remove the /opt/teradata/client/20.00/datamover/commandline folder after uninstall is completed.
- The commandline.properties file is preserved as commandline.properties.dpkgsave in the /opt/teradata/client/20.00/datamover/commandline directory, and you can ignore the following warning:
- At the command line, type the following:
tar xzvf tdm-ubuntu__ubuntu.20.00.xx.xx.tar.gz
cd DMCmdline.20.00.xx.xx
dpkg -i DMCmdline__ubuntu_all.20.00.xx.xx-1.debIn Ubuntu, -i is used for both install and upgrade. - Type dpkg -l |grep dmcmdline to verify the installation.
- Restore the values from the properties file you copied to an outside directory if you want to preserve any customization that you made to the default values and override the values introduced by the patchTDM_install_directory\CommandLine\commandline.properties
- Specify the Data Mover REST server URL for communicating with the daemon as in the following example:dm.rest.endpoint=https://dm_host:1443/datamover
Make sure the host:port value used for dm.rest.endpoint is on the accept.host.list in tdmrest.properties.
- Logoff from the current session and log back in to view the updated environment.