免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3722 | 回复: 3
打印 上一主题 下一主题

REDHAT 7.3 DB2 安装记录 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2002-08-01 16:42 |只看该作者 |倒序浏览
最近在自己的linux平台安装了一套DB2 PE 7.2,做研究用。在安装过程还是出了一些问题,所以把安装记录贴上来,给大家做个参考。

由于linux的中文问题,所以为英文的,较为简单
1.before
readhat : need pdksh*.rpm - donwload from redhat
user: db2inst1/db2fenc1/db2as
.bash_profile :
export DB2DIR=/usr/IBMdb2/V7.1
export PATH=$PATHDB2DIR/bin

!!!!!above is err
chage user's shell ->; ksh

2.db2setup
DB2SYSTEM set to test
install on /usr/IBMdb2

3.postinst
3.1 /usr/IBMdb2/V7.1/instance/db2icrt -a AuthType -u FencedID InstName
3.2 /usr/IBMdb2/V7.1/instance/dasicrt ASName
(use /usr/IBMdb2/V7.1/install/db2setup)
3.3 /usr/IBMdb2/V7.1/adm/db2licm -a /cdrom/db2/license/db2udbpe.lic
3.4 /usr/IBMdb2/V7.1/cfg/db2ln

check /tmp/db2setup.log :
/usr/IBMdb2/V7.1/instance/db2icrt -a SERVER -u db2fenc1 db2inst1

Output log of the above command:
DBI1768W Unable to modify the .profile or the .login file of
          user db2inst1.

Explanation:  DB2 has failed to modify the .profile file or the
.login file of this user.  These files may not exist, or you may
not have write permission to them.  Without the modification you
need to set your environment manually each time when you log in
as this user to use DB2.

User Response:  Add the following line to the .profile file or
the .login file:
. sqllib/db2profile   to the .profile file, or
source sqllib/db2cshrc to the .login file

See the Quick Beginning Guide for more details on how to set the
DB2 environment automatically.


DBI1070I Program db2icrt completed successfully.

4.verify
1.su - db2inst1
   db2sampl
   db2 connect to sample
   db2 "select * from staff where dept = 20"
   db2 connect reset

have err msg but OK AFTER . sqllib/db2profile   to the .profile file

5. stop
su - db2inst1 &#59; db2stop
su - db2as    &#59; db2admin stop

论坛徽章:
0
2 [报告]
发表于 2002-08-30 17:15 |只看该作者

REDHAT 7.3 DB2 安装记录

论坛徽章:
0
3 [报告]
发表于 2002-09-02 10:36 |只看该作者

REDHAT 7.3 DB2 安装记录

1,在BEFORE阶段,只要装一个PDKSH.用户db2inst1/db2fenc1/db2as可以在DB2安装过程的时候创建,没有必要修改.bash_profile 。
2. DB2SYSTEM set to test 这个说明DB2是要与系统名相关的,现在的机器名为TEST.
3.第三步可以省略,(如果照我的做法)

论坛徽章:
0
4 [报告]
发表于 2002-10-11 10:07 |只看该作者

REDHAT 7.3 DB2 安装记录

you would run db2profile first before you startup application
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP