DB2 Version 7.1 for Linux HOWTO
3. Preparing your distribution for DB2
3.1. Caldera OpenLinux 2.4
3.1.1. Before installing DB2 on Caldera OpenLinux
This section contains instructions that you must follow before installing DB2.
Preparing for the installation of DB2
Install the pdksh-5.2.14-1.i386.rpm package from the Caldera OpenLinux CD-ROM in the /Packages/RPMS/ directory. For example, log in as root, mount the CD-ROM, and enter the following command to install the pdksh package: bash# rpm -ivh /mnt/cdrom/Packages/RPMS/pdksh-5.2.14-1.i386.rpm
Remove the jdk package, (JDK 1.2.2 from Sun), since it will conflict with the IBM Developer Kit for Java that you will install in the next step. To remove Sun's JDK, issue the following command as root: bash# rpm -e jdk
Install the IBM Developer Kit for Java. A brIEf set of installation directions is included in Section 11.
Edit the JAVA_HOME and PATH entrIEs in /etc/config.d/shells/bashrc to remove the references to the JDK from Sun and update them to reflect the IBM Developer Kit for Java. The section that I changed started as: [ -z "$JAVA_HOME" ]&& [ -d /usr/Java ] && (
export JAVA_HOME=/usr/Java
[ -r $Java_HOME/lib/classes.zip ] &&
export CLASSPATH=$Java_HOME/lib/classes.zip
)
Replace it with the following section to reflect the default locations for the IBM Developer Kit for Java: [ -z "$Java_HOME" ]&& [ -d /usr/jdk118 ] && (
export Java_HOME=/usr/jdk118
export PATH=$PATH:$Java_HOME/bin
[ -r $Java_HOME/lib/classes.zip ] &&
export CLASSPATH=$Java_HOME/lib/classes.zip
)
3.1.2. Installing DB2 and creating instances on Caldera
Follow the instructions in Section 4 the generic section on installing DB2, and go ahead and create the instances. It's probably a good idea at this point to read through Section 3.1.3 to keep in mind the steps that you need to take after installing DB2.
3.1.2.1. What does /etc/login.defs not Accessible, using defaults mean?
3.1.2.2. Okay, DB2 is installed and I created the instances. Now what do I do?