SCO UnixWare 7.1.4下安装 Informix
来源:百度文库 编辑:神马文学网 时间:2024/05/13 10:27:46
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.
- Mount the CD under /cdrom
mount -F cdfs -r /dev/cdrom/cdrom1 /cdrom
- 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. - Install the binaries as the UnixWare 7 root user:
cd /opt/informix export INFORMIXDIR=/opt/informix ./installonline
- 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
- In /opt/informix/etc, edit edit onconfig.std so that the modified lines read:
ROOTPATH /unixware/dev/rdsk/c0b0t0d0p3 DBSERVERNAME systemname
- Edit sqlhosts so it contains this one line This is for shared memory communication
systemname.1 onipcshm systemname systemname.1
- Login as the informix user
/linux/bin/su - informix
- Then run the initialization program for the database
xctl -C oninit -iy
- 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 typingxctl onstat
(use xctl onstat --help to view other possible commands.) - 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.