最近由于工作需要,在RHEL3下安装了一遍Informix Server 9.4,特此记录一下,若有错误,不吝指教。
1)增加informix用户和组 groupadd informix useradd informix -g informix passwd informix 2)准备安装点 mkdir -p /u1/informix chown informix:informix informix 3)安装Informix Dynamic Server 9.4 mount /cdrom /cdrom/ids_install input 1 to install Informix Dynamic Server input INFORMIXDIR: /u1/informix 安装完成后 cd /u1/informix sh RUN_AS_ROOT.server 4)编辑sqlhosts cd /u1/informix/etc cp sqlhosts.std sqlhosts vi sqlhost sqlhosts的配置说明可参见http://fanqiang.chinaunix.net/db/informix/2001-06-12/1400.shtml 5)编辑.profile文件 su - informix vi .profile 添加内容如下: INFORMIXDIR=/u1/informix;export INFORMIXDIR INFORMIXSERVER=test_on;export INFORMIXSERVER ONCONFIG=onconfig.test;export ONCONFIG PATH=$INFORMIXDIR/bin:$PATH;export PATH DB_LOCALE=zh_cn.gb;export DB_LOCALE CLIENT_LOCALE=zh_cn.gb;export CLIENT_LOCALE SERVER_LOCALE=zh_cn.gb;export SERVER_LOCALE DBDATE=Y4MD/;export DBDATE DBCENTURY=C;export DBCENTURY DBDELIMITER=^A;export DBDELIMITER LD_LIBRARY_PATH=$INFORMIXDIR/lib:$INFORMIXDIR/lib/esql;export LD_LIBRARY_PATH TERMCAP=$INFORMIXDIR/etc/termcap;export TERMCAP 6)初始化数据库 su - informix 先建立表空间文件:mkdir /u1/cookfile touch infxroot infx01 chmod 660 /u1/cookfile/* onmonitor->Parameters->Initialize 注意事项: 第一页: Tape Dev.和Log Tape Dev.改成/dev/null rootdbs路径改为刚建的/u1/cookfile/infxroot,大小自定 第二页(shared memory): Server Number要唯一 Server Name要与当前的$INFORMIXSERVER一样,且一定要在sqlhosts中存在 Server Aliases也要在sqlhosts中存在 第三页: 配一下sqlhosts中用到的nettype settings 第五页: 若有多个online,Message Log最好区分开来,如online_01.log Dump Shared Memory改为N 7)新建一个Dbspace onmonitor->Dbspaces->Create 名称、大小自定,Mirror、Temp都为N,路径/u1/cookfile/infx01 至此Informix Server已基本安装完毕,数据库处于Quiescent状态,执行onmode -m 就可处于联机状态 |