9. Configuring things


9.1 Environment variables

9.1.1 DBESCWT

DBESCWT is an environment variable which can be set to an integer number of seconds. When the tools (not the engines) are reading keyboard input, they will wait for up to $DBESCWT seconds for another character to appear, to see whether the next character is part of a function key escape sequence or whether the escape is the accept key. It is occasionally of use over slow networks.

(Someone else may wish to elaborate on when it is useful, but that is the only context in which I have used it.)

Jonathan Leffler (johnl@obelix.informix.com) #include <disclaimer.h>

9.1.2 DBSCREENOUT and DBSCREENDUMP

Screen dumping variables. See 4.1.5 How can I make a screen dump?


9.2 How do you read termcap's ZA string?

I'll tell you in the next release, maybe. Note: This section hasn't changed for quite some time...

9.3 Where can I get a termcap for ...?

quasar.ucar.edu and mathcs.emory.edu have some termcaps for Informix. The q.u.e directory is /pub/Informix_Archives.

9.4 How do I define function keys 37 thru 64?

termcap         terminfo        function key
-------         --------        ------------
kf0 unused
k0 .. k9        kf1  .. kf10    KEY_F(1)  .. KEY_F(10)
kA .. kZ        kf11 .. kf36    KEY_F(11) .. KEY_F(36)
FR .. FZ        kf37 .. kf45    KEY_F(37) .. KEY_F(45)
Fa .. Fs        kf46 .. kf64    KEY_F(46) .. KEY_F(64)

9.5 How can I run Informix Online under Solaris 2.4?

Q: Is it possible to run Informix OnLine under Solaris 2.4 - When starting "tbinit" or "oninit" there appears a shared memory error.

A: Yes, it is possible. You do need to ensure that the kernel is configured, though. Modify file /etc/system to include the lines:

            *       Set the value of 'enable_sm_wa' to 1 to allow for the
            *       reliable operation of SPARCstation 10 Model 514
            set enable_sm_wa = 1
            set semsys:seminfo_semmap=64
            set semsys:seminfo_semmni=4096
            set semsys:seminfo_semmns=4096
            set semsys:seminfo_semmnu=4096
            set semsys:seminfo_semume=64
            set shmsys:shminfo_shmmax=16777216
            set shmsys:shminfo_shmmin=100
            set shmsys:shminfo_shmmni=100
            set shmsys:shminfo_shmseg=100
This gives a maximum of 16 MB shared memory in total, and far more semaphores than you need. You could probably change the semaphore values from 4096 to 512 without running into trouble. - Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>