Using Environment Variables
Go Up to Programming with the InterBase API
InterBase client applications can use four environment variables to establish program parameters. These variables must be set so that they are available to the application when it is running. For example, setting these variables within a DOS window after Microsoft Windows has been started does not affect any Windows programs, but does affect DOS applications in that window.
The following table summarizes these variables and their uses:
Variable | Purpose | Example |
---|---|---|
|
Specifies a user name for the PC client application. |
|
|
Specifies a case-sensitive password for the PC client application. |
|
|
If one installsInterBase to a non-default directory, setting the INTERBASE environment variable helps the client application contact the correct server instance running from the same |
On Windows set the following in your system environment: On UNIX set the following in your session environment. Default is either /usr/interbase/ or /opt/interbase/ depending on the UNIX system being used.
|
|
Can be set to the name of the InterBase instance that you want to communicate with by default. If this environment variable is not set, the client applications are expected to provide the instance name of the server to connect to in the database URL syntax. The |
If
|
The ISC_USER
and ISC_PASSWORD
environment variables are used together to establish a valid user name and password combination to pass to the remote InterBase database server.
- Important: Do not use the
ISC_PASSWORD
environment variable when security is a concern. Anyone with access to a client where anISC_PASSWORD
environment variable is defined in a file such asautoexec.bat
can easily view the password.