.o.
/ \ Server: www.marzen.de
| | Datum: 20.05.2012
| | Zeit: 20:54:41
/_______\
`o
[Startseite] [Holger] [debian_and_db2]
------------------------------------------------------------------------------
Some notes for the installation of IBM DB2 v7.1 on Debian Woody
Holger Marzen, 2003-08-31
Update 2004-06-14 (pointer to IBM doc)
- Prepare system settings in /etc/sysctl.conf
kernel.shmmax = 1073741824
kernel.msgmni = 1024
kernel.sem = 250 32000 32 1024
fs.file-max = 8192
install pdksh
- apt-get install pdksh
- cd /bin
- ln -s /usr/bin/ksh .
install rpm
- apt-get install rpm
- mkdir /var/lib/rpm
- rpm --initdb
Without "mkdir /var/lib/rpm" rpm will complain about errors with
db3-access. Very confusing.
- Create /bin/rpm as an executable shell script that inserts "--nodeps"
after(!) "-ivh" that's used by the db2 installer. Else we can't
install because of the missing rpm-dependencies.
#!/bin/sh
ARGS=`echo "$*" | sed 's/-ivh /-ivh --nodeps /'`
/usr/bin/rpm $ARGS
workarounds for RedHat-"optimized" binaries
(Some distributors like unofficial compilers and other incompatibilities)
- install the egcs libstdc++
apt-get install libstdc++2.9-glibc2.1
- make the usual symlink for "incompatible" RedHat-software:
cd /usr/lib
ln -s /lib/libncurses.so.5 libncurses.so.4
Now you should be able to mount the db2 installation media and run
./db2setup.
To run the control center (db2cc) you have to install java (I used the
recent sdk from Sun), make the appropriate symlink /usr/bin/java
(on my machine /usr/bin/java -> /opt/j2sdk_nb/j2sdk1.4.2/bin/java). Then
fix the broken installation by doing a
"ln -s /usr/IBMdb2/V7.1/cc ." in /home/db2inst1/sqllib.
Now we only have to change the shell script
/home/db2inst1/sqllib/bin/db2cc and delete "-nojit" from the JRE_OPTIONS
variable (recent java comlains) and replace "jre $JRE_OPTIONS -cp
$JRE_CLASSPATH CC $@" by "java $JRE_OPTIONS -cp $JRE_CLASSPATH CC $@".
Matthias Rawohl pointed me to
http://www-106.ibm.com/developerworks/db2/library/techarticle/dm-0403wright/index.html
"Installing DB2 UDB on non-RPM Linux distributions".
If it vanished you can get a downloaded version.
Have fun!
Holger
------------------------------------------------------------------------------
[Startseite] [Holger] [debian_and_db2]