我已经成功安装了Informix数据库服务器(11.70)。但是在启动数据库服务器时出现问题。当我运行它时给我错误。
Warning: could not access INFORMIXSQLHOSTS /opt/IBM/informix1/etc/sqlhosts.
如何创建这个sqlhosts文件以及这个文件的确切内容。在我的etc目录中我有一些类似的文件命名:
sqlhosts.cmsm.sample
sqlhosts.cmsm.sample.all
sqlhosts.cmsm.sample.client
sqlhosts.cmsm.sample.er
sqlhosts.demo
sqlhosts.ol_informix1170_1
sqlhosts.std
但/ etc / folder.please指南中没有名为sqlhosts的文件如何准备这个文件??
答案 0 :(得分:3)
我想你是在安装过程中创建了实例的。从您的文件列表中我怀疑名称是“ol_informix1170_1”。我会说,但我无法100%确定为了为您的Informix实例设置环境,您需要(至少)设置以下内容:
INFORMIXDIR=/opt/IBM/informix1
INFORMIXSQLHOSTS=/opt/IBM/informix1/etc/sqlhosts.ol_informix1170_1
ONCONFIG=onconfig.ol_informix1170_1 #check if this file exists (in $INFORMIXDIR/etc)
INFORMIXSERVER=ol_informix1170_1 #check that this is the value of the SERVERNAME in the previous file
PATH=$PATH:$INFORMIXDIR/bin
export INFORMIXDIR INFORMIXSERVER ONCONFIG INFORMIXSQLHOSTS PATH
此致