DB2 Software Installation Process in LUW Environment
DB2 Software Installation Process in LUW Environment
Environment)
***********************************************************************************
**
Our profile is DB2 DBA in LUW environment and not in mainframe environment.
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/
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.
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.
v11.5.9_linuxx64_server_dec.tar.gz
Method 1 :
gunzip filename.gz
example:
gunzip v11.5.9_linuxx64_server_dec.tar.gz
example :
x : extract
v : verbose output
f : filename
Method 2 :
Example :
z : unzip
x : extract
v : verbose output
f : filename
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
The force option "-f sysreq" is used to force the installation ...
***********************************************************
Install into default directory (/opt/ibm/db2/V10.5) ? [yes/no]
yes
SERVER
CONSV
EXP
CLIENT
RTCL
***********************************************************
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.
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
[root@ip-172-30-0-97 server_t]#
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.
DBI1343I The db2val command completed successfully. For details, see the log
file /tmp/db2val-210319_110834.log.
Task 2: Validating embedded runtime path for DB2 executables and libraries.
Status 2 : Success
DBI1343I The db2val command completed successfully. For details, see the log
file /tmp/db2val-210319_110834.log.
syntax :
R -->Represents recursive.
Examples:
*********
chown -R db2mcys:db2iadm1 /datafile1
syntax :
Example :
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
[root@ip-172-30-0-97 instance]#
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.
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.
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.
***********************************************************************************
*************************************************************************