0% found this document useful (0 votes)
13 views11 pages

DB2 Software Installation Process in LUW Environment

The document outlines the installation process for IBM DB2 software in Linux, UNIX, and Windows environments, focusing on the LUW environment. It details the steps for downloading, unzipping, and installing the software, as well as verifying the installation's validity using commands like db2val and db2ls. Additionally, it provides information on creating DB2 instances and managing user permissions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views11 pages

DB2 Software Installation Process in LUW Environment

The document outlines the installation process for IBM DB2 software in Linux, UNIX, and Windows environments, focusing on the LUW environment. It details the steps for downloading, unzipping, and installing the software, as well as verifying the installation's validity using commands like db2val and db2ls. Additionally, it provides information on creating DB2 instances and managing user permissions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 11

DB2 software installation in Linux , Unix and Windows Environment : (LUW

Environment)
***********************************************************************************
**
Our profile is DB2 DBA in LUW environment and not in mainframe environment.

Different database products that are availble in the Market.

IBM DB2 LUW

Microsoft SQL server

Sybase

SAP Hana

Oracle

Compare DB2 for z/OS and DB2 for Linux, UNIX, and Windows

https://developer.ibm.com/technologies/databases/articles/dm-1108compdb2luwzos/

Different DB2 softwares versions in LUW environment are given below

11.5 11.1 10.5 10.1 9.8 9.7 9.5 9.1

From Where you will download the DB2 software and respective license file ?

We can download DB2 software and respective license file from Passport Advantage
website. We need to have valid userid and password.

First of all we need to understand in which operating system we are going to


install the DB2 software and By using command (cat /etc/os-release)

we can find the respective operating system version.

By using winscp (windows secure copy) we can copy the DB2 software image which we
downloaded into from our local system into database server.

(OR)

WinSCP is a free and open-source SFTP, FTP, WebDAV, Amazon S3 and SCP client for
Microsoft Windows.Its main function is secure file transfer between a local and a
remote computer.

How to unzip and untar a tar file ?

TAR :tape archive


JAR :Java archive
SAR :sap archive
WAR :web archive

v11.5.9_linuxx64_server_dec.tar.gz
Method 1 :

To unzip any zip file we need to use below command.

gunzip filename.gz

example:

gunzip v11.5.9_linuxx64_server_dec.tar.gz

To untar any tar file we need to use below command.

tar -xvf filename.tar

example :

tar -xvf v10.5fp11_linuxx64_server_t.tar

x : extract

v : verbose output

f : filename

Method 2 :

tar -zxvf filename.tar.gz

Example :

tar -zxvf v10.5fp11_linuxx64_server_t.tar.gz

z : unzip

x : extract

v : verbose output

f : filename

Note :To zip any file we need to use below command.

gzip filename

example :

gzip v10.5fp11_linuxx64_server_t.tar

expected output :

v10.5fp11_linuxx64_server_t.tar.gz

Prechecks :
***********
we need to perform prechecks to identify whether db2 software is compactable with
the operating system or not.

./db2prereqcheck

DB2 software installation :


***************************
By using root user we need to install the db2 software.

[root@ip-172-30-0-97 server_t]# ./db2_install -f sysreq


DBT3505E The db2prereqcheck utility was unable to determine the Linux distribution
level. DBI1324W Support of the db2_install command is deprecated.

The force option "-f sysreq" is used to force the installation ...

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

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

Specify one of the following keywords to install DB2 products.

SERVER
CONSV
EXP
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
DBT3505E The db2prereqcheck utility was unable to determine the Linux distribution
level. DB2 installation is being initialized.

Total number of tasks to be performed: 49


Total estimated time for all tasks to be performed: 1991 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 #3 start
Description: Product Messages - English
Estimated time 14 second(s)
Task #3 end

Task #4 start
Description: Base client support
Estimated time 323 second(s)
Task #4 end

Task #5 start
Description: Java Runtime Support
Estimated time 169 second(s)
Task #5 end

Task #6 start
Description: Java Help (HTML) - English
Estimated time 7 second(s)
Task #6 end

Task #7 start
Description: Base server support for installation with root privileges
Estimated time 7 second(s)
Task #7 end

Task #8 start
Description: Global Secure ToolKit
Estimated time 74 second(s)
Task #8 end

Task #9 start
Description: Java support
Estimated time 13 second(s)
Task #9 end

Task #10 start


Description: SQL procedures
Estimated time 3 second(s)
Task #10 end

Task #11 start


