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

本文详细记录了在Linux系统上安装DB2 v9.7的过程,包括下载安装包、解压、执行安装脚本以及解决权限和用户创建问题。在遇到终端使用不便的问题时,通过更改用户Shell为/bin/bash得以解决。最后成功启动DB2 Administration 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

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值