Mir Sayeed Hassan – Oracle Blog

Oracle DBA – Tips & Techniques | Learn with real-time examples

  • Translate

  • It’s Me




  • My Certificates

  • Links

    My Acclaim Certification : Credly Profile
    My Oracle ACE Pro Profile

  • Achievements

    Awarded Top 100 Oracle Blogs from Worldwide - #RANK 39
  • VISITORS COUNT

  • Verified International Academic Qualification from World Education Service (WES)

    Verified International Academic Qualification from World Education Service (WES)

  • Jobs

Error while loading shared libraries: libnsl.so.1 or libnsl.so.1 not found in Oracle 19c Grid Installation

Posted by Mir Sayeed Hassan on August 23rd, 2020

Error while loading shared libraries: libnsl.so.1 or libnsl.so.1 not found in Oracle 19c Installation

This error is occur while installation of Grid Infrastructure for Oracle 19c database.

[root@pri-db ~]# cd /u01/app/19c/grid/
[root@shop-pri grid]# ls

acfsccm addnode cdp css demo gnsd instantclient ldap network oracore oui qos root.sh.old sdk tomcat wwg
acfsccreg advmccb cfgtoollogs ctss diagnostics gpnp inventory lib nls oraInst.loc owm racg root.sh.old.1 slax ucp xag
acfscm assistants cha cv dmu gridSetup.sh javavm LINUX.X64_193000_grid_home.zip ohasd ord perl rdbms root.sh.old.2 sqlpatch usm xdk
acfsiob auth clone dbjava env.ora has jdbc log ologgerd ords plsql relnotes root.sh.old.3 sqlplus utl
acfsrd bin crf dbs evm hs jdk md OPatch oss precomp rhp rootupgrade.sh srvm welcome.html
acfsrm cdata crs deinstall gipc install jlib mdns opmn osysmond QOpatch root.sh runcluvfy.sh suptools wlm

Start the Installation of Grid Infrastructure

[oracle@shop-pri grid]$ ./gridSetup.sh

ERROR: Unable to verify the graphical display setup. This application requires X display. Make sure that xdpyinfo exist under PATH variable.
/u01/app/19c/grid/perl/bin/perl: error while loading shared libraries: libnsl.so.1: cannot open shared object file: No such file or directory

Issue the below command to rectify the error

[oracle@pri-db ~]$ ldd /u01/app/19c/grid/perl/bin/perl

linux-vdso.so.1 (0x00007ffc81740000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f3a53dd6000)
libnsl.so.1 => not found
libdl.so.2 => /lib64/libdl.so.2 (0x00007f3a53bd2000)
libm.so.6 => /lib64/libm.so.6 (0x00007f3a53850000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f3a53627000)
libutil.so.1 => /lib64/libutil.so.1 (0x00007f3a53423000)
libc.so.6 => /lib64/libc.so.6 (0x00007f3a53061000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f3a52e49000)
/lib64/ld-linux-x86-64.so.2 (0x00007f3a53ff6000)

Try to install the below Mandatory RPM Packages

yum install libnsl
yum install libnsl.i686
yum install libnsl2
yum install libnsl2.i686

[root@pri-db yum.repos.d]# yum install libnsl*

Last metadata expiration check: 0:18:23 ago on Mon 17 Aug 2020 03:27:49 PM +0430.
Modular dependency problem:
Problem: module llvm-toolset:rhel8:8010020191115015826:cdc1202b-0.x86_64 conflicts with module(llvm-toolset:ol8) provided by llvm-toolset:ol8:8020020200227200857:9edba152-0.x86_64
- module llvm-toolset:ol8:8020020200227200857:9edba152-0.x86_64 conflicts with module(llvm-toolset:rhel8) provided by llvm-toolset:rhel8:8010020191115015826:cdc1202b-0.x86_64
- module rust-toolset:rhel8:8010020200205192106:19f7a0a2-0.x86_64 requires module(llvm-toolset:rhel8), but none of the providers can be installed
- conflicting requests
Package libnsl2-1.2.0-2.20180605git4a062cf.el8.x86_64 is already installed.
Dependencies resolved.
===================================================
Package Architecture Version Repository Size
===================================================
Installing:
libnsl x86_64 2.28-72.el8_1.1 BaseOS 94 k

