Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

CentOS 8 "Error libnsl.so.1: cannot open shared object file: No such file or directory occurred.."

78ec94e2-7ab0-46d8-b1d5-72e9bac02713Jul 7 2020 — edited Jul 8 2020

I am installing Oracle 18c on Centos 7 for long time. that was simple

a. install java jdk 11

b. install oracle preinstall rpm package

c. install oracle ee package

But now on Centos 8 and Oracle ee 19 I get this :

yum localinstall /home/adminest/Downloads/oracle-database-ee-19c-1.0-1.x86_64.rpm

Last metadata expiration check: 0:58:50 ago on Wed 08 Jul 2020 08:04:25 AM IST.

Dependencies resolved.

==================================================================================================================================

Package                                  Architecture             Version                   Repository                      Size

==================================================================================================================================

Installing:

oracle-database-ee-19c                   x86_64                   1.0-1                     @commandline                   2.5 G

Transaction Summary

==================================================================================================================================

Install  1 Package

Total size: 2.5 G

Installed size: 6.9 G

Is this ok [y/N]: y

Downloading Packages:

Running transaction check

Transaction check succeeded.

Running transaction test

Transaction test succeeded.

Running transaction

  Preparing        :                                                                                                          1/1

  Running scriptlet: oracle-database-ee-19c-1.0-1.x86_64                                                                      1/1

  Installing       : oracle-database-ee-19c-1.0-1.x86_64                                                                      1/1

  Running scriptlet: oracle-database-ee-19c-1.0-1.x86_64                                                                      1/1

Exception java.lang.UnsatisfiedLinkError: /opt/oracle/product/19c/dbhome_1/oui/lib/linux64/liboraInstaller.so: libnsl.so.1: cannot open shared object file: No such file or directory occurred..

java.lang.UnsatisfiedLinkError: /opt/oracle/product/19c/dbhome_1/oui/lib/linux64/liboraInstaller.so: libnsl.so.1: cannot open shared object file: No such file or directory

at java.lang.ClassLoader$NativeLibrary.load(Native Method)

at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1857)

at java.lang.Runtime.loadLibrary0(Runtime.java:870)

at java.lang.System.loadLibrary(System.java:1122)

at oracle.sysman.oii.oiip.osd.unix.OiipuUnixOps.loadNativeLib(OiipuUnixOps.java:388)

at oracle.sysman.oii.oiip.osd.unix.OiipuUnixOps.<clinit>(OiipuUnixOps.java:130)

at oracle.sysman.oii.oiip.oiipg.OiipgEnvironment.getEnv(OiipgEnvironment.java:201)

at oracle.sysman.oii.oiix.OiixIniPair.instantiateEnvVars(OiixIniPair.java:299)

at oracle.sysman.oii.oiix.OiixIniPair.updateValue(OiixIniPair.java:230)

at oracle.sysman.oii.oiix.OiixIniPair.<init>(OiixIniPair.java:148)

at oracle.sysman.oii.oiix.OiixIniFile.readFile(OiixIniFile.java:809)

at oracle.sysman.oii.oiix.OiixIniFile.readIniFile(OiixIniFile.java:978)

at oracle.sysman.oii.oiix.OiixIniFile.getProfileString(OiixIniFile.java:385)

at oracle.sysman.oii.oiix.OiixOraparam.getOraparamProfileString(OiixOraparam.java:338)

at oracle.sysman.oii.oiix.OiixOraparam.getOraparamProfileString(OiixOraparam.java:296)

at oracle.sysman.oii.oiix.OiixOraparam.usePrereqChecker(OiixOraparam.java:416)

at oracle.sysman.oii.oiic.OiicSessionContext.setVariables(OiicSessionContext.java:1325)

at oracle.sysman.oii.oiic.OiicBaseInventoryApp.execute(OiicBaseInventoryApp.java:771)

at oracle.sysman.oii.oiic.OiicBaseInventoryApp.main_helper(OiicBaseInventoryApp.java:690)

at oracle.sysman.oii.oiic.OiicDetachHome.main(OiicDetachHome.java:420)

'DetachHome' failed.

Exception in thread "main" java.lang.NullPointerException

at oracle.sysman.oii.oiic.OiicBaseInventoryApp.main_helper(OiicBaseInventoryApp.java:706)

at oracle.sysman.oii.oiic.OiicDetachHome.main(OiicDetachHome.java:420)

Exception java.lang.NoClassDefFoundError: Could not initialize class oracle.sysman.oii.oiip.osd.unix.OiipuUnixOps occurred..

java.lang.NoClassDefFoundError: Could not initialize class oracle.sysman.oii.oiip.osd.unix.OiipuUnixOps

at oracle.sysman.oii.oiip.oiipg.OiipgEnvironment.getEnv(OiipgEnvironment.java:201)

at oracle.sysman.oii.oiix.OiixIniPair.instantiateEnvVars(OiixIniPair.java:299)

at oracle.sysman.oii.oiix.OiixIniPair.updateValue(OiixIniPair.java:230)

at oracle.sysman.oii.oiix.OiixIniPair.<init>(OiixIniPair.java:148)

at oracle.sysman.oii.oiix.OiixIniFile.readFile(OiixIniFile.java:809)

at oracle.sysman.oii.oiix.OiixIniFile.readIniFile(OiixIniFile.java:978)

at oracle.sysman.oii.oiix.OiixIniFile.getProfileString(OiixIniFile.java:385)

at oracle.sysman.oii.oiix.OiixOraparam.getOraparamProfileString(OiixOraparam.java:338)

at oracle.sysman.oii.oiix.OiixOraparam.getOraparamProfileString(OiixOraparam.java:296)

at oracle.sysman.oii.oiix.OiixOraparam.usePrereqChecker(OiixOraparam.java:416)

at oracle.sysman.oii.oiic.OiicSessionContext.setVariables(OiicSessionContext.java:1325)

at oracle.sysman.oii.oiic.OiicBaseInventoryApp.execute(OiicBaseInventoryApp.java:771)

at oracle.sysman.oii.oiic.OiicBaseInventoryApp.main_helper(OiicBaseInventoryApp.java:690)

at oracle.sysman.oii.oiic.OiicAttachHome.main(OiicAttachHome.java:696)

'AttachHome' failed.

Exception in thread "main" java.lang.NullPointerException

at oracle.sysman.oii.oiic.OiicBaseInventoryApp.main_helper(OiicBaseInventoryApp.java:706)

at oracle.sysman.oii.oiic.OiicAttachHome.main(OiicAttachHome.java:696)

[SEVERE] An error occurred while registering the Oracle home. Verify logs in /var/log/oracle-database-ee-19c/results/oraInstall.log and /opt/oracle/oraInventory for more details and try again.

warning: %post(oracle-database-ee-19c-1.0-1.x86_64) scriptlet failed, exit status 1

Error in POSTIN scriptlet in rpm package oracle-database-ee-19c

  Verifying        : oracle-database-ee-19c-1.0-1.x86_64                                                                      1/1

Installed:

  oracle-database-ee-19c-1.0-1.x86_64                                                                                            

any idea why? any fix for it?

thanks

Comments
Post Details
Added on Jul 7 2020
2 comments
6,188 views