In AIX, HP-UX, and Solaris, the environment variables are specified in C shell, Korn shell, and Bourne shell scripts. When the DB2 extenders are installed, the environment variables for the server are set as follows:
C shell
setenv DB2MMPATH /usr/lpp/db2ext/samples:/tmp setenv DB2MMTEMP /tmp setenv DB2MMSTORE /tmp setenv DB2MMEXPORT /tmp
Korn and Bourne shell
DB2MMPATH=/usr/lpp/db2ext/samples:/tmp export DB2MMPATH DB2MMSTORE=/tmp export DB2MMSTORE DB2MMEXPORT=/tmp export DB2MMEXPORT DB2MMTEMP=/tmp export DB2MMTEMP
The environment variables for the server are initially set to values that allow you to access the media files that are used in the sample programs that are distributed with the DB2 Extenders. (See Appendix B, Sample programs and media files for information about the sample programs and media files.)
The client environment variables are set as follows when you install the DB2 Extenders in an AIX, HP-UX, or Solaris client:
C shell
setenv DB2MMPATH /tmp setenv DB2MMTEMP /tmp
Korn and Bourne shell
DB2MMPATH=/tmp export DB2MMPATH DB2MMTEMP=/tmp export DB2MMTEMP
Set the server and client environment variables that are used to resolve file names. Specify values that are appropriate for your environment. You can specify multiple directories, separated by a delimiter, for the environment variables that end in PATH. The environment variables that end in STORE, EXPORT, and TEMP are set with one directory only.
Specify the names of the appropriate image display, audio play, and video play programs in the DB2IMAGEBROWSER, DB2AUDIOPLAYER, and DB2VIDEOPLAYER client environment variables, respectively.
You can change the initial settings of the environment variables as follows:
C shell
Use the SETENV command to set environment variables:
setenv env-var directory
For example:
setenv DB2MMPATH /usr/lpp/db2ext/samples:/media setenv DB2IMAGEPATH /employee/pictures:/images setenv DB2AUDIOSTORE /employee/sounds setenv DB2IMAGEBROWSER 'xv %s'
Bourne shell
Use the EXPORT command to set environment variables:
env-var=directory export env-var
For example:
DB2MMPATH=/usr/lpp/db2ext/samples:/media export DB2MMPATH DB2IMAGEPATH=/employee/pictures:/images export DB2IMAGEPATH DB2AUDIOSTORE=/employee/sounds export DB2AUDIOSTORE
Korn shell
Use the EXPORT command to set environment variables:
export env-var=directory
For example:
export DB2MMPATH=/usr/lpp/db2ext/samples:/media export DB2IMAGEPATH=/employee/pictures:/images export DB2AUDIOSTORE=/employee/sounds