Before proceeding, please ensure that you have read Section 5 and Section 6.
These installation notes are based on a single-partition installation using the 2.6.15-17 kernel.
Since you cannot log in as root directly with an Ubuntu system, this DB2 installation is run as the default user created during Ubuntu setup (i.e. the regular user account with 'sudo' capability).
There are two ways of installing DB2 Express-C 9 on Ubuntu. The harder of the two methods is to use the default DB2 db2setup, and then make adjustments to the Ubuntu system afterwards to handle the slight differences of Ubuntu's Debian-based packaging system. For reasons of clarity and brevity, I will omit the instructions for doing it this more difficult way; however, if you would like to see these instructions, please send me an email (db2howto@gmail.com) and I will pass them along.
The easy way to install DB2 Express-C on Ubuntu 6.06 LTS is to use the Synaptic package installer, and almost everything is done for you, from downloading to installation and configuration. Here's how to do it:
After installation by Synaptic, there are a few steps required to get DB2 up and running smoothly.
passwd db2inst1 passwd db2fenc1 passwd dasusr1 |
db2inst1:x:1001:1001::/home/db2inst1:/bin/sh db2fenc1:x:1002:1002::/home/db2fenc1:/bin/sh dasusr1:x:1003:1003::/home/dasusr1:/bin/sh |
db2inst1:x:1001:1001::/home/db2inst1:/bin/bash db2fenc1:x:1002:1002::/home/db2fenc1:/bin/bash dasusr1:x:1003:1003::/home/dasusr1:/bin/bash |
db2c_db2inst1 50001/tcp # IBM DB2 instance - db2inst1 |
db2 update dbm cfg using SVCENAME db2c_db2inst1 db2set DB2COMM=tcpip db2stop db2start |
ibm-db2 523/tcp # IBM DB2 DAS ibm-db2 523/udp # IBM DB2 DAS |
db2admin stop db2admin start |