Showing posts with label informix. Show all posts
Showing posts with label informix. Show all posts

May 1, 2009

informix The type of your terminal is unknown to the system or the screen size is,too small

informix
informix@ubuntu:~$ dbaccess
The type of your terminal is unknown to the system or the screen size is
too small

解决:
ox0spy@ubuntu:~$ tail -n 4 /etc/profile
TERMCAP=$INFORMIXDIR/etc/termcap
export TERMCAP
INFORMIXTERM=termcap
export INFORMIXTERM

Informix 11.5 Installation on Ubuntu 8.10 server

最近工作需要,想熟悉下Informix
安装过程很是曲折,先尝试着安装IDS 9.4,最后在Ubuntu上也安装成功了.
但是,$ onstat -i
系统报错:symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time referencthe
虽然找到了 传说中的两种解决方法, 但貌似都是不可行的.

最后,好心人提供了一个 11.5的下载链接
informix 11.5 for linux X86 : 下 载

更 多

ok,下面说说Ubuntu 8.10 Server 上安装informix 11.5

============很傻很天真的分割线====================
1. 用户、组创建
    ox0spy@ubuntu:~$ sudo groupadd informix
    ox0spy@ubuntu:~$ sudo useradd -g informix -d /opt/informix -m -s /bin/bash informix

2. 环境变量设置
    ox0spy@ubuntu:~$ tail /etc/profile
    # add for informix
    INFORMIXDIR=/opt/informix
    INFORMIXSERVER=info_dbs
    INFORMIXSQLHOSTS=$INFORMIXDIR/etc/sqlhosts
    ONCONFIG=onconfig.std
    DBDATE=Y4MD*
    LD_LIBRARY_PATH=$INFORMIXDIR/lib:$INFORMIXDIR/lib/esql:$LD_LIBRARY_PATH
    export INFORMIXDIR INFORMIXSERVER ONCONFIG LD_LIBRARY_PATH
    PATH=$PATH:$INFORMIXDIR/bin
    export PATH

3. 解压安装文件
    以informix用户登陆系统
    将C1P6NEN.tar放到/opt/informix下
    解压缩:
    informix@ubuntu:~$ tar xvf C1P6NEN.tar

4. 安装
    以root的权限安装
    ox0spy@ubuntu:/opt/informix$ sudo ./ids_install
    下面根据提示就可以搞定了

5. 配置
    我是以 文本模式安装的,下面开始配置
    1) 在/etc/services中添加两行,如下:
    informix@ubuntu:~$ grep sqlexe /etc/services
    sqlexe          8887/tcp                        # informix
    sqlexec         8888/tcp                        # informix

  2) 修改/etc/hosts
    informix@ubuntu:~$ grep 'ubuntu' /etc/hosts
    192.168.43.128  ubuntu

  3) 配置$INFORMIXDIR/etc/sqlhosts
    informix@ubuntu:~$ cat $INFORMIXDIR/etc/sqlhosts | grep -E '^[^#]'
    info_dbs                onipcshm        ubuntu          sqlexe
    info_dbs_tcp    onsoctcp        ubuntu          sqlexec

  4) 建立空间
    informix@ubuntu:~$ mkdir dbs && cd dbs && touch rootdbs rootdbs_mirror && chmod 660 *
 
  5) 配置$INFORMIXDIR/etc/onconfig.std文件
    ROOTNAME rootdbs
    ROOTPATH $INFORMIXDIR/dbs/rootdbs

    MIRRORPATH $INFORMIXDIR/dbs/rootdbs_mirror

    SERVERNUM 0
    DBSERVERNAME info_dbs
    DBSERVERALIASES info_dbs_tcp

    NETTYPE ipcshm,1,50,CPU
    NETTYPE soctcp,1,50,NET

    TAPEDEV /dev/null

    LTAPEDEV /dev/null

6. 初始化数据库
    informix@ubuntu:~$ oninit -ivy

    深夜里看着一串串的 ...successed 真爽

    informix@ubuntu:~$ onstat -i

    IBM Informix Dynamic Server Version 11.50.UC3     -- On-Line -- Up 00:44:43 -- 144676 Kbytes
    onstat>

到此,数据库安装工作就完成了, good luck.