Transaction Summary
===================================================
Install 1 Package

Total download size: 94 k
Installed size: 240 k
Is this ok [y/N]: y
Downloading Packages:
libnsl-2.28-72.el8_1.1.x86_64.rpm 6.1 MB/s | 94 kB 00:00
----------------------------------------------------------------------------------------
Total 5.1 MB/s | 94 kB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : libnsl-2.28-72.el8_1.1.x86_64 1/1
Running scriptlet: libnsl-2.28-72.el8_1.1.x86_64 1/1
Verifying : libnsl-2.28-72.el8_1.1.x86_64 1/1

Installed:
libnsl-2.28-72.el8_1.1.x86_64

Complete!
[root@pri-db ~]# yum install libnsl.i686*

Last metadata expiration check: 0:54:36 ago on Sat 15 Aug 2020 08:28:22 PM +0430.
Modular dependency problem:
Problem: module llvm-toolset:rhel8:8010020191115015826:cdc1202b-0.x86_64 conflicts with module(llvm-toolset:ol8) provided by llvm-toolset:ol8:8020020200227200857:9edba152-0.x86_64
- module llvm-toolset:ol8:8020020200227200857:9edba152-0.x86_64 conflicts with module(llvm-toolset:rhel8) provided by llvm-toolset:rhel8:8010020191115015826:cdc1202b-0.x86_64
- module rust-toolset:rhel8:8010020200205192106:19f7a0a2-0.x86_64 requires module(llvm-toolset:rhel8), but none of the providers can be installed
- conflicting requests
Dependencies resolved.
=======================================================================
Package Architecture Version Repository Size
=======================================================================
Installing:
libnsl i686 2.28-72.el8_1.1 BaseOS 98 k
Installing dependencies:
glibc i686 2.28-72.el8_1.1 BaseOS 3.5 M
Downgrading:
glibc h x86_64 2.28-72.el8_1.1 BaseOS 3.7 M
glibc-common x86_64 2.28-72.el8_1.1 BaseOS 836 k
glibc-headers x86_64 2.28-72.el8_1.1 BaseOS 469 k
glibc-langpack-en x86_64 2.28-72.el8_1.1 BaseOS 818 k

Transaction Summary
=======================================================================
Install 2 Packages
Downgrade 4 Packages

Total size: 9.4 M
Is this ok [y/N]: y
Downloading Packages:
[SKIPPED] glibc-langpack-en-2.28-72.el8_1.1.x86_64.rpm: Already downloaded
[SKIPPED] glibc-headers-2.28-72.el8_1.1.x86_64.rpm: Already downloaded
[SKIPPED] glibc-common-2.28-72.el8_1.1.x86_64.rpm: Already downloaded
[SKIPPED] glibc-2.28-72.el8_1.1.x86_64.rpm: Already downloaded
[SKIPPED] glibc-2.28-72.el8_1.1.i686.rpm: Already downloaded
[SKIPPED] libnsl-2.28-72.el8_1.1.i686.rpm: Already downloaded
[root@pri-db ~]# yum install libnsl2*
Last metadata expiration check: 0:55:11 ago on Sat 15 Aug 2020 08:28:22 PM +0430.
Modular dependency problem:
Problem: module llvm-toolset:rhel8:8010020191115015826:cdc1202b-0.x86_64 conflicts with module(llvm-toolset:ol8) provided by llvm-toolset:ol8:8020020200227200857:9edba152-0.x86_64
- module llvm-toolset:ol8:8020020200227200857:9edba152-0.x86_64 conflicts with module(llvm-toolset:rhel8) provided by llvm-toolset:rhel8:8010020191115015826:cdc1202b-0.x86_64
- module rust-toolset:rhel8:8010020200205192106:19f7a0a2-0.x86_64 requires module(llvm-toolset:rhel8), but none of the providers can be installed
- conflicting requests
Package libnsl2-1.2.0-2.20180605git4a062cf.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[root@pri-db ~]# yum install libnsl2*

