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
/usr/lib/db2pe
.
Please type the following commands to start the installation:
cd /usr/lib/db2pe ./install_sample_dbThe 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 db2asAfter 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.
Create now the file /usr/local/bin/startdb2cc
with
the following two lines:
unset LANG db2ccPlease execute as
root
user the commandecho 128 > /proc/sys/kernel/msgmni
chmod 770 /usr/local/bin/startdb2cc chown db2inst1.db2iadm1 /usr/local/bin/startdb2ccYou 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.rpmThen the db2inst1 user's file .profile has to be changed as follows:
export JAVA_HOME=/usr/jre118Tip: 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
.