By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,287 Members | 1,309 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,287 IT Pros & Developers. It's quick & easy.

Install IBM DB2 on Fedora Core 5 (Bordeaux)

P: n/a
Install IBM DB2 on Fedora Core 5 (Bordeaux)

author: maluyao RHCE.
ma*****@NOSPAMgmail.com(remove NOSPAM)
http://www.teenblog.org/tiantian/ (Chinese Version)

Pre-installation notes:
Disable selinux is recommended.
In the official document, pdksh should be installed. In Fedora Core 5,
pdksh package is replaced by zsh package. So you need to install it .
check it with command :
rpm -qa |grep zsh
IBMJava2-SDK-1.4.1-2.0.i386.rpm is included by IBM DB2 tar file, and
so is Sun JDK . Both of them can work. If you need your mother language
to support it, I suggest you use Sun JDK 1.5. If you use Sun JDK, you
will have to set two environment Param.

export DB2USELOCALJRE=TRUE
export JAVA_HOME=/jdk

Normally, you can put the two lines on /etc/profile file.
Instructions on installation:

First of all, switch to db2 directory and run ./db2_install. Some
documents of db2_install program are not installed in your mother
language. For example, the document is not installed in Chinese, so I
have to install it manually by running :
rpm -ivh db2/linux/IBM_db2*cn*.rpm

You can't run db2setup yet, you still need to install patch first.

Next step is to download db2 patch from http://www.ibm.com , my patch
file name is FP11_MI00152.tar. untar it and go-to the directory.
run :

../installFixPak -y

This program will automatically update your old rpm package.

If you have a DB2 License , install it :
/opt/IBM/db2/V8.1/adm/db2licm -a db2ese82.lic

Add some users and groups by hand, I run :
groupadd -g 800 dasadm1
groupadd -g 801 db2grp1
groupadd -g 802 db2fgrp1
adduser -g 800 -u 800 dasusr1
adduser -g 801 -u 801 db2inst1
adduser -g 802 -u 802 db2fenc1

The UID and GID is my choice. I choose it just for it is easy to
remember. Don't forget to use passwd command to give each user's password.

Now we can use command to create the instances of Admin and Database.

/opt/IBM/db2/V8.1/instance/dascrt -u dasusr1 #create a admin instance.
/opt/IBM/db2/V8.1/instance/db2icrt -u db2fenc1 db2inst1 #create a
database instance.

Installation is completed. Login with db2inst1 user and run db2sampl
command. You can create a sample database and use it.
Apr 13 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.