![]() |
|
Home | Contents | Index | Master Index | New Book | ![]() |
![]() |
Environment VariablesThe following sections discuss the environment variables used by Informix products.
For example, to set the ARC_DEFAULT environment variable to specify the file /usr/jane/arcdefault.janeroe, enter the following command: For more information on archiving, see the INFORMIX-Universal Server Archive and Backup Guide.
The tctermcap file serves the following purposes for the ON-Archive menu interface:
For more information on archiving, see the INFORMIX-Universal Server Archive and Backup Guide.
Setting the DBANSIWARN environment variable for DB-Access is functionally equivalent to including the -ansi flag when invoking the utility from the command line. If you set DBANSIWARN before you run DB-Access, warnings are displayed on the screen within the SQL menu. Set the DBANSIWARN environment variable before you compile an INFORMIX-ESQL/C program to check for Informix extensions to ANSI standard syntax. When Informix extensions to ANSI-standard syntax are encountered in your program at compile time, warning messages are written to the screen.
At run time, the DBANSIWARN environment variable
causes the SQL Communication Area (SQLCA)
variable sqlca.sqlwarn.sqlwarn5 to be set to Once you set DBANSIWARN, Informix extension checking is automatic until you log out or unset DBANSIWARN. To turn off Informix extension checking, unset the DBANSIWARN environment variable by entering the following command:
DBBLOBBUFThe DBBLOBBUF environment variable controls whether a simple large object, namely TEXT or BYTE, is stored temporarily in memory or in a file while being unloaded with the UNLOAD statement. The term, DBBLOBBUF, is used for historical reasons, even though it represents the size of simple large objects, and not of BLOBs, which are smart large objects.
If the simple large object is smaller than the default of 10 coagulates or the setting of the DBBLOBBUF environment variable, it is temporarily stored in memory. If the simple large object is larger than the default or the setting of the environment variable, it is written to a temporary file. This environment variable applies to the UNLOAD command only. For instance, to set a buffer size of 15 kilobytes, set the DBBLOBBUF environment variable as the following example shows: In the example, any blobs smaller than 15 kilobytes are stored temporarily in memory. Blobs larger than 15 kilobytes are stored temporarily in a file.
Previously, if only the decade was provided for a literal DATE or DATETIME value in a table column, the present century was used to expand the year. For example, 12/31/96 would have been expanded to 12/31/1996. With this release, three new algorithms are added to complete the century value of a year: past (
When the DBCENTURY environment variable is not set, the current century is used as the system default. You can override the default by specifying all four digits. The following examples illustrate how the DBCENTURY environment variable expands DATE and DATETIME year formats. Behavior of DBCENTURY = FBehavior of DBCENTURY = C
Behavior of DBCENTURY = RDBDATEThe DBDATE environment variable specifies the end-user formats of DATE values. End-user formats affect the following situations:
![]() With standard formats, you can specify the following attributes:
For the U.S. ASCII English locale, the default setting for DBDATE is Other acceptable characters for the separator are a hyphen (-), a period (.), or a zero (0). Use the zero to indicate no separator.
The slash ( The following table shows a few variations of setting the DBDATE environment variable.
Notice that the formats
DBDELIMITERThe DBDELIMITER environment variable specifies the field delimiter used by the dbexport utility and with the LOAD and UNLOAD statements.
The delimiter can be any single character, except the characters in the following list:
|= ASCII 124 ) is the default. To change the field delimiter to a plus (+), set the DBDELIMITER environment variable, as shown in the following example:
DBEDITThe DBEDIT environment variable lets you name the text editor that you want to use to work with SQL statements and command files in DB-Access. If DBEDIT is set, the specified editor is called directly. If DBEDIT is not set, you are prompted to specify an editor as the default for the rest of the session.
For most systems, the default editor is vi. If you use another editor, be sure that it creates flat ASCII files. Some word processors in document mode introduce printer control characters that can interfere with the operation of your Informix product. To specify the EMACS text editor, set the DBEDIT environment variable by entering the following command:
DBFLTMASKBy default, Informix client applications (including DB-Access utility or any ESQL program) display the floating-point values of data types FLOAT, SMALLFLOAT, and DECIMAL with 16 digits to the right of the decimal point. However, the actual number of decimal digits displayed depends on the size of the character buffer.To override the default number of decimal digits in the display, you can set the DBFLTMASK environment variable to the number of digits desired.
By default, Informix products put compiled messages in a locale-specific subdirectory of the $INFORMIXDIR/msg directory. These compiled message files have the suffix .iem. If you want to use a message directory other than $INFORMIXDIR/msg, where, for example, you can store message files that you have created, perform the following steps.
1. In $DBLANG, if DBLANG is set to a full pathname 2. In $INFORMIXDIR/msg/$DBLANG, if DBLANG is set to a relative pathname 3. In $INFORMIXDIR/$DBLANG, if DBLANG is set to a relative pathname 4. In $INFORMIXDIR/msg/en_us/0333
![]()
If you use any character except an alphabetic character for front or back, you must enclose the character in quotes. When you display MONEY values, Informix products use the DBMONEY environment variable to format the output.
10050 is formatted as $100.50 .
Suppose you want to represent MONEY values in DM (Deutsche Mark), which uses the currency symbol Here, DM is the currency symbol preceding the MONEY value, and a comma separates the integral from the fractional part of the MONEY value. As a result, the amount 10050 is displayed as DM100,50 .
![]()
For example, to specify load_db as the name of the database, enter the following command:
DBPATHUse DBPATH to identify the database servers that contain databases (if you are using Universal Server). The DBPATH environment variable also specifies a list of directories (in addition to the current directory) in which DB-Access looks for command scripts (.sql files).The CONNECT, DATABASE, START DATABASE, and DROP DATABASE statements use DBPATH to locate the database under two conditions:
To add a new DBPATH entry to existing entries, see "Modifying the Setting of an Environment Variable".
DBPATH can contain up to 16 entries. Each entry (full_pathname, servername, or servername and full_pathname) must be less than 128 characters. In addition, the maximum length of DBPATH depends on the hardware platform on which you are setting DBPATH. When you access a database using the CONNECT, DATABASE, START DATABASE, or DROP DATABASE statement, the search for the database is done first in the directory and/or database server specified in the statement. If no database server is specified, the default database server as set in the INFORMIXSERVER environment variable is used. (The default directory is the current working directory if the database server is on the local computer or your login directory if the database server is on a remote computer.) If a directory is specified but is not a full path, the directory is considered to be relative to the default directory. If the database is not located during the initial search, and if DBPATH is set, the database servers and/or directories in DBPATH are searched for the indicated database. The entries to DBPATH are considered in order.
In the following example, the DBPATH setting causes DB-Access to search for the database files in your current directory and then in the Joachim and Sonja directories on the local computer: As shown in the previous example, if the pathname specifies a directory name but not a database server name, the directory is sought on the computer running the default database server as specified by the INFORMIXSERVER environment variable (see page 3-49.). For instance, with the previous example, if INFORMIXSERVER is set to quality, the DBPATH value is interpreted as shown in the following example, where the double slash precedes the database server name:
Searching Networked Computers for DatabasesIf you are using more than one database server, you can set DBPATH to explicitly contain the database server and/or directory names that you want to search for databases. For example, if INFORMIXSERVER is set to quality but you also want to search the marketing database server for /usr/joachim, set DBPATH as shown in the following example:
Specifying a ServernameYou can set DBPATH to contain only database server names. This setting allows you to locate only databases and not locate command files.The Universal Server or SE administrator must include each database server mentioned by DBPATH in the $INFORMIXDIR/etc/sqlhosts file. For information on communication-configuration files and dbservernames, see the INFORMIX-Universal Server Administrator's Guide. For example, if INFORMIXSERVER is set to quality, you can search for a Universal Server database first on the quality database server and then on the marketing database server by setting DBPATH shown in the following example: If you are using DB-Access in this example, the names of all the databases on the quality and marketing database servers are displayed with the Select option of the DATABASE menu.
The default program is found in one of two places:
DBREMOTECMDYou can set the DBREMOTECMD environment variable to override the default remote shell used when you perform remote tape operations with the INFORMIX-Universal Server. Set it using either a simple command or the full pathname. If you use the full pathname, the database server searches your PATH for the specified command.
Informix recommends the use of the full pathname syntax on the interactive UNIX platform to avoid problems with similarly named programs in other directories and possible confusion with the restricted shell (/usr/bin/rsh). Set the DBREMOTECMD environment variable for a simple command name by entering the following command: Set the DBREMOTECMD environment variable to specify the full pathname by entering the following command: For more information on DBREMOTECMD, see the discussion in the INFORMIX-Universal Server Archive and Backup Guide about using remote tape devices with Universal Server for archives, restores, and logical-log backups.
The DBSPACETEMP environment variable overrides the default dbspaces specified by the DBSPACETEMP configuration parameter in the Universal Server configuration file. For example, you might set the DBSPACETEMP environment variable by entering the following command: Separate the dbspace entries with either colons or commas. The number of dbspaces is limited by the maximum size of the environment variable, as defined by the UNIX shell. Universal Server does not create a dbspace specified by the environment variable if the dbspace does not exist. The two classes of temporary tables are: explicit temporary tables that are created by the user and implicit temporary tables that are created by Universal Server. You use the DBSPACETEMP environment variable to specify the dbspaces for both types of temporary tables. If you create an explicit temporary table with the CREATE TEMP TABLE statement and do not specify a dbspace for the table either in the IN dbspace clause or in the FRAGMENT BY clause, Universal Server uses the settings in the DBSPACETEMP environment variable to determine where to create the table. If the DBSPACETEMP environment variable is not set, Universal Server uses the ONCONFIG parameter DBSPACETEMP. If this parameter is not set, Universal Server creates the temporary table in the same dbspace where the database resides. If you create an explicit temporary table with the SELECT INTO TEMP statement, Universal Server uses the settings in the DBSPACETEMP environment variable to determine where to create the table. If the DBSPACETEMP environment variable is not set, Universal Server uses the ONCONFIG parameter DBSPACETEMP. If this parameter is not set, Universal Server creates the temporary table in the root dbspace. Universal Server creates implicit temporary tables for its own use while executing join operations, SELECT statements with the GROUP BY clause, SELECT statements with the ORDER BY clause, and index builds. When it creates these implicit temporary tables, Universal Server uses disk space for writing the temporary data, in the following order:
2. The dbspace or dbspaces specified by the environment variable DBSPACETEMP, if it is set 3. The dbspace or dbspaces specified by the ONCONFIG parameter DBSPACETEMP DBTEMPSet the DBTEMP environment variable to specify the full pathname of the directory into which you want INFORMIX-SE or INFORMIX-Gateway products to place their temporary files and temporary tables.
Set the DBTEMP environment variable to specify the pathname usr/magda/mytemp by entering the following command: If you do not set DBTEMP, temporary files are created in /tmp. If DBTEMP is not set, temporary tables are created in the directory of the database (that is, the .dbs directory). Universal Server uses DBSPACETEMP to specify the location of temporary files.
You can set the DBTIME environment variable to manipulate DATETIME formats so that the formats conform more closely to various international or local TIME conventions. DBTIME takes effect only when you call certain INFORMIX-ESQL/C DATETIME routines; otherwise, use the DBDATE environment variable. (For more information, see the INFORMIX-ESQL/C Programmer's Manual.) You can set DBTIME to specify the exact format of an input/output (I/O) DATETIME string field by using the formatting directives described in the following list. Otherwise, the behavior of the DATETIME formatting routine is undefined.
For example, consider how to convert a DATETIME YEAR TO SECOND to the following ASCII string format: You set DBTIME as shown in the following list: The default DBTIME produces the conventional ANSI SQL string format shown in the following line: The default DBTIME is set as shown in the following example: An optional field width and precision specification can immediately follow the percent (%) character; it is interpreted as described in the following list: When you use field width and precision specifications, the following limitations apply:
F conversion does not follow the field width and precision format conversions that are described earlier.See the discussion of DBDATE on page 3-23 for related information.
For example, to set DBUPSPACE to 2,500 kilobytes, enter the following command: Then no more than 2,500 kilobytes of disk space can be used during the execution of an UPDATE STATISTICS statement. If a table requires 5 megabytes of disk space for sorting, then UPDATE STATISTICS accomplishes the task in two passes; the distributions for one half of the columns are constructed with each pass. If you try to set DBUPSPACE to any value less than 1,024 kilobytes, it is automatically set to 1,024 kilobytes, but no error message is returned. If this value is not large enough to allow more than one distribution to be constructed at a time, at least one distribution is done, even if the amount of disk space required for the one is greater than that specified in DBUPSPACE.
You can use delimited identifiers to specify identifiers that are identical to reserved keywords, such as TABLE or USAGE. You can also use them to specify database identifiers that contain nonalphabetical characters, but you cannot use them to specify storage identifiers that contain nonalphabetical characters. Note that database identifiers are names for database objects such as tables and columns, and storage identifiers are names for storage objects such as dbspaces and blobspaces. Delimited identifiers are case sensitive. To use delimited identifiers, applications in ESQL/C must set the DELIMIDENT environment variable at compile time and execute time.
For example, to ignore the DBPATH and DBMONEY entries in the environment-configuration files, enter the following command: The common environment-configuration file is stored in $INFORMIXDIR/etc/informix.rc. The private environment-configuration file is stored in the home directory of the user as .informix. For information on how to create or modify an environment-configuration file, see "Setting Environment Variables in an Environment-Configuration File". ENVIGNORE cannot be set in an environment-configuration file.
When set to a valid value, the environment variable overrides the previously set value. The default setting for the fetch buffer is dependent on row size. If the buffer size is set to less than the default size or is out of the range of the small integer value, no error is raised. The new buffer size is ignored.
For example, to set a buffer size to 5,000
INFORMIXCThe INFORMIXC environment variable specifies the name or pathname of the C compiler to be used to compile files generated by INFORMIX-ESQL/C. If INFORMIXC is not set, the default compiler is cc.
For example, to specify the GNU C compiler, enter the following command: The setting is required only during the C compilation stage.
For example, the following command specifies that the concsm.cfg file is in /usr/myfiles. You can also specify a different name for the file. The following command specifies a filename of csmconfig. The default location of the concsm.cfg file is $INFORMIXDIR/etc file. For more information about communications support modules and the content of the concsm.cfg file, refer to the INFORMIX-Universal Server Administrator's Guide.
For example, set INFORMIXCONRETRY to three additional connection attempts (after the initial attempt) by entering the following command: The default value for INFORMIXCONRETRY is one retry after the initial connection attempt. The INFORMIXCONTIME setting, described in the following section, takes precedence over the INFORMIXCONRETRY setting.
You might encounter connection difficulties related to system or network load problems. For instance, if the database server is busy establishing new SQL client threads, some clients might fail because the server cannot issue a network function call fast enough. The INFORMIXCONTIME and INFORMIXCONRETRY environment variables let you configure your client-side connection capability to retry the connection instead of returning an error.
For example, set INFORMIXCONTIME to 60 If INFORMIXCONTIME is set to 60 and INFORMIXCONRETRY is set to 3 , as shown in these examples, attempts to connect to the server (after the initial attempt at 0 seconds) will be made at 20 , 40 , and 60 seconds, if necessary, before aborting. This 20-second interval is the result of INFORMIXCONTIME divided by INFORMIXCONRETRY.If execution of the CONNECT statement involves searching DBPATH, the following rules apply:
15 seconds. The setting for INFORMIXCONTIME takes precedence over the INFORMIXCONRETRY setting. Retry efforts could end after the INFORMIXCONTIME value has been exceeded, but before the INFORMIXCONRETRY value has been reached.
Set the INFORMIXDIR environment variable to the desired installation directory by entering the following command:
INFORMIXKEYTABThe INFORMIXKEYTAB environment variable specifies the location of the keytab file that is used by the optional DCE-GSS communications support module.
For example, the following command specifies that the name and location of the keytab file is /usr/myfiles/mykeytab. For more information about the DCE-GSS communications support module, refer to the INFORMIX-Universal Server Administrator's Guide.
You set the INFORMIXOPCACHE environment variable by specifying the size of the memory cache in kilobytes. The specified size must be equal to or smaller than the size of the system-wide configuration parameter, OPCACHEMAX. If you do not set the INFORMIXOPCACHE environment variable, the default cache size is 128 kilobytes or the size specified in the configuration parameter OPCACHEMAX. The default for OPCACHEMAX is 128 kilobytes. If you set INFORMIXOPCACHE to a value of
The value of INFORMIXSERVER must correspond to a valid dbservername entry in the $INFORMIXDIR/etc/sqlhosts file on the computer running the application. The dbservername must be specified using lowercase characters and cannot exceed 18 characters for Universal Server. For example, specify the coral database server as the default for connection by entering the following command: INFORMIXSERVER specifies the database server to which an application connects if the CONNECT DEFAULT statement is executed. It also defines the database server to which an initial implicit connection is established if the first statement in an application is not a CONNECT statement. Important: INFORMIXSERVER must be set even if the application or DB-Access does not use implicit or explicit default connections.
Important: Resetting INFORMIXSHMBASE requires a thorough understanding of how the application uses memory. Normally you do not reset INFORMIXSHMBASE.
You use INFORMIXSHMBASE to specify where shared-memory communication segments are attached to the client process so that client applications can avoid collisions with other memory segments used by the application. If you do not set INFORMIXSHMBASE, the memory address of the communication segments defaults to an implementation-specific value such as
Universal Server calculates the memory address where segments are attached by multiplying the value of INFORMIXSHMBASE by 1,024. For example, to set the memory address to the value For more information, see the INFORMIX-Universal Server Administrator's Guide.
The file specified in the INFORMIXSQLHOSTS environment variable has the same format as the $INFORMIXDIR/etc/sqlhosts file. For a description of the $INFORMIXDIR/etc/sqlhosts file, see the INFORMIX-Universal Server Administrator's Guide.
For example, to specify that the client or database server will look for connectivity information in the mysqlhosts file in the /work/envt directory, enter the following command: When the INFORMIXSQLHOSTS environment variable is set, the client or database server looks in the specified file for connectivity information. When the INFORMIXSQLHOSTS environment variable is not set, the client or database server looks in the $INFORMIXDIR/etc/sqlhosts file.
For example, to decrease the INFORMIXSTACKSIZE to 20 kilobytes, enter the following command: If INFORMIXSTACKSIZE is not set, the stack size is taken from the Universal Server configuration parameter STACKSIZE, or it defaults to a platform-specific value. The default stack-size value for the primary thread for an SQL client is 32 kilobytes for nonrecursive database activity.
INFORMIXTERMThe INFORMIXTERM environment variable specifies whether DB-Access should use the information in the termcap file or the terminfo directory. 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 border and graphics characters.
If INFORMIXTERM is not set, the default setting is termcap. When DB-Access is installed on your system, a termcap file is placed in the etc subdirectory of $INFORMIXDIR. This file is a superset of an operating-system termcap file. You can use the termcap file supplied by Informix, the system termcap file, or a termcap file that you create. You must set the TERMCAP environment variable if you do not use the default termcap file. For information on setting the TERMCAP environment variable, see page 3-63. The terminfo directory contains a file for each terminal name that has been defined. The terminfo setting for INFORMIXTERM is supported only on computers that provide full support for the UNIX System V terminfo library. For details, see the Version 9.1 machine notes file for your product.
If INF_ROLE_SEP is set, role separation is implemented and a separate group is specified to serve each of the following responsibilities: the database system security officer (DBSSO), the audit analysis officer (AAO), and the standard user. If INF_ROLE_SEP is not set, user informix (the default) can perform all administrative tasks.
See the INFORMIX-Universal Server Trusted Facility Manual to learn more about the security feature of role separation. See the INFORMIX-Universal Server Installation Guide to learn how to configure role separation when you install Universal Server.
When the cursor is automatically freed, its associated PREPARE statement is also freed and cannot be used to declare any new cursor thereafter.
If the environment variable is not set to any value, the feature is not enabled. The SET AUTOFREE SQL syntax has the same functionality as the IFX_AUTOFREE environment variable. The IFX_AUTOFREE environment variable should be set before an application starts. The SET AUTOFREE syntax can be specified for a single cursor and overrides the setting of the environment variable for that cursor. Important: The environment variable needs to be set before the application starts for the setting to take effect.
The SQL statement SET DEFERRED_PREPARE has the same functionality as the on (
IFX_DEFERRED_PREPAREThe IFX_DEFERRED_PREPARE environment variable is set on the client side. It works primarily with dynamic ESQL/C cursors in applications which do a series of PREPARE/DECLARE/OPEN blocks of statements with no DESCRIBE statement following them. The setting on this environment variable optimizes the PREPARE statement.
If the IFX_DEFERRED_PREPARE variable is set to
Setting the value of the IFX_DEFERRED_PREPARE environment variable to Important: The environment variable needs to be set before the application starts for the setting to take effect.
The SQL statement SET DEFERRED_PREPARE has the same functionality as the `on' ( Tip: If PREPARE/EXECUTE statements are used or if a DESCRIBE statement is executed before the first OPEN statement in the ESQL/C code when deferred prepare functionality is turned on, an error is returned.
Prepare the ONCONFIG file by making a copy of the onconfig.std file and modifying the copy. Informix recommends that you name the ONCONFIG file so it can easily be related to a specific Universal Server database server. If you have multiple instances of Universal Server, each instance must have its own uniquely named ONCONFIG file. If you do not set the ONCONFIG environment variable, the default filename is onconfig. For more information, see the INFORMIX-Universal Server Administrator's Guide.
When the OPTCOMPIND environment variable is not set, Universal Server uses the value specified for the ONCONFIG configuration parameter OPTCOMPIND. When neither the environment variable nor the configuration parameter is set, the default value is For more information on the ONCONFIG configuration parameter OPTCOMPIND, see the INFORMIX-Universal Server Administrator's Guide. For more information on the different join methods used by the optimizer, see the INFORMIX-Universal Server Performance Guide.
You can specify the correct search path in various ways. Be sure to include a colon between the directory names. For additional information about how to modify your path, see "Modifying the Setting of an Environment Variable".
When the PDQPRIORITY environment variable is not set, the default value is When the environment variable is set to HIGH, the database server determines an appropriate value to use for PDQPRIORITY based on several criteria, including the number of available processors, the fragmentation of tables queried, the complexity of the query, and so on. Usually the more resources Universal Server uses, the better its performance for a given query, but using too many resources can cause contention among the resources and also take away resources from other queries, resulting in degraded performance. An application can override the setting of the environment variable when it issues the SQL statement SET PDQPRIORITY, which is described in the Informix Guide to SQL: Syntax.
For example, to specify the $INFORMIXDIR/etc/custom.cfg file as the configuration file for the High-Performance Loader, enter the following command:
PSORT_DBTEMPThe PSORT_DBTEMP environment variable specifies a directory or directories where the Universal Server writes the temporary files it uses when performing a sort.Universal Server uses the directory specified by PSORT_DBTEMP even if the environment variable PSORT_NPROCS is not set.
Set the PSORT_DBTEMP environment variable to specify the directory (for example, /usr/leif/tempsort) by entering the following command: For maximum performance, specify directories that reside in file systems on different disks. You also might want to consider setting the environment variable DBSPACETEMP to place temporary files used in sorting in dbspaces rather than operating-system files. See the discussion of the DBSPACETEMP environment variable on page 3-36. For additional information about the PSORT_DBTEMP environment variable, see the INFORMIX-Universal Server Administrator's Guide as well as the INFORMIX-Universal Server Performance Guide.
Use the following command to set the PSORT_NPROCS environment variable to To maximize the effectiveness of the parallel sort, set PSORT_NPROCS to the number of available processors in the hardware. You can disable parallel sorting by entering the following command:
Default Values for Ordinary SortsIf the PSORT_NPROCS environment variable is set, Universal Server uses the specified number of sort threads as an upper limit for ordinary sorts.If PSORT_NPROCS is not set, parallel sorting does not take place. Universal Server uses one thread for the sort.
If PSORT_NPROCS is set to
If the PSORT_NPROCS environment variable is set, you get the specified number of sort threads for each fragment of the index that is being built.
If the PSORT_NPROCS environment variable is not set, or if it is set to For additional information about the PSORT_NPROCS environment variable, see the INFORMIX-Universal Server Administrator's Guide as well as the INFORMIX-Universal Server Performance Guide.
The terminal type specified in the TERM setting must correspond to an entry in the termcap file or terminfo directory. Before you can set the TERM environment variable, you must obtain the code for your terminal from the DBA. For example, to specify the vt100 terminal, set the TERM environment variable by entering the following command:
TERMCAPThe TERMCAP environment variable is used for terminal handling. It tells DB-Access to communicate with the termcap file instead of the terminfo directory.
The termcap file contains a list of various types of terminals and their characteristics. For example, you can provide DB-Access terminal-handling information, which is specified in the /usr/informix/etc/termcap file, by entering the following command: You can use any of the following settings for TERMCAP. They are used in the following order:
1. The termcap file that you create 2. The termcap file supplied by Informix (that is, $INFORMIXDIR/etc/termcap) 3. The operating-system termcap file (that is, /etc/termcap) If you do not set the TERMCAP environment variable, the system file (that is, /etc/termcap) is used by default.
TERMINFO tells DB-Access to communicate with the terminfo directory instead of the termcap file. The terminfo directory has subdirectories that contain files that pertain to terminals and their characteristics. Set TERMINFO by entering the following command: If you set the TERMINFO environment variable, you must also set the INFORMIXTERM environment variable to terminfo.
The THREADLIB environment variable indicates which thread package to use when you compile an application. Currently only the Distributed Computing Environment (DCE) is supported.
The THREADLIB environment variable is checked when the -thread option is passed to the ESQL/C script when you compile a multithreaded ESQL/C application. When you use the -thread option while compiling, the ESQL/C script generates an error if the THREADLIB environment variable is not set or if the variable is set to an unsupported thread package.
|
![]() |
![]() |