软件准备:
db2_v9_ese_linux_32.tar.gz
SLES-10-x86-DVD1.iso
VMware-workstation-5.5.3-34685.exe
jdk-1_5_0_05-linux-i586-rpm.bin 重要!
安装开始:
1.宿主机操作系统windows xp,虚拟机 VMware-workstation-5.5.3,虚拟机操作系统 SLES-10-x86
2.将db2_v9_ese_linux_32.tar.gz和jdk-1_5_0_05-linux-i586-rpm.bin上传到虚拟机。
3.重要步骤:!
#tar -zxvf db2_v9_ese_linux_32.tar.gz
#mkdir /usr/java //手工建立
#chmod a+x jdk-1_5_0_05-linux-i586-rpm.bin
#./jdk-1_5_0_05-linux-i586-rpm.bin //必须安装较高版本jdk,否则安装会出错!
其他相关必装依赖包:
openssh;rsh-server;nfs-utils;ksh //重要!尤其是ksh,由于AIX基于K Shell,DB2也有相关组件由K shell写成
4.关键步骤:
# cd /ese_t/ //进入db2解包后的目录
# cd disk1/
# ls
db2 db2_install db2setup doc installFixPack
#./db2setup
//出现错误Ensure that the DISPLAY variable is set properly and that permissions are set properly to open windows on the d//isplay specified,then rerun the command.
//错误原因:未指定显示变量
#xhost +192.168.100.4 //本机器ip 关键!
#export DISPLAY=192.168.100.4:0.0 //关键!
#./db2setup //重新执行即可启动图形化安装界面,不再赘述
Setup is completed successfully!