Unsatisfiedlinkerror exception loading native error resolution when executing NETCA or DBCA

Source: Internet
Author: User
Tags locale
"Unsatisfiedlinkerror exception loading native library:njni10" error resolution when executing NETCA or DBCA

Platform: RHEL5.6 x86_64 + oracle10gr2

take NETCA as an example:$ $ORACLE _home/bin/netca/silent/responsefile $ORACLE _HOME/NETWORK/INSTALL/NETCA_TYP.RSP

When you operate on the x86_64 platform, you are encountering the following error:

Unsatisfiedlinkerror exception Loading native library:njni10
Java.lang.UnsatisfiedLinkError:jniGetOracleHome
At Oracle.net.common.NetGetEnv.jniGetOracleHome (Native method)
At Oracle.net.common.NetGetEnv.getOracleHome (Unknown Source)
At Oracle.net.ca.NetCA.main (Unknown Source)
Oracle Net Services configuration failed. The exit Code IS-1

It may be that the glibc and Glibc-devel packages are only installed in the 64bit version, and the 32bit version is not installed, then you need to install them manually:

# Cd/media/cdrom/redhat/rpms
# RPM-UVH glibc-*.i686.rpm glibc-devel-*.i386.rpm

After installing the 32bit glibc and Glibc-devel, relink Oracle again:

$ $ORACLE _home/bin/relink All

The last time you perform the NETCA, you should be able to SUSE10 install the oracle10g database (there are errors during the installation), when you use the DBCA command to create the database, the pop-up error is as follows:

$ 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. (Unknown Source)
At Oracle.sysman.assistants.util.NetworkUtils. (networkutils.java:222)
At Oracle.sysman.assistants.util.step.StepContext. (stepcontext.java:255)
At Oracle.sysman.assistants.dbca.backend.Host. (host.java:682)
At Oracle.sysman.assistants.dbca.ui.UIHost. (uihost.java:205)
At Oracle.sysman.assistants.dbca.ui.InteractiveHost. (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)

This type of error is typically caused by the GLIBC package, Suse10 need to install all of the following packages:

glibc-2.4-31.54
glibc-32bit-2.4-31.54
glibc-devel-2.4-31.54
glibc-i18ndata-2.4-31.54
glibc-info-2.4-31.54
glibc-devel-32bit-2.4-31.54
glibc-locale-2.4-31.54
glibc-locale-32bit-2.4-31.54

On the SUSE10 rpm-qa|grep glibc

glibc-2.4-31.54
glibc-locale-2.4-31.54
glibc-32bit-2.4-31.54
glibc-devel-2.4-31.54
glibc-i18ndata-2.4-31.54
glibc-locale-32bit-2.4-31.54

Found two fewer packages, downloaded to the package in http://demeter.uni-regensburg.de/SLED10SP2-x64/suse/x86_64/, and reinstalled the database after installation.

Note: The database needs to be completely deleted, Suse10 completely delete the oracle10g specific operations are as follows:

1. Run $ORACLE _home/bin/localconfig delete --->root user (skip this step)
2. RM-RF $ORACLE _base/*    --->oracle user under
3 rm-f/etc/orainst.loc/etc/oratab --->root user
4. rm-rf/etc/oracle --- >root User under
5. Rm-f/usr/local/bin/coraenv /usr/local/bin/dbhome /usr/local/bin/oraenv  - -->root User
6. Delete Oracle users and groups. (If you reinstall the database, users, groups, environment variables, system parameters, and so on configuration do not need to be removed)
Userdel Oracle
Groupdel dba
Groupdel oinstall

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.