IBM DB2 7.2 Installation on SuSE Linux 7.2 Professional

Support knowledgebase (tdenis_db2inst_sl72)
Applies to

SuSE Linux: Version 7.2
This article refers to an older version of SuSE Linux. Therefore some of the informations given in this article may be outdated or the article may contain stale links.

DB2: Version 7.1

Situation:

You want to install IBM UDB DB2 Personal Edition included in SuSE Linux 7.2.

Procedure:

In order to complete IBM's DB2 Universal Database Personal Edition installation, the script install_sample_db must be executed in directory /usr/lib/db2pe . Please type the following commands to start the installation:
cd /usr/lib/db2pe
./install_sample_db
The installation script should issue the following messages:
linux:/usr/lib/db2pe # ./install_sample_db.sh
Installing rpms ...
db2adt71   ################################################
db2adts71  ################################################
db2cdb71   ################################################
db2cj71    ################################################
db2cliv71  ################################################
db2cnvc71  ################################################
db2cnvj71  ################################################
db2cnvk71  ################################################
db2cnvt71  ################################################
db2cucs71  ################################################
db2das71   ################################################
db2dj71    ################################################
db2engn71  ################################################
db2hten71  ################################################
db2jdbc71  ################################################
db2pelic71 ################################################
db2repl71  ################################################
db2rte71   ################################################
db2smpl71  ################################################
db2wcc71   ################################################
Installing license for "DB2 Workgroup Edition".
DBI1402I License added successfully.
Please be patient. The installation of the sample-db and
dwcntrl-db will take some minutes.
Creating instance db2inst1...
DBI1070I Program db2icrt completed successfully.
Creating sample-db...
Creating dwcntrl-db...
DB20000I  The CREATE DATABASE command completed successfully.
DB20000I  The UPDATE DATABASE MANAGER CONFIGURATION command completed
successfully.
DB21025I  Client changes will not be effective until the next time the
application is started or the TERMINATE command has been issued.  Server
changes will not be effective until the next DB2START command.
Creating Adminstration Server db2as...
DBI1070I Program dasicrt completed successfully.
Starting Administration Server db2as...
SQL4406W  The DB2 Administration Server was started successfully.
SQL4407W  The DB2 Administration Server was stopped successfully.
SQL1064N  DB2STOP processing was successful.
linux:/usr/lib/db2pe #

Subsequently, the passwords for users db2inst1, db2fenc1, and db2as must be changed. This can be done as root user with the command:
passwd db2inst1
passwd db2fenc1
passwd db2as
After having changed the passwords, you can check your installation as follows:

Tip: Please use secure passwords, since DB2 users have full access to the database.

The database will be then started and a connection will be setup to the sample database. A SQL query will also be sent to test the database functionalities.

Create now the file /usr/local/bin/startdb2cc with the following two lines:

unset LANG
db2cc
Please execute as root user the command

echo 128 > /proc/sys/kernel/msgmni

This will fix an SQL2044 error in the backup and restore processes.
Finally, please modify the rights as follows:
chmod 770 /usr/local/bin/startdb2cc
chown db2inst1.db2iadm1 /usr/local/bin/startdb2cc
You have to download and install IBM Java Runtime Environment Version 1.1.8 from IBM's website in order to start the GUI or UDB's DB2 control center. The respective RPM file can be installed through the command:
rpm -ivh IBMJava118-JRE-1.1.8-<releaseversion>.i386.rpm
Then the db2inst1 user's file .profile has to be changed as follows:
export JAVA_HOME=/usr/jre118
Tip: Obviously this path can differ depending on your JRE version. Please enter the right path for IBM JRE. In order to start DB2's control center you have to start startdb2cc.
Keywords: UDB, DB2, IBM, DB2CC

SDB-tdenis_db2inst_sl72, Copyright SuSE Linux AG, Nürnberg, Germany - Version: 24. Okt 2001
SuSE Linux AG - Last generated: 23. Jul 2002 13:55:57 by ip@suse.de <<<<<<< tdenis_db2inst_sl72.sdb (sdb_gen 1.40.0)