Set environment variables after you install the database
server. If you created a database server during installation, all
mandatory environment variables are set, however, you can set optional
environment variables.
Before you begin
You must be logged in as an administrative user or with sufficient
privileges to set environment variables.
About this task
UNIX, Linux: You can
set environment variables at the command line, in an environment configuration
file, or in a login file.
Windows: You can set environment variables
in the system applet or at the command line.
Procedure
To set the minimum required environment variables:
- Set the INFORMIXDIR environment variable
to the directory where you installed the database server.
- UNIX, Linux: Set the PATH environment
variable to include the $INFORMIXDIR/bin directory
as follows.
You must set the INFORMIXDIR variable
and add $INFORMIXDIR/bin to the PATH environment
variable for each user.
- Set the INFORMIXSERVER environment
parameter to the name of the database server.
- Set the ONCONFIG environment variable
to the name of a valid onconfig file that you
created for the server.
- If you want to use a locale or language other than the
default locale of US English, set the following environment variables:
- Set the CLIENT_LOCALE environment
parameter to specify a nondefault locale.
- Set the DBLANG environment parameter
to specify the subdirectory of INFORMIXDIR that
contains the customized language-specific message files that HCL®
OneDB® products
use.
- Set the DB_LOCALE environment parameter.
- Set the SERVER_LOCALE environment
parameter.
- Set the GL_USEGLU environment parameter
if you plan to use UTF-8 character encoding. You must set the GL_USEGLU environment
parameter before you create a database in which you plan to store
UTF-8 character data.
- Set the INFORMIXSQLHOSTS environment
parameter to the sqlhosts file. The default location
of this file is $INFORMIXDIR/etc/sqlhosts (UNIX,
Linux) or %INFORMIXDIR%\etc\sqlhosts (Windows).
- UNIX, Linux: Set the INFORMIXTERM environment
parameter to specify whether the DB-Access utility uses the information
in the termcap file or the terminfo directory.
On character-based systems, the termcap file
and terminfo directory determine terminal-dependent
keyboard and screen capabilities, such as the operation of function
keys, color, and intensity attributes in screen displays, and the
definition of window borders and graphic characters.
-
UNIX, Linux: If your applications
are compiled with the
HCL OneDB Client Software Development
Kit (Client SDK), set
the platform-specific library path environment variable to $INFORMIXDIR/lib and
to the product library subdirectory. See the machine notes for your
client products for the appropriate environment variable name.