Last metadata expiration check: 0:55:11 ago on Sat 15 Aug 2020 08:28:22 PM +0430.
Modular dependency problem:
Problem: module llvm-toolset:rhel8:8010020191115015826:cdc1202b-0.x86_64 conflicts with module(llvm-toolset:ol8) provided by llvm-toolset:ol8:8020020200227200857:9edba152-0.x86_64
- module llvm-toolset:ol8:8020020200227200857:9edba152-0.x86_64 conflicts with module(llvm-toolset:rhel8) provided by llvm-toolset:rhel8:8010020191115015826:cdc1202b-0.x86_64
- module rust-toolset:rhel8:8010020200205192106:19f7a0a2-0.x86_64 requires module(llvm-toolset:rhel8), but none of the providers can be installed
- conflicting requests
Package libnsl2-1.2.0-2.20180605git4a062cf.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete![root@pri-db yum.repos.d]# yum install libnsl2.i686*
Last metadata expiration check: 0:19:38 ago on Mon 17 Aug 2020 03:27:49 PM +0430.
Modular dependency problem:

Problem: module llvm-toolset:rhel8:8010020191115015826:cdc1202b-0.x86_64 conflicts with module(llvm-toolset:ol8) provided by llvm-toolset:ol8:8020020200227200857:9edba152-0.x86_64
- module llvm-toolset:ol8:8020020200227200857:9edba152-0.x86_64 conflicts with module(llvm-toolset:rhel8) provided by llvm-toolset:rhel8:8010020191115015826:cdc1202b-0.x86_64
- module rust-toolset:rhel8:8010020200205192106:19f7a0a2-0.x86_64 requires module(llvm-toolset:rhel8), but none of the providers can be installed
- conflicting requests
Dependencies resolved.
=============================================================================================================================================================================================================================================
Package Architecture Version Repository Size
=============================================================================================================================================================================================================================================
Installing:
libnsl2 i686 1.2.0-2.20180605git4a062cf.el8 BaseOS 61 k
Installing dependencies:
keyutils-libs i686 1.5.10-6.el8 BaseOS 34 k
krb5-libs i686 1.17-9.el8 BaseOS 920 k
libcom_err i686 1.44.6-3.el8 BaseOS 49 k
libselinux i686 2.9-2.1.el8 BaseOS 173 k
libsepol i686 2.9-1.el8 BaseOS 367 k
libtirpc i686 1.1.4-4.el8 BaseOS 121 k
libverto i686 0.3.0-5.el8 BaseOS 25 k
openssl-libs i686 1:1.1.1c-2.el8_1.1 BaseOS 1.5 M
pcre2 i686 10.32-1.el8 BaseOS 246 k
zlib i686 1.2.11-10.el8 BaseOS 103 k
Downgrading:
e2fsprogs x86_64 1.44.6-3.el8 BaseOS 1.0 M
e2fsprogs-libs x86_64 1.44.6-3.el8 BaseOS 208 k
krb5-libs x86_64 1.17-9.el8 BaseOS 851 k
libcom_err x86_64 1.44.6-3.el8 BaseOS 48 k
libselinux x86_64 2.9-2.1.el8 BaseOS 166 k
libselinux-utils x86_64 2.9-2.1.el8 BaseOS 243 k
libss x86_64 1.44.6-3.el8 BaseOS 53 k
openssl x86_64 1:1.1.1c-2.el8_1.1 BaseOS 686 k
openssl-libs x86_64 1:1.1.1c-2.el8_1.1 BaseOS 1.5 M
python3-libselinux x86_64 2.9-2.1.el8 BaseOS 283 k

