Centos7安装Informix

时间:2024-04-10 19:45:12

1、下载安装包

网址:

https://www-01.ibm.com/marketing/iwm/iwm/web/pickUrxNew.do?source=ifxids&transactionid=452474400

Centos7安装Informix

 

2、创建informix用户

groupadd informix
useradd -g informix informix

3、创建安装目录

mkdir /opt/informix
chown informix:informix /opt/informix

4、设置环境变量

vi /etc/profile

添加:

export INFORMIXDIR=/opt/IBM/Informix_Software_Bundle
export PATH=$PATH:$INFORMIXDIR/bin

加载:

source /etc/profile

5、解压、安装

cd /opt/informix

上传压缩包到此目录

tar -xvf iif.12.10.FC12DE.linux-x86_64.tar
./ids_install

选择默认方式进行安装,安装结束

Centos7安装Informix

6、增加配置

su - informix
vi .bash_profile

添加:

export INFORMIXDIR=/opt/IBM/Informix_Software_Bundle
export INFORMIXSQLHOSTS=$INFORMIXDIR/etc/sqlhosts
export ONCONFIG=onconfig.tramsserver
export INFORMIXSERVER=tramsserver
export PATH=$PATH:$INFORMIXDIR/bin:.

加载:

source .bash_profile

7、备份文件,修改

cd /opt/IBM/Informix_Software_Bundle/etc
cp onconfig.std onconfig.tramsserver
vim onconfig.tramsserver

添加或修改:

DBSERVERNAME tramsserver PHYSDBS rootdbs ROOTNAME rootdbs
ROOTPATH /opt/IBM/Informix_Software_Bundle/storage/rootdbs

8、创建"rootdbs"数据库空间文件

cd /opt/informix/ 
mkdir data 
cd data 
touch rootdbs 
chmod 660 rootdbs

注意:“rootdbs”文件权限必须是:660

9、修改文件

cd /opt/IBM/Informix_Software_Bundle/etc

vim sqlhosts.std

修改:tramsserver onsoctcp RDRedhat sqlexe

重新初始化数据库

 

1. 停止当前数据库进程

onmode -ky

2. 初始化数据库

oninit -iv