DB2 11.1 Installation on Linux

In this post we will go through steps of DB2 11.1 installation on Linux. Before installing any DB2 LUW product, you should ensure your system meets operating system, hardware, software, storage and memory requirement.

Update: Below steps are valid for DB2 11.5 installation on Linux as well.

Step 1: Check below link for most up to date installation requirement



Step 2: Download DB2 LUW product image from below link


Step 3: Copy DB2 LUW product to your target server

Step 4: Extract DB2 product 


tar -zxvf <DB2 product image file name>


Post extract completion you will find new directory server/server_t/server_dec got created.


Change current working directory to server_t


Step 5: Perform prerequisite check

 ./db2prereqcheck -i -v 11.1.4.5

-i : Check prerequisite for non pureScale installation
-v : Check prerequisite for specific DB2 version



If your prerequisite check fails, fix it before proceeding with DB2 installation.

Step 6: Installation

DB2 Installation Methods :
  • DB2 Setup Wizard: You can install DB2 using GUI, for this you need to have access to X Window System (X11)
  • Response file installation: In this method you can perform DB2 installation silently with preconfigured option, best suited for automating DB2 installation.
  • db2_install command: Interactive CLI based installation. 
  • PayLoad deployment: It is advance installation method which is not recommended for most users. In this method post installation, you need to manual configured DB2 installation.
It is recommended to perform DB2 installation with root privilege for enterprise setup. DB2 can be installed with normal user as well.

This post will cover DB2 installation using root user with db2_install command method.

Check post DB2 11.1 GUI Installation on Linux to perform installation using DB2 Setup Wizard.

Start DB2 installation by executing below command

 ./db2_install


Type yes to accept license agreement, license agreement is available in db2/license


If you want to install DB2 in default directory you can type yes or to install in different directory type no.

I will go with default installation path


SERVER : Install DB2 server product
CONSV : Install DB2 Connect
CLIENT : Install DB2 client
RTCL : Install DB2 runtime client


If you want to install DB2 server with pureScale feature type yes or type no.

DB2 pureScale feature enable Active Active cluster but for that there is additional hardware and software requirement, which you should ensure during requirement check phase.



This will start your DB2 installation. DB2 installation should complete within 5 to 10 mins. If your system meet DB2 installation requirement and prerequisite check was successful then DB2 installation will complete successfully. At the end of installation you will get installation log file name which you can be referred for detailed DB2 installation logs.


Step 7: Verify installation

Change your working directory to DB2 installation path and run ls -lrt 
You should see below directories and all directories must be own by bin.


db2ls output should list your installation entry.


Step 8: Create DB2 instance and apply license.






If you liked this blog and interested in knowing more about DB2, please subscribe by clicking on Subscribe to ChoudharySumit.com by Email.

17 comments:

  1. amazing write-up !!

    ReplyDelete
  2. Nishigandha Bahirgonde11 September 2020 at 13:51

    This was very helpful 😊... thanks for the post

    ReplyDelete
  3. I most admire the efforts for posting such helpfull post.

    ReplyDelete
  4. Thanks for sharing your knowledge,its really helpful for me. :)

    ReplyDelete
    Replies
    1. Thanks Aarti!! Glad to hear, it is helpful. Keep visiting :)

      Delete
  5. Great initiative Sumit! Kudos for this comprehensive knowledge repository on db2.

    ReplyDelete
  6. Helped me with my installation

    ReplyDelete
  7. After installation of Db2 on RHEL 8.2 (or CentOS 8.2) you can set up Db2 to start automatically on boot by setting it up in systemctl. https://www.ibm.com/support/pages/db2-autostart-not-supported-red-hat-enterprise-linux-version-7

    ReplyDelete
  8. Which TSAMP version comes with 11.1.4.5 and 11.5.0.0?

    ReplyDelete
    Replies
    1. Hi Ashish,

      Thanks for your query.

      DB2 11.1.4.5 supports TSAMP 4.1.0.5
      DB2 11.5.0.0 supports TSAMP 4.1.0.4 which can be upgraded to 4.1.0.5

      To check latest supported version of TSAMP check below technote from IBM

      https://www.ibm.com/support/pages/what-version-tsamp-installed-each-specific-version-vrmf-db2

      Delete