Ingres environment variables and logicals that are defined at the Ingres system or installation-wide level affect all users in an installation. These are usually defined during the install procedure. However, the system administrator can reset some manually.
Use Ingres Visual Manager to view Ingres environment variables and to manually register and deregister them. Additionally, you can use it to override certain environment variables at the user level.
To view environment variables in Ingres Visual Manager:
The Ingres parameters that are set at the installation (system) level are displayed.
Parameters that are not currently set are displayed.
If the User subtab is selected, those parameters that can be overridden at the user level are displayed.
Any extra Ingres environment variables that are added or variables whose names are dynamic are displayed. You can edit these parameters from this screen.
Alternatively, to view all installation-wide environment variables from the command line, enter the following command at the operating system prompt:
ingprenv
To manually register or to remove an environment variable from the Ingres symbol table, use the ingsetenv and ingunset utilities. Always use these commands to alter the symbol table. Never edit this file directly.
A similar set of system administrator commands are available to set, print, and unset installation-wide Ingres environment variables simultaneously for all clients of an Ingres installation server. These commands are ingsetall, ingprall, and ingunsetall.
Ingres logicals (with the exception of II_SYSTEM) are defined in II_CONFIG:config.dat during the install process. These logicals can be redefined locally using the operating system command define/job logical_name "value." However, to update the logical definitions permanently, the II_CONFIG:config.dat file must be manually edited and the logical definitions modified.
To facilitate user access to Ingres tools and logical definitions, add the following access commands to the users' login.com file when you log into the system.
For users, add:
@II_SYSTEM:[ingres]ingusrdef.com
For database administrators, add:
@II_SYSTEM:[ingres]ingdbadef.com
For the system administrator, add:
@II_SYSTEM:[ingres]ingsysdef.com
The commands in these files provide tools access to all users in a system-level installation and to all users with the appropriate group user identification code (UIC) in a group-level installation. The Ingres logicals contained in II_CONFIG:config.dat are redefined at a job level for each user when one of the above commands is executed.
You can display all installation-wide Ingres logicals by typing the following command at the operating system prompt:
show logical [/system|/group|/job] ii*
ING_EDIT specifies the default editor invoked by various editor commands.
Windows and UNIX:
To set ING_EDIT for an installation using Ingres Visual Manager, follow these steps:
The Ingres parameters that are set at the installation (system) level are displayed.
Note: For variables that have a dynamic name, select the Extra tab instead of the System tab.
To set ING_EDIT using a system command, do the following:
Windows:
ingsetenv ING_EDIT D:\TOOLS\VI.EXE
UNIX:
ingsetenv ING_EDIT /usr/bin/vi
VMS:
define [/table_level] logical_name "value"
Note: On VMS, the value assigned to the Ingres logical must be in double quotes.
Some Ingres environment variables and logicals can be set or reset by individual users in their local environment using operating system commands. Those set in a user's local environment supersede the Ingres environment variables and logicals set system-wide.
UNIX: A good place to set user-defined environment variables is the user's .login (for the C shell) or profile (for the Bourne Shell) file.
VMS: Individual users can define Ingres environment variables at the job or process level with DCL commands, or they can be defined in the user's login.com file.
An environment variable typically set in the user's local environment is TERM_INGRES. It specifies the termcap definition to be used by the forms system. It can be redefined locally by entering commands at the operating system prompt as in the following example:
Windows:
SET TERM_INGRES=IBMPC
UNIX:
C Shell:
setenv TERM_INGRES vt100f
Bourne Shell:
TERM_INGRES=vt100f export TERM_INGRES
VMS:
DEFINE TERM_INGRES "VT100F"
A user can display the values set in their environment with the following command entered at the operating system prompt:
Windows:
SET
UNIX:
BSD:
printenv
System V:
env
In general, only the following Ingres environment variables and logicals must be set in your local environment:
Windows:
UNIX:
VMS:
II_SYSTEM
The following Ingres environment variables and logicals can be reset by users in their local operating system shell:
Important! II_TIMEZONE_NAME can be reset for client installations only. Server installations must not reset this logical because it may affect date conversions from the local system time to the internal GMT-based value.
The following Ingres environment variables and logicals must not be reset by users:
UNIX: These environment variables and logicals must not be visible using the env or printenv command.