The db2setup utility is the recommended method for installing all DB2 products on UNIX-based operating systems. This utility can perform all of the tasks required to install DB2 Data Links Manager. If you prefer not to use the db2setup utility, see Manually installing DB2 Data Links Manager Using SMIT.
To install and configure DB2 Data Links Manager using the db2setup utility:
The db2setup utility automatically generates an installation log in /tmp/db2setup.log. If you want to generate a trace file to record any installation errors in greater detail, enter the ./db2setup -d command. This generates a trace file in /tmp/db2setup.trc.
When you select to install a DB2 product, you can choose the product's Customize option to view and change the optional components that will be installed.
If you are installing in a DCE-DFS environment, one node in the cell will contain the DLFM_DB and must be set up as the DB2 server. All other nodes on which Data Links Manager is installed must be set up as DB2 clients for the DLFM_DB.
After installation is complete and before you exit the db2setup utility, you can select View Log to review the installation process. You can also review the /tmp/db2setup.log file for more detailed information. If you ran the ./db2setup -d command to capture any installation errors, you can review the trace log in /tmp/db2setup.trc.
The following actions are performed by the db2setup utility:
DLFM_PORT=port_number DLFM_LOG_LEVEL=LOG_ERR DB2_RR_TO_RS=ON DB2_HASH_JOIN=ON DLFM_INSTALL_PATH=$HOME/sqllib/bin DLFM_INSTANCE_NAME=instance_name DB2INSTANCE=DLFM_INSTANCE_NAME DLFM_BACKUP_DIR_NAME=$HOME/dlfmbackup //JFS only DLFM_BACKUP_DIR_NAME=/:/dlfmbackup //DCE-DFS only DLFM_BACKUP_TARGET=LOCAL DLFM_FS_ENVIRONMENT=file_system
where:
(for bash, Bourne, or Korn shell)
export PATH=$PATH:$HOME/sqllib/bin:$HOME/sqllib/adm:$HOME/sqllib/misc
(for C shell)
setenv PATH=${PATH}:${HOME}/sqllib/bin:${HOME}/sqllib/adm:${HOME}/sqllib/misc
To run the DB2 Data Links Manager Administrator's db2profile or db2cshrc script file each time this user logs on to the system, add the following entry to the DB2 Data Links Manager Administrator's .profile script file:
. INSTHOME/sqllib/db2profile (for bash, Bourne, or Korn shell) source INSTHOME/sqllib db2cshrc (for C shell)
where INSTHOME is the home directory of the DB2 Data Links Manager Administrator.
dlfs 12 /usr/lpp/db2_07_01/bin/dlfs_mnthlp /usr/lpp/db2_07_01/bin/dlfs_fshelper
If the vfs number 12 is already in use, the db2setup utility will specify a different number between 8-15 for use by the Virtual File System (VFS).
In JFS environments, a DLFM_DB database is created on the node containing DB2 DataLinks Manager.
set pre_start_dfs "/usr/bin/dlfsdmap_prestart.dfs"