Description: ICU Utilities
Estimated time 35 second(s)
Task #11 end

Task #12 start


Description: Java Common files
Estimated time 18 second(s)
Task #12 end

Task #13 start


Description: Base server support
Estimated time 500 second(s)
Task #13 end

Task #14 start


Description: Control Center Help (HTML) - English
Estimated time 13 second(s)
Task #14 end
Task #15 start
Description: Connect support
Estimated time 3 second(s)
Task #15 end

Task #16 start


Description: Relational wrappers common
Estimated time 3 second(s)
Task #16 end

Task #17 start


Description: DB2 data source support
Estimated time 6 second(s)
Task #17 end

Task #18 start


Description: Spatial Extender server support
Estimated time 18 second(s)
Task #18 end

Task #19 start


Description: IBM Software Development Kit (SDK) for Java(TM)
Estimated time 45 second(s)
Task #19 end

Task #20 start


Description: DB2 LDAP support
Estimated time 4 second(s)
Task #20 end

Task #21 start


Description: DB2 Instance Setup wizard
Estimated time 20 second(s)
Task #21 end

Task #22 start


Description: Integrated Flash Copy Support
Estimated time 3 second(s)
Task #22 end

Task #23 start


Description: Spatial Extender client
Estimated time 3 second(s)
Task #23 end

Task #24 start


Description: Communication support - TCP/IP
Estimated time 3 second(s)
Task #24 end

Task #25 start


Description: Tivoli SA MP
Estimated time 300 second(s)
Task #25 end

Task #26 start


Description: Base application development tools
Estimated time 34 second(s)
Task #26 end
Task #27 start
Description: DB2 Update Service
Estimated time 4 second(s)
Task #27 end

Task #28 start


Description: Parallel Extension
Estimated time 3 second(s)
Task #28 end

Task #29 start


Description: EnterpriseDB code
Estimated time 4 second(s)
Task #29 end

Task #30 start


Description: Replication tools
Estimated time 61 second(s)
Task #30 end

Task #31 start


Description: Sample database source
Estimated time 4 second(s)
Task #31 end

Task #32 start


Description: itlm
Estimated time 3 second(s)
Task #32 end

Task #33 start


Description: DB2 Text Search
Estimated time 123 second(s)
Task #33 end

Task #34 start


Description: Command Line Processor Plus
Estimated time 6 second(s)
Task #34 end

Task #35 start


Description: Informix data source support
Estimated time 4 second(s)
Task #35 end

Task #36 start


Description: Oracle data source support
Estimated time 4 second(s)
Task #36 end

Task #37 start


Description: First Steps
Estimated time 3 second(s)
Task #37 end

Task #38 start


Description: Product Signature for DB2 Server Edition
Estimated time 6 second(s)
Task #38 end

Task #39 start


Description: Guardium Installation Manager Client
Estimated time 36 second(s)
Task #39 end

Task #40 start


Description: Setting DB2 library path
Estimated time 180 second(s)
Task #40 end

Task #41 start


Description: Installing or updating DB2 HA scripts for IBM Tivoli System Automation
for Multiplatforms (Tivoli SA MP)
Estimated time 40 second(s)
Task #41 end

Task #42 start


Description: Executing control tasks
Estimated time 20 second(s)
Task #42 end

Task #43 start


Description: Updating global registry
Estimated time 20 second(s)
Task #43 end

Task #44 start


Description: Starting DB2 Fault Monitor
Estimated time 10 second(s)
Task #44 end

Task #45 start


Description: Updating the db2ls and db2greg link
Estimated time 1 second(s)
Task #45 end

Task #46 start


Description: Registering DB2 licenses
Estimated time 5 second(s)
Task #46 end

Task #47 start


Description: Setting default global profile registry variables
Estimated time 1 second(s)
Task #47 end

Task #48 start


Description: Initializing instance list
Estimated time 5 second(s)
Task #48 end

Task #49 start


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

Task #50 start


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

The execution completed successfully.

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

[root@ip-172-30-0-97 server_t]#

[root@ip-172-30-0-97 server_t]# db2ls

Install Path Level Fix Pack Special Install Number


Install Date Installer UID
-----------------------------------------------------------------------------------
----------------------------------
/opt/ibm/db2/V10.5 10.5.0.11 11 Thu
Mar 18 06:41:43 2021 UTC 0

How you will verify the DB2 software installation is valid ? (Interview Question)

By using db2val command we can confirm that the DB2 software installation is
correct/valid or not.

[root@ip-172-30-0-97 bin]# ./db2val


