db2 v9.7 linux64,ubuntu 64 装db2 v9.7 server

抓紧下载v9.7_linuxx64_server.tar.gz,扔到~/Downloads/java_soft

进入到该目录执行

tar -xf v9.7_linuxx64_server.tar.gz

会发现在该目录下多出一个server目录

cd server

sudo ./db2_install -b /opt/ibm/db2/v9.7

按照提示输入

ESE

耐心等待约1分钟,成功!

db2ls

哈哈。列出了我已经安装的两个版本!!!

8f21b7a9ed10711d69cd750f967e691d.png

待续。。。

见~/Downloads/books/db2/DB2学习笔记.doc,从百度文档下的。

没法上传附件。就这样, 写得很详细了。。

建das的时候报错:

root@cyper-pc:/opt/ibm/db2/v9.7/instance# useradd -g db2agrp -u 803 -d /home/db2das -m -s /bin/sh db2das

root@cyper-pc:/opt/ibm/db2/v9.7/instance# passwd db2das

Enter new UNIX password:

Retype new UNIX password:

passwd: password updated successfully

root@cyper-pc:/opt/ibm/db2/v9.7/instance# ./dascrt -u db2das

-su: 1: /home/db2das/das/bin/db2admin: Permission denied

DBI1070I  Program dascrt completed successfully.

To fix it we must change /opt/ibm/db2/V9.7/instance/dasutil line 221 to

mkpermission "u=rwx,g=rxs,o=rx,+t" ${PATHNAME?} 哈哈。果然,改完就好了。。

root@cyper-pc:/opt/ibm/db2/v9.7/instance# ./dascrt -u db2das

SQL4406W  The DB2 Administration Server was started successfully.

DBI1070I  Program dascrt completed successfully.

又发现了一个问题,切换到db2inst1用户后, terminal极其难用。。

解决办法在这里:http://stackoverflow.com/questions/4545633/terminal-problem-with-new-user-in-linux

Change the users shell to/bin/bash, instead of/bin/sh.

# usermod -s /bin/bash YourDB2User

Since some time now, both Debian and Ubuntu usesdashto provide /bin/sh, which doesn't have all the features like bash, but provides a more accurate interpretation of the bourne shell, from what I understand.

果然就好用了。。。 /bin/bash比/bin/sh好用多了!!!!!

参考:http://wiki.ejbca.org/db2onus

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值