Unsatisfiedlinkerror exception loading native library njni10

unsatisfiedlinkerror exception loading native library njni10

dbca UnsatisfiedLinkError exception loading native library: njni10. Exception in thread "main" java.lang.UnsatisfiedLinkError: get at oracle.net.common. i tried to install Oracle10g x86_64bit on the RHEL6 x86_64bit. I could install the DBCA but while coming to the netca silent mode installation. UnsatisfiedLinkError,安装ORACLE10G时,提示Exceptionjava.lang. ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.

Unsatisfiedlinkerror exception loading native library njni10 - was

MAP_SHLIB, 76, 3629056)
................................................. ERR#12 ENOMEM
[19963] close(76) ................................................................................................................................... = 0
[19963] write(1, "U n s a t i s f i e d L i n k E ".., 61) ............................................................................... = 61
:

The ENOMEM error indicates that the tool failing when is trying to mmap (allocate memory for) the libnjni10.sl library.

From the mmap line we see that DBCA/NETCA fails to allocate 20 megabytes of virtual memory when loading the libnjni10.sl library.


Solution
To implement the solution, please execute the following steps:


1. Check if all kernel parameters are set correctly and all OS packages and Patches are installed (see Note 169706.1)

2. Verify if the environment is set correctly:

    #echo $PATH

    #echo $ORACLE_HOME

    #echo $LD_LIBRARY_PATH

    #echo $SHLIB_PATH

if the above env variables do not point to the correct Oracle Home, please change them according:

    # export ORACLE_HOME=<path to your Oracle Home directory>

    #export PATH=$ORACLE_HOME/bin:$PATH

    #export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH

    #export SHLIB_PATH=$ORACLE_HOME/lib32:$SHLIB_PATH

3. Check whether any errors occur during a 'relink all' (and resolve them)

4. Collect truss or tusc output by running the following command (or similar):

           truss -faeio /tmp/dbca_output.log $ORACLE_HOME/bin/dbca

5. Check the truss/tusc output and, for the library reported in the UnsatisfiedLinkError exception, identify a line like the following:

[19963] stat("/oracle/product/10.2.0/lib32/libnjni10.sl", 0x77ff4440)................................................................ = 0
[19963] open("/oracle/product/10.2.0/lib32/libnjni10.sl", O_RDONLY, 040230)............................................ = 76
:
[19963] read(76, "80\0\0\v\0\0\004\0\0\0\0", 12)..................................................................................... = 12
[19963] mmap(NULL, 20135936, PROT_READ Terms of Use