DBT3619W in db2prereqcheck Linux - fsmegale/Db2-luw GitHub Wiki
This is a Note about my test where I got the DBT3619W
Db2 v11.5.7.0
Suse Linux
db2prequecheck reported the following:
DBT3619W The db2prereqcheck utility detected that ksh is not linked to ksh or ksh93. This is required for Db2 High Availability Feature with Tivoli SA MP.
KSH was presented in the machine but the links wasn't to ksh or ksh93.
Showing that ksh was presented:
hostHADR2:/bin # ksh
# type ksh
Showing what were the ksh links:
hostHADR2:/bin # type ksh
ksh is hashed (/usr/bin/ksh)
hostHADR2:/bin # ls -l /usr/bin/ksh
lrwxrwxrwx 1 root root 29 May 25 2018 /usr/bin/ksh -> /etc/alternatives/usr-bin-ksh
hostHADR2:~ # ls -l /etc/alternatives/usr-bin-ksh`
lrwxrwxrwx 1 root root 13 Jan 4 12:46 /etc/alternatives/usr-bin-ksh -> /usr/bin/lksh
Install the ksh package (read the "Cause" above and the "Results" below, because you may be saying "I already have ksh".
WARNING: I had to first add the repository. When I just tried to install ksh, I got the following:
" localhost:/tmp/Db2_Installers/V11.5.7.0/server_dec # zypper install ksh Loading repository data... Reading installed packages... 'ksh' not found in package names. Trying capabilities. 'mksh' providing 'ksh' is already installed. Resolving package dependencies... Nothing to do. "
The command to only install the ksh (not including the repository) is:
zypper install ksh
Reference to install the repository for that package (you may want to talk to your Operational System admin.):
ksh from shells project
https://software.opensuse.org/download/package?package=ksh&project=shells
Outputs:
localhost:/tmp/Db2_Installers/V11.5.7.0/server_dec # ksh
# exit
localhost:/tmp/Db2_Installers/V11.5.7.0/server_dec # ls -l /usr/bin/ksh
lrwxrwxrwx 1 root root 29 May 25 2018 /usr/bin/ksh -> /etc/alternatives/usr-bin-ksh
localhost:/tmp/Db2_Installers/V11.5.7.0/server_dec # ls -l /etc/alternatives/usr-bin-ksh
lrwxrwxrwx 1 root root 13 Feb 7 2022 /etc/alternatives/usr-bin-ksh -> /usr/bin/lksh
localhost:/tmp/Db2_Installers/V11.5.7.0/server_dec # zypper addrepo https://download.opensuse.org/repositories/shells/openSUSE_Leap_15.3/shells.repo
Adding repository 'Shell Implementations (openSUSE_Leap_15.3)' .............................................[done]
Repository 'Shell Implementations (openSUSE_Leap_15.3)' successfully added
URI : https://download.opensuse.org/repositories/shells/openSUSE_Leap_15.3/
Enabled : Yes
GPG Check : Yes
Autorefresh : No
Priority : 99 (default priority)
Repository priorities are without effect. All enabled repositories share the same priority.
localhost:/tmp/Db2_Installers/V11.5.7.0/server_dec # zypper refresh
Repository 'sle-module-basesystem' is up to date.
Repository 'sle-module-desktop-applications' is up to date.
Repository 'Kernel builds for branch stable (standard)' is up to date.
Repository 'sle-module-python2' is up to date.
Repository 'SLES15-SP3-15.3-0' is up to date.
Repository 'sle-module-server-applications' is up to date.
Retrieving repository 'Shell Implementations (openSUSE_Leap_15.3)' metadata -----------------------------------[|]
New repository or package signing key received:
Repository: Shell Implementations (openSUSE_Leap_15.3)
Key Fingerprint: 91A1 391C 6956 3409 D2CD 5B34 85CF E451 B91E 1E8B
Key Name: shells OBS Project <[email protected]>
Key Algorithm: DSA 1024
Key Created: Thu Jan 7 11:51:06 2021
Key Expires: Sat Mar 18 11:51:06 2023
Rpm Name: gpg-pubkey-b91e1e8b-5ff71fda
Note: Signing data enables the recipient to verify that no modifications occurred after the data
were signed. Accepting data with no, wrong or unknown signature can lead to a corrupted system
and in extreme cases even to a system compromise.
Note: A GPG pubkey is clearly identified by it's fingerprint. Do not rely the keys name. If you
are not sure whether the presented key is authentic, ask the repository provider or check his
web site. Many provider maintain a web page showing the fingerprints of the GPG keys they are
using.
Do you want to reject the key, trust temporarily, or trust always? [r/t/a/?] (r): a
Retrieving repository 'Shell Implementations (openSUSE_Leap_15.3)' metadata ................................[done]
Building repository 'Shell Implementations (openSUSE_Leap_15.3)' cache .....................................[done]
All repositories have been refreshed.
localhost:/tmp/Db2_Installers/V11.5.7.0/server_dec # zypper install ksh
Loading repository data...
Reading installed packages...
Resolving package dependencies...
The following NEW package is going to be installed:
ksh
The following package has no support information from its vendor:
ksh
1 new package to install.
Overall download size: 1.0 MiB. Already cached: 0 B. After the operation, additional 2.7 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving package ksh-93vu-lp153.274.3.x86_64 (1/1), 1.0 MiB ( 2.7 MiB unpacked)
Retrieving: ksh-93vu-lp153.274.3.x86_64.rpm ..................................................[done (268.1 KiB/s)]
Checking for file conflicts: ...............................................................................[done]
(1/1) Installing: ksh-93vu-lp153.274.3.x86_64 ..............................................................[done]
Additional rpm output:
update-alternatives: using /bin/ksh93 to provide /bin/ksh (ksh) in auto mode
Executing %posttrans scripts ...............................................................................[done]
localhost:/tmp/Db2_Installers/V11.5.7.0/server_dec #
Link now points to ksh93
hostHADR2:~ # ls -l /etc/alternatives/usr-bin-ksh
lrwxrwxrwx 1 root root 10 Jan 13 10:16 /etc/alternatives/usr-bin-ksh -> /bin/ksh93
db2prereqcheck now matches that requirement:
hostHADR2:/tmp/Db2_Installers/v11.5/server_dec # ./db2prereqcheck -v 11.5.7.0 -i
Checking prerequisites for DB2 installation. Version "11.5.7.0". Operating system "Linux"
Validating "Linux distribution " ...
Required minimum operating system distribution: "SUSE"; Version: "15"; Service pack: "1".
Actual operating system distribution Version: "15"; Service pack: "3"
Requirement matched.
Validating "ksh symbolic link" ... //Here it is.
Requirement matched.
Validating "mksh" ... //This was already appearing before the ksh was installed.
Package (or file) found: "mksh"
Requirement matched.
(...)