DB2 9.7 64bit 在 CentOS5.4 64bit 上的安装

都是安装的时候记的笔记了,应该能看懂。

1. download & upload
download [v9.7_linuxx64_server.tar.gz] from IBM & upload it to /root (Tool: winscp)
2. login
login with root(Tool: teraterm)
3. extract db2 file
cd
tar zxvf v9.7_linuxx64_server.tar.gz
4. install db2
cd server
./db2_install -b /opt/ibm/db2/V9.7 -p ESE
      (最后可能报个警告,没事。    WARNING: A minor error occurred while installing "DB2 Enterprise Server Edition" on this computer. Some features may not function correctly.)
5. create user & group 
groupadd db2iadm1
groupadd db2fadm1
useradd -g db2iadm1 db2inst1
useradd -g db2fadm1 db2fenc1
6. create instance
cd /opt/ibm/db2/V9.7/instance
./db2icrt -u db2fenc1 db2inst1
7. change user to db2inst1
su - db2inst1
8. start db manager
db2start
9. create sample database
db2sampl
10. connect
db2 connect to sample
11. list tables
db2 list tables
12. view act table
db2 "select * from act"
13. over
db2 terminate

安装完毕。

你可能感兴趣的:(centos)