Was this helpful?
ING_SET_DBNAME
This name applies to both SQL and QUEL single-line terminal monitors as well as Ingres tools such as ABF, VIFRED, embedded SQL, QBF, IQUEL, ISQL, and so forth. ING_SET_DBNAME points to SET statements that are executed whenever this Ingres environment variable/logical takes effect.
ING_SET_DBNAME affects users who connect to the database specified by DBNAME through an application, an Ingres tool, or a terminal monitor. If set globally, it affects all users of DBNAME. If set interactively or locally, it affects only this user.
Windows: Global setting is with ingsetenv, or locally in the user’s environment.
UNIX: Global setting is with ingsetenv, or locally in the user’s .login, .profile or .cshrc file.
VMS: Global setting is with define/system, define/group, or locally with define/process in the user’s login.com file.
ING_SET_DBNAME is set to a string surrounded by quotes. The string must be 256 characters or less. The string can contain either:
One or more SET statements totaling no more than 256 characters
The word include followed by the full path name to a file containing any number of SET statements
Example: Set ING_SET_DBNAME
To define this Ingres environment variable/logical use the following command entered at the operating system prompt:
Windows:
SET ING_SET_DBNAME=set-statement {;set statement}
For example:
SET ING_SET_MYDB=SET LOCKMODE SESSION WHERE READLOCK=NOLOCK
SET ING_SET_MYDB=include C:\users\default\mystartfile
UNIX:
C Shell:
setenv ING_SET_DBNAME 'set-statement {; set-statement}'
or:
setenv ING_SET_DBNAME 'include path_to_file'
For example:
setenv ING_SET_MYDB ’SET LOCKMODE SESSION WHERE READLOCK=NOLOCK’
setenv ING_SET_MYDB ’include /usr/george/mystartfile’
Bourne Shell:
ING_SET_DBNAME='set-statement {; set-statement}'
or:
ING_SET_DBNAME='include path_to_file' export ING_SET_DBNAME
For example:
ING_SET_MYDB='SET LOCKMODE SESSION WHERE READLOCK=NOLOCK'export ING_SET_MYDB
ING_SET_MYDB='include /usr/george/mystartfile'export ING_SET_MYDB
VMS:
define ING_SET_DBNAME "set-statement {; set-statement}"
or:
define ING_SET_DBNAME "include path_to_file"
For example:
DEFINE /PROCESS ING_SET_MYDB ‑ "SET LOCKMODE SESSION WHERE READLOCK=NOLOCK"
DEFINE /PROCESS ING_SET_MYDB ‑ "INCLUDE DUA1:[USER.GEORGE]MYSTART.FILE"
For the include format, the file specified by path_to_file contains the SET statements. If you have several SET statements, separate the statements with a semicolon (;). Place each SET statement on a separate line in the file.
For example:
SET autocommit on;
SET lockmode session where readlock=nolock;
SET result_structure cbtree
Last modified date: 08/28/2024