Configuring
the ODBC driver includes configuring environment variables and setting up the
.odbcinst.ini configuration file.
About this task
For an overview of the .odbcinst.ini file, see ODBC driver configuration file (UNIX and Linux).
If you previously installed the client software while logged in as the superuser, you can now log
out and log back in using your own user ID and password. You can use your own user ID and password
when you configure your ODBC driver and Netezza Performance Server system data sources. Configuring the
ODBC driver and Netezza Performance Server system data
sources while logged in as an ordinary user allows each user of the system to supply different
configuration information to access different Netezza Performance Server system data sources.
Procedure
-
Modify the environment variables to include the appropriate installation directories. The
following commands are examples:
For AIX® operating
systems:
export PATH=$PATH:/usr/local/nz/bin
export LIBPATH=$LIBPATH:/usr/local/nz/lib
For HP-UX operating
systems:
export PATH=$PATH:/usr/local/nz/bin
export SHLIB_PATH=$SHLIB_PATH:/opt/datanz/nz/bin
For Linux® and Solaris operating
systems:
export PATH=$PATH:/usr/local/nz/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/nz/lib
These commands change the environment for the current session only. After you verify that your
environment modifications work correctly, edit your login script to set the environment variables
when users log in.
-
If necessary, create or modify the .odbcinst.ini configuration file.
You normally place the .odbcinst.ini file in your home directory while
logged in as an ordinary user. You might want to place the .odbcinst.ini file
in a different location, and you might want to do the configuration as the superuser, rather than as
an ordinary user. In this step, it is assumed that you are logged in as an ordinary user and are
using your home directory for the .odbcinst.ini file. What you do in this step
depends on whether the .odbcinst.ini file already exists in your home
directory:
You can usually use the entry from the odbcinst.ini.sample file without
modifying your .odbcinst.ini file. To see whether you must change any
configuration entries for your installation, consult your Netezza Performance Server system administrator.