IBM 000-8697 User Manual

Page of 702
1-58
IBM Informix OnLine Database Server Administrator’s Guide
Modify UNIX Startup and Shutdown Scripts
Shutdown
Add
UNIX
 and OnLine utility commands to the
UNIX
 shutdown script that
perform the following steps:
1.
Set the
INFORMIXDIR
 environment variable to the full pathname of
the directory in which OnLine is installed. (If multiple versions of
OnLine are running on your
UNIX
 system, you must reset
INFOR-
MIXDIR
 for each OnLine system that you shut down.)
2.
Set the
PATH
 environment variable to include the
$INFOR-
MIXDIR
/bin
 directory.
3.
Set the
TBCONFIG
environment variable to the desired configuration
file.
4.
Execute tbmode -ky, which initiates immediate shutdown and takes
OnLine offline.
These commands should execute after all user and database server processes
have finished working.
Examples of these commands for the C shell and Bourne shell follow:
C shell:
setenv INFORMIXDIR
/
directory_name
setenv PATH $PATH:$INFORMIXDIR/bin
setenv TBCONFIG config_filename
tbmode -ky
Bourne shell:
INFORMIXDIR=
/
directory_name
export INFORMIXDIR
PATH=$PATH:$INFORMIXDIR/bin
export PATH
TBCONFIG=config_filename
export TBCONFIG
tbmode -ky