Transaction Summary
================================================================================================
Install 11 Packages
Downgrade 10 Packages

Total download size: 8.4 M
Is this ok [y/N]: y
Downloading Packages:
(1/21): libselinux-2.9-2.1.el8.x86_64.rpm 6.2 MB/s | 166 kB 00:00
(2/21): e2fsprogs-libs-1.44.6-3.el8.x86_64.rpm 6.7 MB/s | 208 kB 00:00
(3/21): libselinux-utils-2.9-2.1.el8.x86_64.rpm 7.4 MB/s | 243 kB 00:00
(4/21): libcom_err-1.44.6-3.el8.x86_64.rpm 4.4 MB/s | 48 kB 00:00
(5/21): e2fsprogs-1.44.6-3.el8.x86_64.rpm 11 MB/s | 1.0 MB 00:00
(6/21): krb5-libs-1.17-9.el8.x86_64.rpm 7.6 MB/s | 851 kB 00:00
(7/21): python3-libselinux-2.9-2.1.el8.x86_64.rpm 4.4 MB/s | 283 kB 00:00
(8/21): libss-1.44.6-3.el8.x86_64.rpm 3.1 MB/s | 53 kB 00:00
(9/21): keyutils-libs-1.5.10-6.el8.i686.rpm 3.8 MB/s | 34 kB 00:00
(10/21): libtirpc-1.1.4-4.el8.i686.rpm 4.7 MB/s | 121 kB 00:00
(11/21): libnsl2-1.2.0-2.20180605git4a062cf.el8.i686.rpm 4.0 MB/s | 61 kB 00:00
(12/21): openssl-libs-1.1.1c-2.el8_1.1.x86_64.rpm 8.9 MB/s | 1.5 MB 00:00
(13/21): openssl-1.1.1c-2.el8_1.1.x86_64.rpm 7.5 MB/s | 686 kB 00:00
(14/21): zlib-1.2.11-10.el8.i686.rpm 6.1 MB/s | 103 kB 00:00
(15/21): krb5-libs-1.17-9.el8.i686.rpm 10 MB/s | 920 kB 00:00
(16/21): libsepol-2.9-1.el8.i686.rpm 7.1 MB/s | 367 kB 00:00
(17/21): libcom_err-1.44.6-3.el8.i686.rpm 3.0 MB/s | 49 kB 00:00
(18/21): libverto-0.3.0-5.el8.i686.rpm 2.0 MB/s | 25 kB 00:00
(19/21): libselinux-2.9-2.1.el8.i686.rpm 5.6 MB/s | 173 kB 00:00
(20/21): pcre2-10.32-1.el8.i686.rpm 6.7 MB/s | 246 kB 00:00
(21/21): openssl-libs-1.1.1c-2.el8_1.1.i686.rpm 12 MB/s | 1.5 MB 00:00
------------------------------------------------------------------------------------------------
Total 22 MB/s | 8.4 MB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Downgrading : libcom_err-1.44.6-3.el8.x86_64 1/31
Running scriptlet: libcom_err-1.44.6-3.el8.x86_64 1/31
Downgrading : openssl-libs-1:1.1.1c-2.el8_1.1.x86_64 2/31
Running scriptlet: openssl-libs-1:1.1.1c-2.el8_1.1.x86_64 2/31
Installing : pcre2-10.32-1.el8.i686 3/31
Downgrading : libselinux-2.9-2.1.el8.x86_64 4/31
Running scriptlet: libselinux-2.9-2.1.el8.x86_64 4/31
Installing : libcom_err-1.44.6-3.el8.i686 5/31
Running scriptlet: libcom_err-1.44.6-3.el8.i686 5/31
Installing : keyutils-libs-1.5.10-6.el8.i686 6/31
Downgrading : e2fsprogs-libs-1.44.6-3.el8.x86_64 7/31
Running scriptlet: e2fsprogs-libs-1.44.6-3.el8.x86_64 7/31
Downgrading : libss-1.44.6-3.el8.x86_64 8/31
Running scriptlet: libss-1.44.6-3.el8.x86_64 8/31
Installing : libverto-0.3.0-5.el8.i686 9/31
Installing : libsepol-2.9-1.el8.i686 10/31
Running scriptlet: libsepol-2.9-1.el8.i686 10/31
Installing : libselinux-2.9-2.1.el8.i686 11/31
Running scriptlet: libselinux-2.9-2.1.el8.i686 11/31
Installing : zlib-1.2.11-10.el8.i686 12/31
Downgrading : e2fsprogs-1.44.6-3.el8.x86_64 13/31
Downgrading : krb5-libs-1.17-9.el8.x86_64 14/31
Downgrading : libselinux-utils-2.9-2.1.el8.x86_64 15/31
Downgrading : python3-libselinux-2.9-2.1.el8.x86_64 16/31
Downgrading : openssl-1:1.1.1c-2.el8_1.1.x86_64 17/31
Installing : openssl-libs-1:1.1.1c-2.el8_1.1.i686 18/31
Running scriptlet: openssl-libs-1:1.1.1c-2.el8_1.1.i686 18/31
Installing : krb5-libs-1.17-9.el8.i686 19/31
Installing : libtirpc-1.1.4-4.el8.i686 20/31
Running scriptlet: libtirpc-1.1.4-4.el8.i686 20/31
Installing : libnsl2-1.2.0-2.20180605git4a062cf.el8.i686 21/31
Running scriptlet: libnsl2-1.2.0-2.20180605git4a062cf.el8.i686 21/31
Cleanup : krb5-libs-1.17-18.el8.x86_64 22/31
Cleanup : openssl-1:1.1.1c-15.el8.x86_64 23/31
Cleanup : e2fsprogs-1.45.4-3.el8.x86_64 24/31
Cleanup : e2fsprogs-libs-1.45.4-3.el8.x86_64 25/31
Running scriptlet: e2fsprogs-libs-1.45.4-3.el8.x86_64 25/31
Cleanup : libss-1.45.4-3.el8.x86_64 26/31
Running scriptlet: libss-1.45.4-3.el8.x86_64 26/31
Cleanup : python3-libselinux-2.9-3.el8.x86_64 27/31
Cleanup : libselinux-utils-2.9-3.el8.x86_64 28/31
Cleanup : libselinux-2.9-3.el8.x86_64 29/31
Cleanup : libcom_err-1.45.4-3.el8.x86_64 30/31
Running scriptlet: libcom_err-1.45.4-3.el8.x86_64 30/31
Cleanup : openssl-libs-1:1.1.1c-15.el8.x86_64 31/31
Running scriptlet: openssl-libs-1:1.1.1c-15.el8.x86_64 31/31
Verifying : e2fsprogs-1.44.6-3.el8.x86_64 1/31
Verifying : e2fsprogs-1.45.4-3.el8.x86_64 2/31
Verifying : libselinux-2.9-2.1.el8.x86_64 3/31
Verifying : libselinux-2.9-3.el8.x86_64 4/31
Verifying : e2fsprogs-libs-1.44.6-3.el8.x86_64 5/31
Verifying : e2fsprogs-libs-1.45.4-3.el8.x86_64 6/31
Verifying : libselinux-utils-2.9-2.1.el8.x86_64 7/31
Verifying : libselinux-utils-2.9-3.el8.x86_64 8/31
Verifying : krb5-libs-1.17-9.el8.x86_64 9/31
Verifying : krb5-libs-1.17-18.el8.x86_64 10/31
Verifying : libcom_err-1.44.6-3.el8.x86_64 11/31
Verifying : libcom_err-1.45.4-3.el8.x86_64 12/31
Verifying : openssl-libs-1:1.1.1c-2.el8_1.1.x86_64 13/31
Verifying : openssl-libs-1:1.1.1c-15.el8.x86_64 14/31
Verifying : python3-libselinux-2.9-2.1.el8.x86_64 15/31
Verifying : python3-libselinux-2.9-3.el8.x86_64 16/31
Verifying : libss-1.44.6-3.el8.x86_64 17/31
Verifying : libss-1.45.4-3.el8.x86_64 18/31
Verifying : openssl-1:1.1.1c-2.el8_1.1.x86_64 19/31
Verifying : openssl-1:1.1.1c-15.el8.x86_64 20/31
Verifying : keyutils-libs-1.5.10-6.el8.i686 21/31
Verifying : libtirpc-1.1.4-4.el8.i686 22/31
Verifying : libnsl2-1.2.0-2.20180605git4a062cf.el8.i686 23/31
Verifying : krb5-libs-1.17-9.el8.i686 24/31
Verifying : zlib-1.2.11-10.el8.i686 25/31
Verifying : openssl-libs-1:1.1.1c-2.el8_1.1.i686 26/31
Verifying : libsepol-2.9-1.el8.i686 27/31
Verifying : libcom_err-1.44.6-3.el8.i686 28/31
Verifying : libverto-0.3.0-5.el8.i686 29/31
Verifying : pcre2-10.32-1.el8.i686 30/31
Verifying : libselinux-2.9-2.1.el8.i686 31/31

