My Oracle Support Banner

While Installing Oracle Database on Linux x86-64 Linking Errors Occur and NetCA/DBCA Fail with Error: "UnsatisfiedLinkError exception loading native library: njni10" (Doc ID 308788.1)

Last updated on FEBRUARY 13, 2023

Applies to:

Oracle Database - Standard Edition - Version 10.1.0.3 to 11.1.0.7 [Release 10.1 to 11.1]
Oracle Database - Enterprise Edition - Version 10.1.0.3 to 11.1.0.7 [Release 10.1 to 11.1]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Linux x86-64

***Checked for relevance on 24-SEP-2015***


Symptoms

While installing Oracle Database Server on a SuSE SLESx x86-64 server, the following linking errors occur:

Error in invoking target "all_no_orcl" of makefile $ORACLE_HOME/rdbms/lib/ins_rdbms.mk



and from the $ORACLE_HOME/install/make.log  more details of the link error:


$ORACLE_HOME/bin/genclntsh
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin/ld: cannot find /usr/lib/libc_nonshared.a

$ORACLE_HOME/bin/genagtsh $ORACLE_HOME/lib/libagtsh.so 1.0
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin/ld: cannot find /usr/lib/libc_nonshared.a

gcc -o $ORACLE_HOME/sysman/lib/libnmemso.so ....
$ORACLE_HOME/lib32//libclntsh.so: file not recognized: File truncated

gcc -m32 -o $ORACLE_HOME/rdbms/lib/extproc32 ....
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin/ld: skipping incompatible
$ORACLE_HOME/lib/libagtsh.so when searching for -lagtsh
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lagtsh



At the end of the installation, NetCA and DBCA fail to start with the following Java exception:


UnsatisfiedLinkError exception loading native library: njni10
Exception in thread "main" java.lang.UnsatisfiedLinkError: jniGetOracleHome
at oracle.net.common.NetGetEnv.jniGetOracleHome(Native Method)
at oracle.net.common.NetGetEnv.getOracleHome(Unknown Source)
at oracle.net.common.NetProperties.<init>(Unknown Source)
at oracle.net.common.NetProperties.getInstance(Unknown Source)
at oracle.net.ca.CmdlineArgs.<init>(Unknown Source)
at oracle.net.ca.InitialSetup.<init>(Unknown Source)
at oracle.net.ca.NetCA.main(Unknown Source)


NOTE: Similar errors can occur on any Linux x86-64 server but this note was created after a customer reported the errors on SuSE SLES x86-64


Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.