You are not logged in.

#1 2010-04-21 15:42:51

cyber punk
Member
From: São Paulo - Brazil
Registered: 2008-01-02
Posts: 5

Oracle dbca error njni10

Hello,

I have this problem, Oracle 10g server is installed

but when I try to create a database with dbca, this error happens

Oracle Server 10g 64bit and Arch Linux 64bit

I  have also packages   installed bin32 and  lib32

[oracle@cyber-lnb ~]$ dbca
UnsatisfiedLinkError exception loading native library: njni10
Exception in thread "main" java.lang.UnsatisfiedLinkError: get
        at oracle.net.common.NetGetEnv.get(Native Method)
        at oracle.net.config.Config.getNetDir(Unknown Source)
        at oracle.net.config.Config.initConfig(Unknown Source)
        at oracle.net.config.Config.<init>(Unknown Source)
        at oracle.sysman.assistants.util.NetworkUtils.<init>(NetworkUtils.java:222)
        at oracle.sysman.assistants.util.step.StepContext.<init>(StepContext.java:255)
        at oracle.sysman.assistants.dbca.backend.Host.<init>(Host.java:682)
        at oracle.sysman.assistants.dbca.ui.UIHost.<init>(UIHost.java:205)
        at oracle.sysman.assistants.dbca.ui.InteractiveHost.<init>(InteractiveHost.java:54)
        at oracle.sysman.assistants.dbca.Dbca.getHost(Dbca.java:160)
        at oracle.sysman.assistants.dbca.Dbca.execute(Dbca.java:94)
        at oracle.sysman.assistants.dbca.Dbca.main(Dbca.java:180)
[oracle@cyber-lnb ~]$ cat .bash_profile 
. $HOME/.bashrc
export ORACLE_BASE=/home/oracle/oracle10g
export ORACLE_HOME=$ORACLE_BASE/orateste/1020
export ORACLE_SID=ORATESTE
export ORACLE_INVENTORY=/home/oracle/oracle10g/inventory
export ORACLE_BASE ORACLE_SID ORACLE_HOME
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH

export EDITOR=nano
export VISUAL=nano
[oracle@cyber-lnb ~]$
[oracle@cyber-lnb ~]$ locate -i libnj
/home/oracle/oracle10g/orateste/1020/lib/libnjni10.so
/home/oracle/oracle10g/orateste/1020/lib/libnjssl10.so
/home/oracle/oracle10g/orateste/1020/lib32/libnjni10.so
/home/oracle/oracle10g/orateste/1020/lib32/libnjssl10.so

how to fix this?

Offline

#2 2010-04-22 01:02:34

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: Oracle dbca error njni10

Try doing:

1. cd into $ORACLE_HOME/bin

2. type: ln -s $ORACLE_HOME/lib/libnjni10.dylib $ORACLE_HOME/lib/libnjni10 , then ENTER

3.  type: ln -s $ORACLE_HOME/lib/libclntsh.dylib $ORACLE_HOME/lib/libclntsh.dylib.10.1

4. go into $ORACLE_HOME/bin and start ./netca

Offline

#3 2010-04-22 15:32:07

cyber punk
Member
From: São Paulo - Brazil
Registered: 2008-01-02
Posts: 5

Re: Oracle dbca error njni10

thanks ,

Same error, after create links

is a very common error, in other distributions, but each one has a way to fix, is usually a missing package, but do not know what

Offline

#4 2010-04-25 13:11:34

dr_te_z
Member
From: Zoetermeer, the Netherlands
Registered: 2006-12-06
Posts: 154

Re: Oracle dbca error njni10

It is java trying to execute native code. Is your JVM 32 or 64 bit? If 64 try a 32 bits version and vice versa.


Somewhere between "too small" and "too large" lies the size that is just right.
- Scott Hayes

Offline

Board footer

Powered by FluxBB