Installing the Db2 driver package on Mac OS X

You can install the driver package on Mac OS X by using installDSDriver.sh.

Before you begin

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

Procedure

  • New install

    If the driver package is not already installed, perform a new install:

    1. Mount the disk image by double-clicking the file_name.dmg file.

      A new Finder window opens with the contents of the disk image.

      If the Finder window does not open, double-click the file_name icon on your desktop.

    2. In the Finder window, double-click the installDSDriver.sh file.

      The driver package is installed in the default location: /Applications/dsdriver.

  • Update

    If an older version of the driver package is already installed, update it:

    1. Back up current configuration files:
      1. Go the Applications/dsdriver/cfg folder.
      2. Copy the following files to a different folder:
        
        db2cli.ini
        db2dsdriver.cfg
        
    2. Remove the currently installed driver package:

      Right-click the dsdriver folder and select Move to Trash.

    3. Install the new driver package as described for a "new install":
      1. Mount the disk image by double-clicking the file_name.dmg file.
      2. In the Finder window, double-click the installDSDriver.sh file.
    4. Restore the configuration files:

      Copy the db2cli.ini and db2dsdriver.cfg files that you saved from step 1 to the /Applications/dsdriver/cfg folder.

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.