How to install IBM DB2 in Ubuntu

In this article, we will see how to install IBM DB2 in Ubuntu step by step.

How to install IBM DB2 in Ubuntu

Prerequisites are:
Package requirements
Package requirements for SLES and RHEL distributions:

  • libpam.so.0 (32-bit) is required for Db2 database servers to run 32-bit non-SQL routines and JDBC type 2 driver applications in 32-bit JDK.
  • libpam.so.0 is required by IBM data server clients for Db2 user authentication.
  • libaio.so.1 is required for Db2 database servers that use asynchronous I/O.
  • libstdc++.so.6is required for Db2 database servers and clients.
  • libstdc++33and libstdc++43 are required for SLES 11.
  • The ksh93 Korn shell is required for all Db2 database systems.

1. Go to google then search for IBM db2 download or copy either of below links and paste in web browser and hit enter.

https://www.ibm.com/products/db2/pricing
https://www.ibm.com//uk-en/products/db2/pricing

2. Click on Download free community edition.

3. Then, signup with your information, after click on verify email, we will receive a code to our email. Then, we have to paste here.

How to download and install IBM DB2 database on Windows

4. Click on download beside Linux(x64).

How to install IBM DB2 in Ubuntu

5. Once download is completed, go to the downloads directory and untar the downloaded tar file.

tar xvzf v11.5.8_linuxx64_server_dec.tar.gz

6. Update package index on Ubuntu.

sudo apt-get update

7. Now install following missing components one by one.

sudo apt-get install lib32stdc++6 sudo apt-get install libpam0g:i386 sudo apt-get install libstdc++5 libstdc++6 sudo apt-get install libaio-dev sudo apt-get install gcc-4.9 sudo find / -name "libpam.so*" sudo ln -s /lib/i386-linux-gnu/libpam.so.0 /lib/libpam.so

8. Now go to extracted(Downloads) directory and run ./db2_install.

sudo ./db2_install

Type yes twice and hit enter.

9. Type SERVER and hit enter.

10. Lists the Db2 products and features installed on Linux using below command.

db2ls

11. To check the version installed run the below command by going to installed directory.

db2licm -l

So in this article, we have seen How to install IBM DB2 in Ubuntu sucessfully.

Below is the video link for the same.

Leave a Reply

Your email address will not be published. Required fields are marked *