We faced this error during Oracle12cR2 installation.
During our installation of oracle 12.2 in new home on existing Oracle 11g installation,we faced the error
LOG
INFO: Executing [/opt/oracle/product/12.2.0.1/db1/bin/diagsetup, clustercheck=false, basedir=/opt/oracle/product, oraclehome=/opt/oracle/product/12.2.0.1/db1]
/opt/oracle/product/12.2.0.1/db1/bin/diagsetup
WARNING: java.lang.UnsatisfiedLinkError: /opt/oracle/product/12.2.0.1/db1/oui/lib/linux64/liboraInstaller.so: /opt/oracle/product/12.2.0.1/db1/oui/lib/linux64/liboraInstaller.so: undefined symbol: JNU_ThrowByName
WARNING: at java.lang.ClassLoader$NativeLibrary.load(Native Method)
WARNING: at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
WARNING: at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
WARNING: at java.lang.Runtime.load0(Runtime.java:809)
WARNING: at java.lang.System.load(System.java:1086)
WARNING: at java.lang.ClassLoader$NativeLibrary.load(Native Method)
WARNING: at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
WARNING: at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
WARNING: at java.lang.Runtime.load0(Runtime.java:809)
WARNING: at java.lang.System.load(System.java:1086)
WARNING: at oracle.sysman.oii.oiip.osd.unix.OiipuUnixOps.loadNativeLib(OiipuUnixOps.java:364)
WARNING: at oracle.sysman.oii.oiip.osd.unix.OiipuUnixOps.<clinit>(OiipuUnixOps.java:128)
WARNING: at oracle.sysman.oii.oiip.oiipg.OiipgFileSystem.changePermission(OiipgFileSystem.java:2257)
WARNING: at oracle.sysman.oii.oiix.OiixFileOps.changePermission(OiixFileOps.java:2219)
WARNING: at oracle.sysman.oii.oiix.OiixFileOps.changePermissions(OiixFileOps.java:2151)
WARNING: at oracle.diagfw.adr.diagsetup.DiagSetup.createAdrDir(DiagSetup.java:566)
WARNING: at oracle.diagfw.adr.diagsetup.DiagSetup.createDirsLocal(DiagSetup.java:415)
WARNING: at oracle.diagfw.adr.diagsetup.DiagSetup.createDirs(DiagSetup.java:326)
WARNING: at oracle.diagfw.adr.diagsetup.DiagSetup.executeMain(DiagSetup.java:294)
WARNING: at oracle.diagfw.adr.diagsetup.DiagSetup.main(DiagSetup.java:257)
WARNING: Exception in thread “main” java.lang.UnsatisfiedLinkError: no oraInstaller in java.library.path
WARNING: at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
WARNING: at java.lang.Runtime.loadLibrary0(Runtime.java:870)
WARNING: at java.lang.System.loadLibrary(System.java:1122)
WARNING: at oracle.sysman.oii.oiip.osd.unix.OiipuUnixOps.loadNativeLib(OiipuUnixOps.java:380)
WARNING: at oracle.sysman.oii.oiip.osd.unix.OiipuUnixOps.<clinit>(OiipuUnixOps.java:128)
WARNING: at oracle.sysman.oii.oiip.oiipg.OiipgFileSystem.changePermission(OiipgFileSystem.java:2257)
WARNING: at oracle.sysman.oii.oiix.OiixFileOps.changePermission(OiixFileOps.java:2219)
WARNING: at oracle.sysman.oii.oiix.OiixFileOps.changePermissions(OiixFileOps.java:2151)
WARNING: at oracle.diagfw.adr.diagsetup.DiagSetup.createAdrDir(DiagSetup.java:566)
WARNING: at oracle.diagfw.adr.diagsetup.DiagSetup.createDirsLocal(DiagSetup.java:415)
WARNING: at oracle.diagfw.adr.diagsetup.DiagSetup.createDirs(DiagSetup.java:326)
WARNING: at oracle.diagfw.adr.diagsetup.DiagSetup.executeMain(DiagSetup.java:294)
WARNING: at oracle.diagfw.adr.diagsetup.DiagSetup.main(DiagSetup.java:257)
INFO: The process /opt/oracle/product/12.2.0.1/db1/bin/diagsetup exited with code 1
INFO: Waiting for output processor threads to exit.
INFO: Output processor threads exited.
INFO: Command:
/opt/oracle/product/12.2.0.1/db1/bin/diagsetup clustercheck=false basedir=/opt/oracle/product oraclehome=/opt/oracle/product/12.2.0.1/db1
SEVERE: [FATAL] [INS-32250] ADR setup (diagsetup) tool failed. Check the install log for more details.
*ADDITIONAL INFORMATION:*
– java.lang.UnsatisfiedLinkError: /opt/oracle/product/12.2.0.1/db1/oui/lib/linux64/liboraInstaller.so: /opt/oracle/product/12.2.0.1/db1/oui/lib/linux64/liboraInstaller.so: undefined symbol: JNU_ThrowByName
– at java.lang.ClassLoader$NativeLibrary.load(Native Method)
– at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
Solution
We found there was old 11g Database installed and all environment variables were pointing to old installation.After resetting variables to new installed ORACLE_HOME and other variable,it got resolved.