LoveUnix » DB2 & Informix » INFORMIX ONLINE 7.x for unix 安装步骤
让LU留住您的每

一天 让LU博客留住您的每一天
2004-6-18 13:16 大漠孤星
这个帖子是很早在别的论坛写的 <!--emo&:awkard:--><img src='style_emoticons/default/awkard.gif' border='0' style='vertical-align:middle' alt='awkard.gif' /><!--endemo--> ,原来写的是for Sco的安装.<br /><br />      其实for Aix和for linux的安装都是大同小异的,我觉得在sco上安装最麻烦,因为需<br /><br />要改核心参数.俺在aix和linux上安装都没有改核心参数... <!--emo&:P--><img src='style_emoticons/default/tongue.gif' border='0' style='vertical-align:middle' alt='tongue.gif' /><!--endemo--> 其实主要是现有核心参数<br /><br />只要满足IDS的需要就不需要调整,一般它的需要值在$INFORMIXDIR//release/en_us/IDS**<br /><br />*文件中有记载.还有在linux安装就是~/etc/sqlhosts文件的协议不同.需要注意的是介质<br /><br />文件,sco上我们用的一般是esql包,而aix和linux上的一般叫csdk.<br /><br />     资源:我想大多人都有for sco的安装包了,for AIX只有自己找了,我用的是我公司的.<br /><br />这里提供for linux的下载地址(从一个网友的帖子找到,谢谢这位网友).isql包自己找吧..<br /><br />ids 9.4 for linux: <br /><br /><a href='ftp://ftp.youngcow.net/Special/Database/DatabaseServer/Informix/InformixDynamicServerVersion9.4/IIUG-IDS-9.4-linux.zip' target='_blank'>ftp://ftp.youngcow.net/Special/Database/D...S-9.4-linux.zip</a> <br />or:<br /><a href='http://202.96.110.133/informix/ids9.4/IIUG-IDS-9.4-linux.zip' target='_blank'>http://202.96.110.133/informix/ids9.4/IIUG-IDS-9.4-linux.zip</a> <br /><br />csdk for linux: <br /><br /><a href='ftp://ftp.software.ibm.com/software/data/informix/downloads/clientsdk.2.81.UC2.LINUX.tar' target='_blank'>ftp://ftp.software.ibm.com/software/data/...1.UC2.LINUX.tar</a> <br /><br />提供序列号.FOR SCO<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><br />        Product&#58;        SQL<br />        Version&#58;        7.20UD7<br />        License &nbsp;S/N&#58;        AAC#J738942<br />        Key&#58; &nbsp;QLMBJR<br />        USERS&#58; &nbsp;5<br /><br />        Product&#58;        ESQL/C<br />        Version&#58;        7.23UC13<br />        License &nbsp;S/N&#58;        AAC#J738940<br />        Key&#58; &nbsp;LSCBJH<br />        USERS&#58; &nbsp;5<br /><br />        Product&#58;        IDS<br />        Version&#58;        7.31UC2-1<br />        License &nbsp;S/N&#58;        AAC#J408199<br />        Key&#58; &nbsp;PUKQKK<br />        USERS&#58; &nbsp;5<br /><!--c2--></div><!--ec2--><br />别的序列号自己找吧<!--emo&:)--><img src='style_emoticons/default/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo--><br /><br />下面就是安装文档.请大家批评指正,俺只是抛砖引金子<!--emo&:)--><img src='style_emoticons/default/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo--><br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><br />1.建立informix 用户组及用户。 <br />在root 用户下,scoadmin-&#62;accout manager-&#62;group-&#62;add new group, 加入informix 用户组。 <br />scoadmin-&#62;account manager-&#62;user-&#62;add new user, 加入informix 用户,注意home directory &nbsp;<br />应是你希望安装informix 的地方. &nbsp;<br />Login group 改为informix , membership 中则加入informix. <br />当然以上步骤可以用命令行的方式实现。 <br /><br />2.配置unix 核心参数, 在root 用户下, <br />scoadmin-&#62;hardware manager/kernel-&#62;parameters, 修改以下各参数: <br />SHMMAX 134217728 <br />SHMMIN 1 <br />SEMMSL 150 <br />MAXUP 2048 <br />然后Relink kernel , 重新启动。 <br />一般的值,必须根据实际调整.或者参照/etc/conf/cf.d/mtune中的各项的最大值添加到stune中,或者看$INFORMIXDIR/release/en_us/*IDS*文件中的要求.<br /><br />3.vi &nbsp;informix home directory 下的 .profile 文件, <br />加入 <br />INFORMIXDIR=/usr/informix &nbsp;<br />ONCONFIG=onconfig &#40;这是定义online 的配置文件,由自己起名&#41; <br />INFORMIXSERVER=online &#40;informix数据库server的名称,由自己定&#41; <br />另在PATH中加入/usr/informix/bin &#40;注意应同INFORMIXDIR 统一&#41; <br />最后export 以上各项。 <br /><br />比如我的如下&#58; <br /># SET INFORMIX Ver 7.30 ENV <br /> &nbsp;INFORMIXDIR=/usr/informix <br /> &nbsp;INFORMIXSERVER=online <br /> &nbsp;TERMCAP=$INFORMIXDIR/etc/termcap <br /> &nbsp;ONCONFIG=onconfig <br /> &nbsp;PATH=$INFORMIXDIR/bin&#58;$PATH <br /> &nbsp;LD_LIBRARY_PATH=$INFORMIXDIR/lib&#58;$INFORMIXDIR/lib/esql&#58;$LD_LIBRARY_PATH <br /> &nbsp;export INFORMIXDIR INFORMIXSERVER ONCONFIG TERMCAP PATH LD_LIBRARY_PATH <br /><br />4. 拷贝informix 文件 <br />以informix 用户登录, <br />在 $ 提示下 su 到 root 用户下 <br /># mount /dev/cd0 /mnt &#40; 将informix online 的光盘mount上&#41; <br /><br />将光盘中的4GL.cpi,ONLINE.cpi,SQL.cpi,ESQL.cpi拷贝至informix用户的根目录下。 <br />在 informix 根目录下展开以上文件 <br />$ cpio -iBmducv -I file.cpi &#40; 或cpio -iBmducv &#60; file.cpi &#41; <br /><br />1)先安装SQL,将SQL介质插入 <br />执行安装命令 <br />#. ./installsql <br />输入序列号(注意大小写) <br />输入KEY(注意大小写) <br />2)安装4GL,将4GL介质插入 <br />执行安装命令 <br />#. ./install4gl <br />输入序列号(注意大小写) <br />输入KEY(注意大小写) <br />3)安装ESQL,将ESQL介质插入 <br />执行安装命令 <br />#. ./installesql <br />输入序列号(注意大小写) <br />输入KEY(注意大小写) <br />4)安装ONLINE,将ONLINE介质插入 <br />执行安装命令 <br />#. ./installonline <br /><br />一般infomirx的序列号可以通用~~~~~~~~~ <br /><br />4gl一般大多数情况下用不到 ,所以可以不用安装先. 注意顺序,先isql-&#62;esql&#62;ids<br /><br />5.准备数据库空间, <br /><br />熟文件.<br />当前目录为希望放informix 库数据的文件系统目录, <br /># cat /dev/null&#62;chunk1 &#40;chunk 的文件名由自己起&#41; <br /># chmod 660 chunk1 <br /># chown informix chunk1 <br /># chgrp informix chunk1 <br /><br />&#40;需要说明的是chunk1就是个文件,怎么生成都可以&#62;chunk1也行,vi也行,touch也可以&#41; <br /><br />在裸设备上建chunk <br />假设裸设备名为 /dev/ru <br /># ln /dev/ru /dev/chunk1 <br /># chmod 660 /dev/ru<br /># chown informix&#58;informix /dev/ru <br /><br /><br />关于这里,必须说两句,大家应该养成良好的习惯,就是chunk的路径用链接.<br /><br />6.编辑一些文件 <br /><br />1&#41;onconfig <br />一般是cp onconfig.std onconfig <br />vi onconfig <br /><br />修改以下各项为下列值: <br />ROOTPATH 改为chunk 的全路径。 <br />MSGPATH 为 /usr/informix/online.log &#40;这一目录应和home directory 及INFORMIXDIR 统一&#41; <br />TAPEDEV 为 /dev/null <br />LTAPEDEV 为 /dev/null <br />DBSERVERNAME 同.profile中INFORMIXSERVER名字,和sqlhosts中统一&#40;记得一定要改这个&#41; <br />2&#41;sqlhosts文件 <br />原来一般是 <br />demo_on &nbsp; &nbsp; &nbsp; &nbsp;onipcshm &nbsp; &nbsp; &nbsp; &nbsp;on_hostname &nbsp; &nbsp; on_servername <br />demo_se &nbsp; &nbsp; &nbsp; &nbsp;seipcpip &nbsp; &nbsp; &nbsp; &nbsp;se_hostname &nbsp; &nbsp; sqlexec <br /><br />注释这二行 <br /><br />加入一行online &nbsp; &nbsp; &nbsp; &nbsp; ontlitcp &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hostname &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; online_service <br />~~~~~~SERVER名 &nbsp; &nbsp; &nbsp;~~~~~~tcp/ip方式 &nbsp;~~/etc/hosts的主机名 &nbsp; &nbsp;~~/etc/services 中的tcp/ip口名 <br /><br />这里要注意的是这个配置和在linux下的是完全不一样的,linux下的不是ontlitcp. <br />3&#41; <br />编辑/etc/services <br />加入数据库tcp/ip端口: <br /> online_service &nbsp;8888/tcp <br /> &nbsp;<br /> 这个数字自己随便选,别重复,别离谱就行. <br /> &nbsp;<br /> 7,初始化 <br /><br />可以直接oninit -ivy,如果你由信心的话,还可以用下面的步骤进行..<br /> &nbsp;<br />1&#41;进入onmonitor界面 <br />$onmonitor <br />2&#41;选择Parameters -> Initialize <br />3&#41;出现DISK PARAMETERS界面配置如下参数后键入Esc键 <br />Tape Dev. &nbsp; &nbsp; &#91;/dev/null&#93; &nbsp;<br />Log Tape Dev. &#91;/dev/null&#93; &nbsp;<br />Root Name &nbsp; &#91;rootdbs &nbsp;&#93; &nbsp; &nbsp; &nbsp; Root Size &#91; &nbsp; &nbsp;2000000&#93; Kbytes <br />Primary Path &nbsp;&#91;/usr/informix/chunk1&#93; &nbsp;<br />4&#41;出现Do you really want to continue? &#40;y/n&#41;时选择&#34;y&#34; <br />5&#41;出现SHARED MEMORY PARAMETERS界面配置如下参数后键入Esc键 <br />Server Name &#91;online &nbsp; &nbsp; &nbsp;&#93; <br />6&#41;出现PERFORMANCE TUNING PARAMETERS界面配置如下参数后键入Esc键 <br />Protocol Threads Users VP-class <br />&#91;tlitcp&#93; &nbsp; &#91; &nbsp;1&#93; &nbsp;&#91; 10&#93; &nbsp;&#91;CPU&#93; <br />7&#41;出现DATA REPLICATION PARAMETERS界面后键入Esc键 <br />8&#41;出现DIAGNOSTIC PARAMETERS界面后键入Esc键 <br />9&#41;出现PARALLEL DATABASE QUERIES PARAMETERS界面后键入Esc键 <br />10&#41;出现Do you really want to continue? &#40;y/n&#41;时选择&#34;y&#34; <br />11&#41;配置成功后退出onmonitor界面 <br /><br />这样就基本OK了,期间出现任何错误必须看log,养成良好的习惯 <br />ONLINE的运行及监控 &nbsp;<br />1:启动 oninit &nbsp;<br />2&#58; 关闭 onmode -ky &nbsp;<br />3:状态 onstat - &nbsp;<br /><br />你可以onstat -- help看一下,仔细研究onstat .<br /><br /><!--c2--></div><!--ec2-->

页: [1]


Powered by Discuz! Archiver 5.5.0  © 2001-2006 Comsenz Inc.