11/09/2019

Installation of DB2 V11.5 software using db2_install

Before preparing to install DB2,we should check the required library files on OS.

Note: I installed DB2 on Ubuntu so used apt-get to install libraries.

Installation of library files:

To verify whether the required packages are installed on OS use below command:
 
dpkg --get-selections | grep -i <package-name> 

dpkg --add-architecture i386 #Command will enable i386 Architecture

apt-get update

We must install below library files:

apt-get -y install libaio1
apt-get -y install binutilsapt-get -y install zlib1g-dev
apt-get -y install liblogger-syslog-perl
apt-get -y install libpam0g:i386
apt-get -y install libstdc++6:i386
apt-get update


After installation of libraries few will go to /lib/x86_64-linux-gnu these files won't recognize by db2prereqcheck so we should link files from /lib/x86_64-linux-gnu/libpam.so.0 to /lib/libpam.so.0
ln -s /lib/x86_64-linux-gnu/libpam.so.0 /lib/libpam.so.0

Checking prerequisites:

./db2prereqcheck -v 11.5.0.0 


Group and User creation:


groupadd -g 999 db2iadm1
groupadd -g 998 db2fadm1
groupadd -g 997 dasadm1

useradd -u 1004 -g db2iadm1 -m -d /db2home/db2inst1 db2inst1
useradd -u 1003 -g db2fadm1 -m -d /db2home/db2fenc1 db2fenc1
useradd -u 1002 -g dasadm1 -m -d /home/dasusr1 dasusr1

passwd db2inst1
passwd db2fenc1
passwd dasusr1

Installation of Software using db2_install:

root@vinay-Lenovo-Ideapad-Z510:~/db2V11.5/server_dec# ./db2_install
Read the license agreement file in the db2/license directory.

***********************************************************
To accept those terms, enter "yes". Otherwise, enter "no" to cancel the install process. [yes/no]
yes


Default directory for installation of products - /opt/ibm/db2/V11.5

***********************************************************
Install into default directory (/opt/ibm/db2/V11.5) ? [yes/no]
yes


Specify one of the following keywords to install DB2 products.

  SERVER
  CONSV
  CLIENT
  RTCL

Enter "help" to redisplay product names.

Enter "quit" to exit.

***********************************************************
SERVER
***********************************************************
Do you want to install the DB2 pureScale Feature? [yes/no]
no
DB2 installation is being initialized.

 Total number of tasks to be performed: 58
Total estimated time for all tasks to be performed: 2819 second(s)

Task #1 start
Description: Checking license agreement acceptance
Estimated time 1 second(s)
Task #1 end

Task #2 start
Description: Base Client Support for installation with root privileges
Estimated time 3 second(s)
Task #2 end 

.
.
.
Task #58 start
Description: Registering DB2 Update Service
Estimated time 30 second(s)
Task #58 end

Task #59 start
Description: Updating global profile registry
Estimated time 3 second(s)
Task #59 end

The execution completed with warnings.

For more information see the DB2 installation log at
"/tmp/db2_install.log.6899". 

Creating DAS:


root@vinay-Lenovo-Ideapad-Z510:/opt/ibm/db2/V11.5/instance# ./dascrt -u dasusr1
DBI1070I  Program dascrt completed successfully

Instance creation:

./db2icrt -a server -p 50001 -u db2fenc1 db2inst1


 root@vinay-Lenovo-Ideapad-Z510:/opt/ibm/db2/V11.5/instance# ./db2iauto -on db2inst1

Starting DAS and Instance:

root@vinay-Lenovo-Ideapad-Z510:/opt/ibm/db2/V11.5/instance# su - dasusr1
$ db2admin start
SQL4409W  The DB2 Administration Server is already active.


root@vinay-Lenovo-Ideapad-Z510:/opt/ibm/db2/V11.5/instance# su - db2inst1
$ db2set -all
[i] DB2COMM=TCPIP
[i] DB2AUTOSTART=YES
[g] DB2SYSTEM=vinay-Lenovo-Ideapad-Z510
[g] DB2ADMINSERVER=dasusr1
$ db2start
11/09/2019 20:24:50     0   0   SQL1063N  DB2START processing was successful.
SQL1063N  DB2START processing was successful.

$ db2level
DB21085I  This instance or install (instance name, where applicable:
"db2inst1") uses "64" bits and DB2 code release "SQL11050" with level
identifier "0601010F".
Informational tokens are "DB2 v11.5.0.0", "s1906101300", "DYN1906101300AMD64",
and Fix Pack "0".
Product is installed at "/opt/ibm/db2/V11.5".

$ db2licm -l
Product name:                     "IBM DB2 Developer-C Edition"
License type:                     "Community"
Expiry date:                      "Permanent"
Product identifier:               "db2dec"
Version information:              "11.5"
Max amount of memory (GB):        "16"
Max number of cores:              "4"
Max amount of table space (GB):   "100"

$ db2ls

Install Path                       Level   Fix Pack   Special Install Number   Install Date                  Installer UID
---------------------------------------------------------------------------------------------------------------------
/opt/ibm/db2/V11.5               11.5.0.0        0                            Sat Nov  9 20:14:14 2019 IST             0

1 comment:

  1. Are you having trouble in sending or receiving bitcoin in the Binance account and looking for ways to eliminate it? If you don’t know how to deal with such errors and looking for ways to deal with troubles, you can call on Binance support number which is functional all the time. Talk to the team anytime for availing quality solutions which could be helpful in fixing errors in no time. Whenever you Binance Support Number are in trouble, talk to the team anytime for perfect solutions that are required to fix queries in no time. What are you waiting for to remove these issues? Join the team and avail solutions that would be helpful in fixing errors in no time.

    ReplyDelete

ads