Downgraded:
e2fsprogs-1.44.6-3.el8.x86_64 e2fsprogs-libs-1.44.6-3.el8.x86_64 krb5-libs-1.17-9.el8.x86_64 libcom_err-1.44.6-3.el8.x86_64 libselinux-2.9-2.1.el8.x86_64 libselinux-utils-2.9-2.1.el8.x86_64 libss-1.44.6-3.el8.x86_64
openssl-1:1.1.1c-2.el8_1.1.x86_64 openssl-libs-1:1.1.1c-2.el8_1.1.x86_64 python3-libselinux-2.9-2.1.el8.x86_64

Installed:
keyutils-libs-1.5.10-6.el8.i686 krb5-libs-1.17-9.el8.i686 libcom_err-1.44.6-3.el8.i686 libnsl2-1.2.0-2.20180605git4a062cf.el8.i686 libselinux-2.9-2.1.el8.i686 libsepol-2.9-1.el8.i686 libtirpc-1.1.4-4.el8.i686
libverto-0.3.0-5.el8.i686 openssl-libs-1:1.1.1c-2.el8_1.1.i686 pcre2-10.32-1.el8.i686 zlib-1.2.11-10.el8.i686

Complete!

If still does not solve, then fallow the below procedure

[root@pri-db ~]# cd /usr/lib64/
[root@pri-db lib64]# ll libnsl.so.
libnsl.so.2 libnsl.so.2.0.0
[root@pri-db lib64]# mkdir bkp_libnsl.so.2
[root@pri-db lib64]# cp libnsl.so.2 libnsl.so.2.0.0 bkp_libnsl.so.2
[root@pri-db lib64]# ln -sf libnsl.so.2 libnsl.so.1

[root@pri-db yum.repos.d]# ldd /u01/app/19c/grid/perl/bin/perl

linux-vdso.so.1 (0x00007ffc667cb000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fe2d49cf000)
libnsl.so.1 => /lib64/libnsl.so.1 (0x00007fe2d47b6000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fe2d45b2000)
libm.so.6 => /lib64/libm.so.6 (0x00007fe2d4230000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007fe2d4007000)
libutil.so.1 => /lib64/libutil.so.1 (0x00007fe2d3e03000)
libc.so.6 => /lib64/libc.so.6 (0x00007fe2d3a40000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fe2d3828000)
/lib64/ld-linux-x86-64.so.2 (0x00007fe2d4bef000)

=====Hence tested & Verified in our test env=====