星期三, 5月 18, 2005

Informix 9.4 for linux 安裝

#kernel
SHMMAX: 33554432
SHMMIN: 1
SHMMNI: 128
SHMSEG: 128
SHMALL: 4194304
SEMMNI: 128
SEMMSL: 250
SEMMNS: 32000
SEMOPM: 32




groupadd informix
useradd informix


mkdir /opt/informix
cp /tmp/Linux-IDS.9.40.tc1e1.cpio /opt/informix/Linux-IDS.9.40.tc1e1.cpio

chown -Rf informix:informix /opt/informix



su - informix

vi .bsah_profile
INFORMIXDIR=/opt/informix; export INFORMIXDIR
INFORMIXSERVER=train; export INFORMIXSERVER
PATH=$PATH:$INFORMIXDIR/bin; export PATH
DB_LOCALE=zh_tw.big5; export DB_LOCALE
CLIENT_LOCALE=zh_tw.big5; export CLIENT_LOCALE
SERVER_LOCALE=zh_tw.big5; export SERVER_LOCALE





#relogin informix
exit
su - informix


cd $INFORMIXDIR

cpio -idumv < Linux-IDS.9.40.tc1e1.cpio
./installserver


# at end ,login as root to run a program RUN_AS_ROOT.server
su - root
cd /opt/informix
./RUN_AS_ROOT.server

exit


#edit etc/sqlhosts
cp etc/sqlhosts.std etc/sqlhosts
vi etc/sqlhosts
#
# train onipcshm localhost.localdomain on_ipc
# train_tcp onsoctcp 192.168.0.230 3000

cp etc/onconfig.std etc/onconfig
vi etc/onconfig

mkdir dev
touch dev/rootdbs1
chmod 660 dev/rootdbs1


onmonitor

# initial database
oninit -ivy

# online database
oninit -v

# shutdown database
onmode -ky

#show database status
onstat -

0 Comments:

張貼留言

<< Home