LoveUnix » DB2 & Informix » Db2 7.2eee在aix下的安装
让LU留住您的每

一天 让LU博客留住您的每一天
2003-10-22 15:34 windrain
<!--emo&:china:--><img src='style_emoticons/default/china.gif' border='0' style='vertical-align:middle' alt='china.gif' /><!--endemo--> <br />安装db2eee 在AIX平台的步骤如下:<br /><br />1.在A,B 两台机器上的/etc/hosts的文件中,分别将相应两台机器的名字,IP地址加进来。确保ping a,ping b 的命令能够执行,确保A,B两台机器的root用户的口令相同。<br /><br />2.在A机器中,运行smit jfs的命令<br />   a. click  add a journaled file system<br />   b. click  add a standard journaled file system<br />   c. Select a volume group from the Volume Group Name list where you want this file system to physically reside.       <br />   d. Set the SIZE of file system (in 512–byte blocks) (Num.) field to 180 000 (this is about 90 MB).<br />   e. Enter a mount point for this file system in the MOUNT POINT field. For example, /home2.<br />   f. Set the Mount AUTOMATICALLY at system restart field to yes. The remaining fields can be left to the default settings.<br />   g. Click OK.<br /><br />3.在A上运行命令:mount /home2<br /><br />4.在A上运行smit nfs命令<br />  a. Click on the Network File System (NFS) icon.<br />  b. Click on the Add a Directory to Exports List icon.<br />  c. Enter the pathname and directory to export (for example,/home2) in the PATHNAME of directory to export field.      <br />  d. Enter the name of each workstation that will participate in your partitioned database system in the HOSTS allowed root access field.<br />     The remaining fields can be left to the default settings.<br />  e. Click OK.<br /><br />5.在B机器上运行命令:smit nfs<br />  a. Click on the Network File System (NFS) icon.<br />  b. Click on the Add a File System for Mounting icon.<br />  c. Enter the pathname of the mount point in the PATHNAME of the mount point (Path) field. <br />     The path name of the mount point is where you should create the home directory for the instance owner and the Administration Server. For example, /home2.<br />  d. Enter the pathname of the remote directory in the PATHNAME of the remote directory field.<br />     For our example, you should enter the same value that you entered in the PATHNAME of the mount point (Path) field.   <br />  e. Enter the hostname of the machine where you exported the file system in the HOST where the remote directory resides field.<br />     This is the hostname of the machine where the file system that you are mounting was created.   <br />  f. Set the MOUNT now, add entry to /etc/filesystems or both? field to both.  <br />  g. Set the /etc/filesystems entry will mount the directory on system RESTART field to yes. <br />  h. Set the MODE for this NFS file system field to read-write.<br />  i. Set the Mount file system soft or hard field to soft.<br />  j. Ensure that this file system is mounted with the Allow execution of SUID and sgid programs in this file system? field set to Yes. This is the default setting.<br />  k. Click OK.  <br /><br />6.首先,在一台机器A上如UDB的步骤安装DB2EEE版本(必须安装ADMIN SERVER)。<br />  注意:db2inst1,db2fenc1,db2as的home路径指向/home2,例如:<br />  /home2/db2inst1<br />  /home2/db2fenc1<br />  /home2/db2as<br />  <br />7.安装完成后用smit user 命令,将3个组db2iadm1,db2fadm1,db2asgrp的groupid,及他们相对应用户的userid记下来。<br /><br />8.在B机器上如DB2UDB的步骤安装DB2eee,安装的过程中必须要选择设置GROUP和USER,所有的groupid和userid,password必须和A机器上的相同<br />(你可以在安装前自己定义相应的组和用户,但必须保证groupid和userid,password相同),否则会失败。<br /><br />indicate the userid when create new user and group****<br />indicate the home directory : /home2/db2inst1<br /><br />&lt;&lt;create instance failed&gt;&gt;<br /> <br />9.在A,B的机器中,/etc/services的目录中加入:<br />  DB2_db2inst1 60000/tcp<br />  DB2_db2inst1_END 60003/tcp<br />  注意:在这里的端口的总数应为偶数。<br /><br /> A machine:<br /> db2cdb2inst1 50000<br /> db2idb2inst1 50001<br /> DB2_db2inst1 60000<br /> DB2_db2inst1a 60001<br /> DB2_db2inst1_END 60003<br /><br /> A=B;<br /><br />  <br />10.在A,B的机器中的/home2/db2inst1(DB2实例)的目录下,新建一个文件.rhosts,配置如下:<br />   A    db2inst1<br />   B    db2inst1<br />   <br />11.配置db2nodes.cfg如下:<br />    0     A     0<br />    1     B     0

2003-10-23 21:03 燕狂徒
拆出来了,也加了精华,才发现标题没法改:(

2003-10-23 21:31 zdygk
<!--emo&^_^--><img src='style_emoticons/default/happy.gif' border='0' style='vertical-align:middle' alt='happy.gif' /><!--endemo-->!找老农闹去!

2003-10-24 10:21 furanger
想起来问一下,能不能在不同操作系统建立多节点的库呀?2

2003-10-24 13:01 zdygk
不能。

2003-10-24 18:48 furanger
......<br />回头试试能不能在一台机器上作多节点的 <!--emo&:,--><img src='style_emoticons/default/glare.gif' border='0' style='vertical-align:middle' alt='glare.gif' /><!--endemo--> <br />好象可以(在一台机器上作多节点的)

2003-10-24 19:58 windrain
<!--QuoteBegin-furanger+2003-10-24 18:48:18--><div class='quotetop'>QUOTE(furanger @ 2003-10-24 18:48:18)</div><div class='quotemain'><!--QuoteEBegin--> ......<br />回头试试能不能在一台机器上作多节点的 <!--emo&:,--><img src='style_emoticons/default/glare.gif' border='0' style='vertical-align:middle' alt='glare.gif' /><!--endemo--> <br />好象可以(在一台机器上作多节点的) <!--QuoteEnd--></div><!--QuoteEEnd--><br />可以,这是逻辑节点,IBM有一本书叫做 《Manage The VLDB with DB2 EEE》记得是这个名字,里面说的很详细,我找到了就传上来。

2003-10-25 08:35 furanger
我也找找,说声谢谢先,呵

页: [1]
查看完整版本: Db2 7.2eee在aix下的安装


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