Install: DB2 v11 on CentOS
DB2 Database Server v11.1.4fp5
CentOS/RedHat 6
yum install libaio ksh rsh-server sg3_utils pam-devel nfs-utils compat-libstdc++-33
yum install libstdc++.i686 pam-devel.i686 compat-libstdc++-33.i686
TIP: 安裝檔裡有一個檢查相依性套件的工具 db2prereqcheck,執行後,最後下方的輸出如果沒有顯示類似的內容,就表示可以繼續執行安裝。
DBT3507E The db2prereqcheck utility failed to find the following package or file: "sg3_utils".
開始安裝
tar xzf DB2_AESE_PVU_11.1_Svr_Linux_86-64.tar.gz
cd server_aese_c/
./db2prereqcheck -i
./db2_install -f NOTSAMP
***********************************************************
Install into default directory (/opt/ibm/db2/V11.1) ? [yes/no]yes <===
Specify one of the following keywords to install DB2 products.
SERVER
CONSV
CLIENT
RTCLEnter "help" to redisplay product names.
Enter "quit" to exit.
***********************************************************
SERVER <===
更新 FixPack 5
tar xzf v11.1.4fp5_linuxx64_universal_fixpack.tar.gz
cd universal/
./db2prereqcheck -i
./installFixPack
Enter the full path of the base installation directory:
-------------------------------------------------------
/opt/ibm/db2/V11.1 <== 輸入預設安裝目錄Do you want to choose a different installation directory for the fix pack? [yes/no]
------------------------------------------------------------------------------------
no <==
完成。