Installation DB2 v8.1 on SUSE 10.0
终于! DB2可以跑在我的suse10.0上了!
由于是第一次在LINUX上安装DB2,并且对LINUX也不是很熟悉,安装过程中,出现了很多基本问题,一个解决又来一个,但是用了半天的时间,最后还是成功了!
#%u6587%u6863%u63A8%u8350,%u662F%u8981%u7528IBM JAVA JDK 1.4.2%u4EE5%u4E0A%u7684%u7248%u672C,%u6211%u6CA1%u6709%u627E%u5230,%u4E8E%u662F%u5230SUN%u90A3%u8FB9%u4E0B%u8F7D%u4E86JDK 1.5.0
2) ##Install sun jre on suse
chmod x /download/jre-1_5_0_04-linux-i586-rpm.bin
mkdir /usr/java
cd /usr/java
rpm -ivh /download/jre-1_5_0_04-linux-i586.rpm
cd /usr/java/jre1.5.0/
mkdir jre
cd jre
ln -s ../bin bin
mkdir jre
cd jre
ln -s ../bin bin
3) # default enviroment of installation.
xhost local:
xhost localhost # under junling
su -root
export DB2USELOCALJRE=TRUE
export JAVA_HOME=/usr/java/jre1.5.0_0.5/
export JAVA_HOME=/usr/java/jre1.5.0_0.5/
export DISPLAY=:0.0
export XAUTHORITY=~junling/.Xauthority --junling is first linux windows login.
xcloclk --if ok, that means xwindow under root is ok.
4) # install db2 ese.
cd /media/cdrecorder
##./db2setup
it failed, from log file '/tmp/db2setup.err', we can't see DB2 GUI can't be handled... ?? ##
./db2_install -- ok
5) # check and reg. the licence for the DB2 ESE
db2licm -l # if Expiry Date = "expired" then next step
db2licm -a db2ese.lic #if Expiry Date ="Permanent" then OK!
6) # try GUI again to create instance, it works this time!!!
# it creates three user for this process by default.
export DB2_USE_JAVA_HOME=TRUE
export JAVA_HOME=/usr/java/jre1.5.0_0.5
/opt/IBM/db2/V8.1/instance/db2isetup
export JAVA_HOME=/usr/java/jre1.5.0_0.5
/opt/IBM/db2/V8.1/instance/db2isetup
7) #start/stop instance
su - db2inst1
db2stop
db2start ---# both is ok!
db2start ---# both is ok!
8) #try to use GUI control center to create db
db2 update dbm cfg using JDK_PATH /usr/java/jre1.5.0_0.5
db2 update dbm cfg using JDK_PATH /usr/java/jre1.5.0_0.5
db2 update admin cfg using JDK_PATH /usr/java/jre1.5.0_0.5
db2fs & ## create sample database.
db2cc &
db2cc &
#oh yeah! all GUI works now!!