Installation DB2 v8.1 on SUSE 10.0

Installation DB2 v8.1 on SUSE 10.0
终于! DB2可以跑在我的suse10.0上了!
由于是第一次在LINUX上安装DB2,并且对LINUX也不是很熟悉,安装过程中,出现了很多基本问题,一个解决又来一个,但是用了半天的时间,最后还是成功了!

1) download jre1.5.0 from  http://java.sun.com/j2se/1.5.0/download.jsp  to /download
#%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
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 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
7) #start/stop instance
su - db2inst1
db2stop
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 admin cfg using JDK_PATH /usr/java/jre1.5.0_0.5
db2fs & ## create sample database.
db2cc &
#oh yeah! all GUI works now!!
LostHorizon 发表于:2005.11.08 21:02 ::分类: (  Database  ) ::阅读:(297次) ::  Permanent link  ::  Trackbacks (0)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值