GUI的安装方法很多,这里介绍CLI的安装方法
1 ./db2_install
如果装在 /opt/ibm/db2/V9.7 的下面的话 不需要新建directory.
2.groupadd -g 600 db2grp
3.useradd -u 600 db2inst1 -g db2grp
4.passwd db2inst1
5.mkdir /db2data
6.chown -Rf db2inst1:db2grp /db2data/
7.chmod -Rf 775 /db2data/
8.groupadd -g 601 db2fgrp1
9.useradd -u 601 db2fenc1 -g db2fgrp1
10.passwd db2fenc1
11./opt/ibm/db2/V9.7/instance/db2icrt -u dasusr1
12./opt/ibm/db2/V9.7/instance/db2icrt -u db2fenc1 db2inst1
13.groupadd -g 602 db2dasgrp
14.useradd -u 602 -g db2dasgrp -G db2dasgrp -d /home/dasusr1 dasusr1
15.passwd dasusr1
16./opt/ibm/db2/V9.7/instance/dascrt -u dasusr1
17./opt/ibm/db2/V9.7/cfg/db2ln
18.vi /etc/services
# Local services
db2c_DB2 3700/tcp
db2i_DB2 5001/tcp
19.su - db2inst1
阅读(2924) | 评论(0) | 转发(0) |