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 JUNE 05, 2017

Applies to:

Oracle Database - Standard Edition - Version to [Release 10.1 to 11.1]
Oracle Database - Enterprise Edition - Version to [Release 10.1 to 11.1]
Linux x86-64

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


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:

/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


Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms