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
哈哈。列出了我已經安裝的兩個版本!!!
java

待續。。。
見~/Downloads/books/db2/DB2學習筆記.doc,從百度文檔下的。
無法上傳附件。就這樣, 寫得很詳細了。。 linux

建das的時候報錯: shell

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. bash

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

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極其難用。。 spa

解決辦法在這裏:http://stackoverflow.com/questions/4545633/terminal-problem-with-new-user-in-linux
code


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

# 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

相關文章
相關標籤/搜索