标题: Db2 7.2eee在aix下的安装
windrain
LU幼天使
Rank: 2



UID 763
精华 1
积分 151
帖子 268
活跃指数 8
LU金币 3261 个
LU金条 1038 个
阅读权限 20
注册 2003-10-19
 
发表于 2003-10-22 15:34  资料  个人空间  短消息  加为好友  添加 windrain 为MSN好友 通过MSN和 windrain 交谈
china.gif
安装db2eee 在AIX平台的步骤如下:

1.在A,B 两台机器上的/etc/hosts的文件中,分别将相应两台机器的名字,IP地址加进来。确保ping a,ping b 的命令能够执行,确保A,B两台机器的root用户的口令相同。

2.在A机器中,运行smit jfs的命令
a. click add a journaled file system
b. click add a standard journaled file system
c. Select a volume group from the Volume Group Name list where you want this file system to physically reside.
d. Set the SIZE of file system (in 512–byte blocks) (Num.) field to 180 000 (this is about 90 MB).
e. Enter a mount point for this file system in the MOUNT POINT field. For example, /home2.
f. Set the Mount AUTOMATICALLY at system restart field to yes. The remaining fields can be left to the default settings.
g. Click OK.

3.在A上运行命令:mount /home2

4.在A上运行smit nfs命令
a. Click on the Network File System (NFS) icon.
b. Click on the Add a Directory to Exports List icon.
c. Enter the pathname and directory to export (for example,/home2) in the PATHNAME of directory to export field.
d. Enter the name of each workstation that will participate in your partitioned database system in the HOSTS allowed root access field.
The remaining fields can be left to the default settings.
e. Click OK.

5.在B机器上运行命令:smit nfs
a. Click on the Network File System (NFS) icon.
b. Click on the Add a File System for Mounting icon.
c. Enter the pathname of the mount point in the PATHNAME of the mount point (Path) field.
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.
d. Enter the pathname of the remote directory in the PATHNAME of the remote directory field.
For our example, you should enter the same value that you entered in the PATHNAME of the mount point (Path) field.
e. Enter the hostname of the machine where you exported the file system in the HOST where the remote directory resides field.
This is the hostname of the machine where the file system that you are mounting was created.
f. Set the MOUNT now, add entry to /etc/filesystems or both? field to both.
g. Set the /etc/filesystems entry will mount the directory on system RESTART field to yes.
h. Set the MODE for this NFS file system field to read-write.
i. Set the Mount file system soft or hard field to soft.
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.
k. Click OK.

6.首先,在一台机器A上如UDB的步骤安装DB2EEE版本(必须安装ADMIN SERVER)。
注意:db2inst1,db2fenc1,db2as的home路径指向/home2,例如:
/home2/db2inst1
/home2/db2fenc1
/home2/db2as

7.安装完成后用smit user 命令,将3个组db2iadm1,db2fadm1,db2asgrp的groupid,及他们相对应用户的userid记下来。

8.在B机器上如DB2UDB的步骤安装DB2eee,安装的过程中必须要选择设置GROUP和USER,所有的groupid和userid,password必须和A机器上的相同
(你可以在安装前自己定义相应的组和用户,但必须保证groupid和userid,password相同),否则会失败。

indicate the userid when create new user and group****
indicate the home directory : /home2/db2inst1

<<create instance failed>>

9.在A,B的机器中,/etc/services的目录中加入:
DB2_db2inst1 60000/tcp
DB2_db2inst1_END 60003/tcp
注意:在这里的端口的总数应为偶数。

A machine:
db2cdb2inst1 50000
db2idb2inst1 50001
DB2_db2inst1 60000
DB2_db2inst1a 60001
DB2_db2inst1_END 60003

A=B;


10.在A,B的机器中的/home2/db2inst1(DB2实例)的目录下,新建一个文件.rhosts,配置如下:
A db2inst1
B db2inst1

11.配置db2nodes.cfg如下:
0 A 0
1 B 0





1、日本鬼子去死,坚决抵制日货,鄙视支持日货、哈日的中国人 记住,你现在给小日本的每一分钱,将来都可能换成一颗射向你亲人的子弹!2、印尼去死,鄙视自愿给印尼捐款的中国人3、学好做人,学好做事
顶部
燕狂徒
版主
Rank: 15Rank: 15Rank: 15Rank: 15Rank: 15


LU爱心使者  
UID 59
精华 14
积分 1708
帖子 3209
活跃指数 155
LU金币 4925 个
LU金条 616 个
阅读权限 210
注册 2003-9-19
 
