linux 安装 informix

1、#groupadd informix

       #useradd -g informix informix

       #passwd informix

      # informix

2、vi /home/informix/.bash_profile

INFORMIXDIR=/var/informix

PATH=$INFORMIXDIR/bin:$PATH

LD_LIBRARY_PATH=$INFORMIXDIR/lib:$LD_LIBRARY_PATH

export INFORMIXDIR PATH LD_LIBRARY_PATH

3、#mkdir /usr/java

     #cd /usr/java

    #/home/informix/Informix_Dynamic_Server_V11.50.UC7_Linux_x86_English/.jvm.bin

4、#cd /home/informix/Informix_Dynamic_Server_V11.50.UC7_Linux_x86_English/

     #./ids_install -javahome /usr/java

按照提示,一步一步安装(不创建demo)

5、vi /home/informix/.bash_profile

ONCONFIG=onconfig.infm

SQLHOSTS=sqlhosts

DBSERVERNAME=infm

SERVERNUM=0

INFORMIXSERVER=infm

export ONCONFIG SQLHOSTS DBSERVERNAME SERVERNUM INFORMIXSERVER

#. .bash_profile

6、cd $INFORMIX/etc

cp onconfig.std onconfig.infm

vi onconfig.infm

ROOTPATH=$INFORMIXDIR/chunks/infm.rootdbs

DBSERVERNAME=infm

7、#chown -R informix:informix /var/informix

#cd $INFORMIXDIR

#mkdir chunks

cd chunks

touch infm.rootdbs

chmod 660 infm.rootdbs

onspaces -c -d rootdbs -p /var/informix/chunks/infm.rootdbs -o 0 -s 200000

8、#hostname infm

vi $INFORMIXDIR/etc/sqlhosts

infm    onsoctcp        infm    sqlexec
infm    onsoctcp        infm    sqlexec-ss1

9、vi /etc/hosts

127.0.0.1 infm

10、oninit -ivy

 安装过程中出现的问题:

1、$oninit -ivy
Checking group membership to determine server run mode...succeeded
Reading configuration file '/var/informix/etc/onconfig.infm'...succeeded
Creating /INFORMIXTMP/.infxdirs...succeeded
Checking config parameters...succeeded
Allocating and attaching to shared memory...succeeded
Creating resident pool 10574 kbytes...succeeded
Allocating 100016 kbytes for buffer pool of 2K page size...succeeded
Creating infos file "/var/informix/etc/.infos.infm"...succeeded
Linking conf file "/var/informix/etc/.conf.infm"...succeeded
oninit: DBSERVERNAME 'infm' not in sqlhosts file or sqlhosts file contents
are damaged.

刚开始我用的文件不是sqlhosts,而是sqlhosts.infm,这样不行!

2、

Starting tracing...succeeded
Initializing 8 flushers...succeeded
FAILED

WARNING: server initialization failed, or possibly timed out (if -w was used).
Check the message log, online.log, for errors.

在online.log中发现:

The chunk '/var/informix/chunks/infm.rootdbs' must have READ/WRITE permissions for owner and group (660).

cd $INFORMIXDIR/chunks

$ll

-rw-rw-r-- 1 informix informix 0 12-09 22:44 infm.rootdbs

必须是660

chmod 660 infm.rootdbs

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
>