Chinaunix首页 | 论坛 | 博客
  • 博客访问: 103631790
  • 博文数量: 19283
  • 博客积分: 9968
  • 博客等级: 上将
  • 技术积分: 196062
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-07 14:28
文章分类

全部博文(19283)

文章存档

2011年(1)

2009年(125)

2008年(19094)

2007年(63)

分类: DB2/Informix

2008-03-20 21:19:31

作者:sco  出处:uw714doc.sco.com  

Informix

The information provided here is for example purposes only. We recommend that you refer to the product documentation for definitive information about installing and configuring the product.

Users and groups

Create a group and a user named informix

   groupadd informix
   useradd -g informix -m informix

Installing Informix

You have to have a disk partition (or a separate disk) to run Informix. The partition used for this example is on the UnixWare 7 disk at partition entry 3 (device node /unixware/dev/rdsk/c0b0t0d0p3). Change owner and group for this partition to informix, and. mode to 666.

  1. Mount the CD under /cdrom
       mount -F cdfs -r /dev/cdrom/cdrom1 /cdrom
    

  2. Become a Linux user by typing linux, and install the Informix server
       rpm --nodep --install /unixware/cdrom/XPS/XPS_SERVER/xps-8.31.UC1-1.i386.rpm
    
    The --nodep switch is necessary because of a dependency on an older libncurses library.

  3. Install the binaries as the UnixWare 7 root user:
       cd /opt/informix
       export INFORMIXDIR=/opt/informix
       ./installonline
    

  4. Create an /opt/informix/etc/informix.rc file with the contents:
       export INFORMIXDIR=/opt/informix
       export INFORMIXSERVER=systemname.1
       export ONCONFIG=onconfig.std
       export PATH=$PATH:/opt/informix/bin
    

  5. In /opt/informix/etc, edit edit onconfig.std so that the modified lines read:
       ROOTPATH        /unixware/dev/rdsk/c0b0t0d0p3
       DBSERVERNAME    systemname
    

  6. Edit sqlhosts so it contains this one line This is for shared memory communication
       systemname.1 onipcshm        systemname   systemname.1
    

  7. Login as the informix user
       /linux/bin/su - informix
    

  8. Then run the initialization program for the database
       xctl -C oninit -iy
    

  9. You can check installation progress by looking at the last entries in the log.
       tail -f /opt/informix/online.log
    
    And confirm Informix is running by typing
       xctl onstat
    
    (use xctl onstat --help to view other possible commands.)

  10. To shut down the database use:
       xctl onmode -ky
    
    There is a log file in /opt/informix/online.log, and sometimes a file called stdout.#.1 or stdout.systemname.1 in /linux. Also /INFORMIXTMP is created.
阅读(907) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~