This section describes the environment variables that you need to set in your IWH.environment file. All the environment variables that you must change are located between the START and END comment lines. Figure 2 displays the configurable portion of a sample IWH.environment file.
The following rules apply to both ODBC and DB2 CLI users:
To access warehouse sources or targets in DB2 databases, you must configure the variables in the DB2 environment section.
The following rules apply to ODBC users:
On AIX, the default path is /usr/lpp/db2_07_01/odbc. On the Solaris Operating Environment, the default path is /opt/IBMdb2/V7.1/odbc.
When you change settings in the IWH.environment file, you must restart the warehouse agent daemon.
Figure 2. Sample IWH.environment file
# !!!!!!!!!!!!!!!!!!!!!!!!!! ATTENTION !!!!!!!!!!!!!!!!!!!!!!!!!
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# ! START OF MUST SET ENVIRONMENT VARIABLES SECTION !
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# ! DB2 environment section. Please set DB2 instance id !
#
DB2INSTANCE=<.... your DB2 instance id ....>
LANG=en_US
LC_ALL=en_US
DB2CODEPAGE=819
export DB2INSTANCE LANG LC_ALL DB2CODEPAGE
# ! If using Data Warehouse Center ODBC drivers, set the
# ! IS_ODBC environment variable to the path for
# ! Data Warehouse Center ODBC drivers directory.
#
# IS_ODBC=<....your ODBC base install directory>
# Should have path for Data Warehouse Center ODBC drivers odbc dir
# ! For essbase udp, set the following path : !
#
# ARBORPATH=<..../essbase>
# export ARBORPATH
# ! If using Oracle ODBC driver, set the following paths: !
#
# ORACLE_HOME=<.... your Oracle client HOME dir ....>
# TNS_ADMIN=<.... your TNS_ADMIN dir ....>
# ORACLE_SID=<.... your ORACLE_SID ....>
# export ORACLE_HOME TNS_ADMIN ORACLE_SID
# ! If using Sybase ODBC driver, set the following paths: !
#
# SYBASE=<.... your Sybase client dir ....>
# DSQUERY=<.... your DSQUERY value ....>
# export SYBASE DSQUERY
# ! If using Informix ODBC driver, set the following paths:!
#
# INFORMIXDIR=<.... your Informix client dir ....>
# INFORMIXSERVER=<.... your Informix Server ....>
# export INFORMIXDIR INFORMIXSERVER
# Environment variables for JCL templates and logs.
# You can choose to change values for following environment variables !
#
VWSPATH=<... the warehouse agent base install directory ...>
VWS_LOGGING=/var/IWH/ # default path
export VWS_LOGGING VWSPATH
# !!!!!!!!!!!!!!!!!!!!!!!!!! ATTENTION !!!!!!!!!!!!!!!!!!!!!!!!!
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# ! END OF MUST SET ENVIRONMENT VARIABLES SECTION !
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
To configure the warehouse agent environment:
IWH.agent.db.interface [ odbc | db2cli ]
The warehouse agent executable file has two versions:
This is the default link.
If you have multiple DB2 instances, you must choose one instance to be the master DB instance.
The LANG and LC_ALL environment variables direct the warehouse agent to set the locale to your local locale.
The DB2CODEPAGE variable overrides the system code page. This variable is used to communicate with servers that cannot interpret the default code page from the client. The DB2CODEPAGE variable sets the default code page to a code page that the server supports. For more information, see the Installation and Configuration Supplement.
The default directory is /var/IWH.
If you are using a national language version of the Solaris Operating Environment warehouse agent, you might need to choose a user-defined conversion table that the agent can use for string conversions. To do this, add the environment variable VWA_LOCALE_TABLE to the IWH.environment file and set its value to the code set that you want to use (for example, 8859-1 for en_US).
If these port numbers are already in use in your operating environment, you can change them in the /etc/services file on your system. However, you must also change the same port numbers on the workstation where the Data Warehouse Center administrative client and warehouse server are installed, and on all the associated warehouse agent sites.
You must add these services because the install process updates only your local /etc/services file.
ps -e | grep vwdaemon
kill pid
where pid is the daemon process ID.
After you stop the daemon, it will restart automatically.