SCO UnixWare 7.1.4下安装 Informix

来源:百度文库 编辑:神马文学网 时间:2024/04/28 22:25:25
SCO UnixWare 7.1.4 下安装 Informix   作者:sco  出处:uw714doc.sco.com  更新时间: 2007年04月17日 

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.