发表于 2003-10-23 21:03  资料  个人空间  主页 短消息  加为好友 
拆出来了,也加了精华,才发现标题没法改:(





http://www.100c.com.cn/oblog/user1/1/index.html
顶部
zdygk
荣誉斑竹
Rank: 14Rank: 14Rank: 14Rank: 14
极品果壳大将军


LU爱心使者  
UID 114
精华 17
积分 1269
帖子 2408
活跃指数 107
LU金币 1031 个
LU金条 16619 个
阅读权限 200
注册 2003-9-24
 
发表于 2003-10-23 21:31  资料  个人空间  主页 短消息  加为好友 
happy.gif!找老农闹去!





Major :  ETL AIX+JAVA+DB2
Hobby: shell+os-developer

DB2 is the Best Pure RDBMS; Oracle is an aspirant
顶部
furanger
LU幼天使
Rank: 2



UID 467
精华 0
积分 37
帖子 70
活跃指数 1
LU金币 2010 个
LU金条 0 个
阅读权限 20
注册 2003-10-13
 
发表于 2003-10-24 10:21  资料  个人空间  短消息  加为好友 
想起来问一下,能不能在不同操作系统建立多节点的库呀?2





考拉冲锋!
顶部
zdygk
荣誉斑竹
Rank: 14Rank: 14Rank: 14Rank: 14
极品果壳大将军


LU爱心使者  
UID 114
精华 17
积分 1269
帖子 2408
活跃指数 107
LU金币 1031 个
LU金条 16619 个
阅读权限 200
注册 2003-9-24
 
发表于 2003-10-24 13:01  资料  个人空间  主页 短消息  加为好友 
不能。





Major :  ETL AIX+JAVA+DB2
Hobby: shell+os-developer

DB2 is the Best Pure RDBMS; Oracle is an aspirant
顶部
furanger
LU幼天使
Rank: 2



UID 467
精华 0
积分 37
帖子 70
活跃指数 1
LU金币 2010 个
LU金条 0 个
阅读权限 20
注册 2003-10-13
 
发表于 2003-10-24 18:48  资料  个人空间  短消息  加为好友 
......
回头试试能不能在一台机器上作多节点的 glare.gif
好象可以(在一台机器上作多节点的)





考拉冲锋!
顶部
[广告] 记录自己的思想火花,留住每日的技术积累,尽在拥有属于自己独立域名的博客。
windrain
LU幼天使
Rank: 2



UID 763
精华 1
积分 151
帖子 268
活跃指数 8
LU金币 3261 个
LU金条 1038 个
阅读权限 20
注册 2003-10-19
 
发表于 2003-10-24 19:58  资料  个人空间  短消息  加为好友  添加 windrain 为MSN好友 通过MSN和 windrain 交谈
QUOTE(furanger @ 2003-10-24 18:48:18)
......
回头试试能不能在一台机器上作多节点的 glare.gif
好象可以(在一台机器上作多节点的)

可以,这是逻辑节点,IBM有一本书叫做 《Manage The VLDB with DB2 EEE》记得是这个名字,里面说的很详细,我找到了就传上来。





1、日本鬼子去死,坚决抵制日货,鄙视支持日货、哈日的中国人 记住,你现在给小日本的每一分钱,将来都可能换成一颗射向你亲人的子弹!2、印尼去死,鄙视自愿给印尼捐款的中国人3、学好做人,学好做事
顶部
[广告] 记录自己的思想火花,留住每日的技术积累,尽在拥有属于自己独立域名的博客。
furanger
LU幼天使
Rank: 2



UID 467
精华 0
积分 37
帖子 70
活跃指数 1
LU金币 2010 个
LU金条 0 个
阅读权限 20
注册 2003-10-13
 
发表于 2003-10-25 08:35  资料  个人空间  短消息  加为好友 
我也找找,说声谢谢先,呵





考拉冲锋!
顶部
[广告] 记录自己的思想火花,留住每日的技术积累,尽在拥有属于自己独立域名的博客。
 



当前时区 GMT+8, 现在时间是 2008-10-13 22:49
乐悠LoveUnix论坛-京ICP备05005823号

Thanks to Discuz!  © 2001-2007    Power by LoveUnix.net
Processed in 0.055327 second(s), 6 queries , Gzip enabled

清除 Cookies - 联系我们 - 乐悠LoveUnix - Archiver