Installing the Db2 driver package on Linux or PowerLinux

You can install the driver package on Linux® or PowerLinux by using installDSDriver.

Before you begin

Download the Db2® driver package for your operating system from the web console.

On PowerLinux only, perform the following steps:
  1. Download the XL C/C++ compiler runtime package from the FTP site. For example, to use the wget tool to download the runtime package for Linux little endian Ubuntu 14, issue the following command:
    
    wget ftp://public.dhe.ibm.com/software/server/POWER/Linux/rte/xlcpp/le/ubuntu/dists/trusty/main/binary-ppc64el/*
    
  2. Install the runtime package by issuing the following command:
    sudo dpkg -iG *.deb 

Procedure

  1. Decompress the compressed driver package file that you downloaded.
    Example:
    
    gunzip file_name.tar.gz
    tar -xvf file_name.tar
    
    A dsdriver subdirectory is created in the directory where you ran the decompression commands.
  2. Extract the Java™ and ODBC/CLI drivers.
    1. In the dsdriver subdirectory, run the installDSDriver command.

      The installDSDriver command creates the db2profile and db2cshrc script files in the dsdriver directory.

    2. Run one of the following script files based on your shell environment:
      • Bash or Korn shell: source db2profile
      • C shell: source db2cshrc

What to do next

To be able to connect your local applications or client tools to your Db2 database, configure your environment for your Db2 database.