安裝 IBM DB2 version 9.7 在 SuSE Linux Enterprise Server 11 SP2
安裝前注意事項:
檔案名稱: DB2_AESE_97_Linux_x86-64.tar.gz
tar xzf DB2_AESE_97_Linux_x86-64.tar.gz cd aese/ ./db2prereqcheck ./db2_install
Default directory for installation of products - /opt/ibm/db2/V9.7
***********************************************************
Do you want to choose a different directory to install [yes/no] ?
noSpecify one of the following keywords to install DB2 products.
AESE
CLIENT
RTCL
Enter "help" to redisplay product names.
Enter "quit" to exit.
***********************************************************
AESE
檔案名稱: v9.7fp8_linuxx64_universal_fixpack.tar.gz
tar xzf v9.7fp8_linuxx64_universal_fixpack.tar.gz cd universal/ ./db2prereqcheck
如果出現錯誤:
DBT3534W The db2prereqcheck utility determined that ASLR is set to ON and that this could cause issues with some tools.解決: 編輯 /etc/sysctl.conf, 加上這一行
kernel.randomize_va_space = 0
執行 echo 0 > /proc/sys/kernel/randomize_va_space
./installFixPack
Enter full path name for the install directory -
------------------------------------------------
/opt/ibm/db2/V9.7 <== 輸入 DB2 主程式安裝目錄
User: db2inst
Group: db2adm
註: 以 SuSE Linux Enterprise 11 SP2 為例
編輯 /etc/sysconfig/yast2
## Type: string(linux,xterm,rxvt,mono,braille) ## Default: "" # Color theme for YaST ncurses UI # xterm: blue-white-red # linux: blue-white-yellow # rxvt: black-yellow-red # mono: white-black # braille: for visually impaired Y2NCURSES_COLOR_THEME="rxvt"
Warning:........ > 左邊選單 [Volume Management] > 選擇 VG [/dev/vg1] > 功能: Resize