Tuesday, June 8, 2010

Install DB2 Client in silent mode on Linux

Please follow the steps below to install the DB2 Client v9.7 in silent mode:
  1. Copy the installer into the directory you want on the server used. You can visit the IBM's website and find Data Server Client and Data Server Driver Package (optional, this package contains drivers and libraries for various programming language environments).
  2. Follow carefully the paragraphs concerning the prerequisites to install. Read the document on IBM InfoCenter.
  3.  Create the necessary users:
/usr/sbin/groupadd db2iadm1
/usr/sbin/useradd -g db2iadm1 -m -d /home/db2inst1 db2inst1 -p db2inst1


change the environment depending on the Linux distribution used. For example, Ubuntu uses bash so:

db2inst1:x:1003:1005::/home/db2inst1:/bin/sh
to:
db2inst1:x:1003:1005::/home/db2inst1:/bin/bash

  1. You can find the samples of response file necessary to start-up the installer with -r option enabled on /path/client/db2/linux/samples. After you can execute:
./db2setup -r path/db2client.rsp

before to execute it you should edit the file and change follow parameters:

LIC_AGREEMENT             = ACCEPT         ** ACCEPT or DECLINE
db2inst1.NAME             = db2inst1
db2inst1.GROUP_NAME       = db2iadm1
db2inst1.HOME_DIRECTORY   = /home/db2inst1
db2inst1.PASSWORD         = password

No comments:

Post a Comment