DBI1379I The db2val command is running. This can take several minutes.

DBI1335I Installation file validation for the DB2 copy installed at


/opt/ibm/db2/V10.5 was successful.

DBI1343I The db2val command completed successfully. For details, see the log
file /tmp/db2val-210319_110834.log.

[root@ip-172-30-0-97 bin]# cat /tmp/db2val-210319_110834.log


Installation file validation for the DB2 copy installed at "/opt/ibm/db2/V10.5"
starts.

Task 1: Validating Installation file sets.


Status 1 : Success

Task 2: Validating embedded runtime path for DB2 executables and libraries.
Status 2 : Success

Task 3: Validating the accessibility to the installation path.


Status 3 : Success

Task 4: Validating the accessibility to the /etc/services file.


Status 4 : Success

DBI1335I Installation file validation for the DB2 copy installed at


/opt/ibm/db2/V10.5 was successful.

Installation file validation for the DB2 copy installed at "/opt/ibm/db2/V10.5"


ends.

DBI1343I The db2val command completed successfully. For details, see the log
file /tmp/db2val-210319_110834.log.

DB2 instance creation process :


*******************************
By using root user we can create db2instance. All the DB2 instance related
commands/scripts will be under below path.

Path : /opt/ibm/db2/V10.5/instance (Version 10.5)

To add a group we need to use below command.

groupadd -g 2002 db2iadm1

To add a user into a group we need to use below command.

useradd -u 2006 -g db2iadm1 -m -d /db2/db2p11 db2p11

chmod : Change the permission of a file or directory.

chown : Change the ownership of a file or Directory.

syntax :

chown -R owner:group directoryname

chown owner:group filename

R -->Represents recursive.

Examples:
*********
chown -R db2mcys:db2iadm1 /datafile1

chown -R db2mcys:db2iadm1 /datafile2

chown -R db2mcys:db2iadm1 /datafile3

chown -R db2mcys:db2iadm1 /datafile4

chown -R db2mcys:db2iadm1 /db2backup

chown -R db2mcys:db2iadm1 /tempfile

chown -R db2mcys:db2iadm1 /db2/db2mcys

chown -R db2mcys:db2iadm1 /archivelog_dir

chown -R db2mcys:db2iadm1 /activelog_dir

syntax :

./db2icrt -s instancetype -u fenceduser instanceuser

Example :

./db2icrt -s ese -u db2p11 db2p11

./db2icrt -s ese -u db2blms db2blms


[root@ip-172-30-0-97 instance]# ./db2icrt -s ese -u db2mcys db2mcys
DBI1446I The db2icrt command is running.

DB2 installation is being initialized.

Total number of tasks to be performed: 4


Total estimated time for all tasks to be performed: 309 second(s)

Task #1 start
Description: Setting default global profile registry variables
Estimated time 1 second(s)
Task #1 end

Task #2 start
Description: Initializing instance list
Estimated time 5 second(s)
Task #2 end

Task #3 start
Description: Configuring DB2 instances
Estimated time 300 second(s)
Task #3 end

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

The execution completed successfully.

For more information see the DB2 installation log at "/tmp/db2icrt.log.23336".


DBI1070I Program db2icrt completed successfully.

[root@ip-172-30-0-97 instance]#

[db2mcys@ip-172-30-0-97 ~]$ db2licm -l


Product name: "DB2 Advanced Enterprise Server Edition"
License type: "Trial"
Expiry date: "06/15/2021"
Product identifier: "db2aese"
Version information: "10.5"

db2sampl -dbpath /db2/db2blms -name BLMS


db2sampl -dbpath /db2/P11 -name P11

DB2 installation process in linux environment high level steps:


***************************************************************
1. First of all we need to understand in which operating system we are going to
install the DB2 software and the respective software we need to download
from "passport advantage website".

2. By using WINSCP or FileZilla the downloaded software we need to place into the
database server.
3. We need to have root access to the database server.

4. We need to unzip and untar the software.

5. With root user we need perform/execute db2prechecks to identify whether the db2
software is compactable with the operating system or not.

6. Make sure we have sufficient space allocated for the installation directory.

7. Install the db2 software by calling db2_instal script.

8. After db2 software installation is completed by using "db2val" command we can


validate whether the db2 software is properly installed or not.

9. By using "db2ls" command we can identify in which path the db2 software is
installed and the respective db2 version.

10. By using "db2licm" command we can identify the product name of db2 software.

***********************************************************************************
*************************************************************************

You might also like