Error loading native library: libnjni9.so
December 21st, 2006
If you like me when running oracle on x86_64 get that damn :
Error loading native library: libnjni9.so
when launching dbca and you have googled the thousands five hundred useless answer. Just add the path of the libs $ORACLE_HOME/lib and $ORACLE_HOME/lib32 to your /etc/ld.so.conf (or /etc/ld.so.conf.d/oracle.conf on RH derivative) and rerun ldconfig.
If this is during install just jump to a console after you add this line before it launching dbca and run a ldconfig -v as root.
Damn oracle….
In my most recent install on a 1GB Slice @ SliceHost I added these lines to my .bash_profile for my ‘oracle’ user:
## Changes for Oracle
export ORACLE_HOME=/oracle/product/10.2.0/db_1
export ORACLE_BASE=
PATH=$ORACLE_HOME/bin:$PATH:/usr/local/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export ORACLE_SID=ORCL
mike.