Installing DSS Agent on Linux - DSS 6 | Data Source Solutions Documentation
Documentation: Installing DSS Agent on Linux - DSS 6 | Data Source Solutions Documentation
Installing DSS Agent on Linux
This section describes the requirements, step-by-step instructions on how to install the DSS Agent on Linux and the initial system configuration.
For installing the DSS Hub System on Linux, see Installing DSS Hub on Linux.
For installing the DSS Agent on Unix (Solaris, AIX), see Installing DSS Agent on Unix.
Requirements
Following are the prerequisites for installing the DSS Agent on Linux:
-
Sufficient disk space Ensure sufficient disk space is available on the machine where this installation will be performed. For more information, see Agent Disk Requirements.
-
Compatibility Check whether the DSS Agent version is compatible with the operating system and DBMS. Refer to the relevant Supported Platforms section or read the COMPATIBILITY section in the release notes (available under the Downloads tab in the Data Source Solutions dashboard).
-
Installation file DSS Agent installation file for Linux (e.g. datasourcesolutions-6.1.0_21-agent_only-linux_glibc2.27-ppc64-64bit_ga_patch.tar.gz). This file can be downloaded from the Downloads tab in the Data Source Solutions dashboard. For more information, see Downloading DSS.
-
Access to source and target locations For the DSS Agent to access a source or target database directly, the database connectivity (e.g. ODBC drivers) must be installed on the agent machine. For more information, see Source and Target Requirements.
- If DSS Agent must perform log-based capture from an Oracle source database, then the operating system user that DSS Agent uses must be able to read the redo files and archive files that Oracle generates. It can be done by adding the operating system user to the oinstall or dba group in /etc/group. The permission to read these files can also be given by creating special Access Control Lists (ACLs). For more information, see Oracle Requirements.
-
System root permission This permission is typically needed to configure autostart of the DSS Agent process using systemd or xinetd to listen on a TCP/IP port. Alternatively, you can manually start the DSS Agent as daemon process using dssagentlistener, which does not require root permission.
It is recommended to create a non-root account for installing and operating the DSS Agent. We suggest creating a separate user account (e.g, datasourcesolutions) for this purpose.
Install Steps
Perform the following steps as the user that will be used for operating the DSS Agent:
The commands to set the environment variables depend on the shell you use to interface with the operating system. This procedure lists examples that can be used in Bourne Shell (sh) and KornShell (ksh).
-
Configure the environment variables DSS_HOME, DSS_CONFIG, and DSS_TMP for your operating system. Each of these environment variables should be pointed to the DSS Agent installation directories - dss_home, dss_config, and dss_tmp.
export DSS_HOME=/home/datasourcesolutions/dss_homeexport DSS_CONFIG=/home/datasourcesolutions/dss_configexport DSS_TMP=/home/datasourcesolutions/dss_tmpAlso, add the executable directory path to the environment variable PATH.
export PATH=$PATH:$DSS_HOME/bin -
Add the environment variables and the executable directory path into the startup file (e.g. .profile).
export DSS_HOME=/home/datasourcesolutions/dss_home export DSS_CONFIG=/home/datasourcesolutions/dss_config export DSS_TMP=/home/datasourcesolutions/dss_tmp export PATH=$PATH:$DSS_HOME/bin -
Create the installation directory - dss_home:
umask 022mkdir $DSS_HOME- umask 022 is used so that the files and directories created in the following commands are readable by everyone (other Linux users and groups), but only writable by the owner.
- other directories (dss_config and dss_tmp) will be automatically created as needed.
- dss_home is regarded a read-only directory. The user files saved in this directory will be moved to a backup directory when executing the DSS Agent for the first time or after an upgrade.
-
Uncompress the installation file (e.g. datasourcesolutions-6.1.0_21-agent_only-linux_glibc2.27-ppc64-64bit_ga_patch.tar.gz) into the dss_home directory:
cd $DSS_HOMEtar xzf /tmp/datasourcesolutions-6.1.0_21-agent_only-linux_glibc2.27-ppc64-64bit_ga_patch.tar.gz -
Configure the system for DSS Agent. After the agent install steps are completed, it is necessary to configure the DSS Agent process.
There are different ways for configuring the DSS Agent to listen on a TCP/IP port:
-
Linux systemd
Standard on some Linux distributions. Requires root privilege.Systemd configuration steps
The following steps should be performed as user root to configure systemd:
-
Create the systemd unit files dss.socket and dss@.service in /etc/systemd/system directory.
-
dss.socket should contain the following:
[Unit] Description=DSS service socket [Socket] ListenStream=4343 Accept=true TriggerLimitIntervalSec=1s TriggerLimitBurst=10000 MaxConnectionsPerSource=100 MaxConnections=500 KeepAlive=true [Install] WantedBy=sockets.target- TriggerLimitIntervalSec is supported since systemd version 230. - TriggerLimitBurst is supported since systemd version 230. - MaxConnectionsPerSource is supported since systemd version 232.
<div class="callout callout-important">In a IPv4/IPv6 mixed system, if you want to force systemd to use IPv4, set ListenStream=0.0.0.0:4343.
-
-
-
- umask 022 is used so that the files and directories created in the following commands are readable by everyone (other Linux users and groups), but only writable by the owner.
2. **dss\@.service** should contain the following:
```plaintext
[Unit]
Description=DSS service
[Service]
Environment="DSS_HOME=/home/datasourcesolutions/dss_home"
Environment="DSS_CONFIG=/home/datasourcesolutions/dss_config"
Environment="DSS_TMP=/home/datasourcesolutions/dss_tmp"
User=datasourcesolutions
ExecStart=/home/datasourcesolutions/dss_home/bin/dssagent
StandardInput=socket
KillMode=process
TimeoutStartSec=infinity
[Install]
WantedBy=multi-user.target
```
<div class="callout callout-important">
User must be set to the user under which the DSS Agent is installed/running.