Unsatisfiedlinkerror exception loading native library oranjni10

unsatisfiedlinkerror exception loading native library oranjni10

D:\oracle\product\10.2.0\db_1\network\install\netca_typ.rsp UnsatisfiedLinkError exception loading native library: oranjni10. I'm trying to install Oracle 10G DB on my Windows XP box. When netca.bat is initiated I get this error: java.lang.UnsatisfiedLinkError. UnsatisfiedLinkError exception loading native library: njni11 java.lang. jniGetOracleHome(Native Method) at oracle.net.common.

watch the video

How to fix \

Congratulate: Unsatisfiedlinkerror exception loading native library oranjni10

Unsatisfiedlinkerror exception loading native library oranjni10
REGISTRATION-ACTIVATION ERROR 3DMAX
Zverusb error 22 no such partition
FIASCO ERROR FIASCO SUBIMAGE DATA LENGTH MISMATCH
Error #132 0x85100084 fatal exception

Unsatisfiedlinkerror exception loading native library oranjni10 - are also

s_nameForDBAGrp=<Value Required>

s_nameForOPERGrp="dba"                                         #SYSPASSWORD = "password"

SYSTEMPASSWORD = "rman"                                      

Oracle® Enterprise Manager

Other Issues

This section addresses those issues that cannot be classified under a component or product.

Custom Date Format Does Not Support NLS Native Date Format

When you set a report's time period, the custom date format doesn't support the NLS native date format. So, it fails with invalid date format error because it is not UTF-8 encoded. The workaround is to use English as the browser language only when you set a time period.

(Bug 4922931)

Error While Processing Purge Policy

An error is generated in the Grid control TAB Management services and Repository everyday at 12.00 AM.

To resolve this issue, login to SQL as the repository owner and execute the following command:

SQL> exec em_purge.disable_purge_policy('MGMT_POLICY_ERRORS') ; commit ;

(Bug 4770372)

Performance and Usage Graph Missing

After an upgrade, the performance and usage graph on the Service home page will be missing. You will need to go to Monitoring Configuration, then to Performance Metrics to add the metric and select the chart to be displayed on the home page. You can follow similar steps for Usage Metrics.

(Bug 4655690)

Links Under Web Application Tasks Are Disabled

A new Enterprise Manager Oracle Application Server stack is installed during a Management Service upgrade, and corresponding targets are deleted and recreated (e.g., from "EnterpriseManager0" to "EnterpriseManager1", etc.). The "EM Website" Web Application does not detect this change during an upgrade, so it no longer has the new Application Server as one of its key components, and disables the licensed Application Server Diagnostic Pack for "EM Website."

The workaround is to perform the following:

  1. Identify the system associated with the "EM Website" Web Application.

  2. Add the new Application Server target as a member of this system.

  3. Mark the new Application Server target as a key component of the "EM Website" Web Application.

(Bug 4652602)

Issues with Multibyte Character Names for Web Applications

Multibyte webapp name does not display correctly in Root Cause Analysis page. All three fields in RCA page "Step", "Target Name" and "Message" will display multibyte string as garbage characters and square boxes.

(Bug 4614984)

Interactive Transaction Trace and Request Performance Functionalities Are Not Supported

The Interactive Transaction Trace and Request Performance functionalities are not supported for Web Applications running on Oracle Application Server release 10.1.3.0. A fix for this problem will be available with Oracle Application Server release 10.1.3.1. and GC 10.2.0.3.

(Bug 4999766, 5150067)

Null Pointer Exception Occurs on Clicking a Patch on the Policy Page

To workaround this bug, perform the following steps:

  • After Refresh From Metalink job is run(scheduled or manually), refresh the browser if it was active before the job was started.

  • After Refresh From Metalink job is run(scheduled or manually), users can re-login to Enterprise manager if they were logged in before the job started.

  • After Refresh From Metalink job is run(scheduled or manually), users can go to CPF main page by clicking on "Critical Patch Advisories for Oracle Homes" link on Enterprise Manager Home page. From CPF main page, users can click on "Refresh Data" button provided on top right side of the screen. This will restore the CPF session data.

(Bug 5174330)

Online Backup Job for 9.0.4 Oracle Application Server Targets Fails

When you are backing up iAS mid-tier installation types of 9.0.4.x versions, you may encounter the following error:

Could not copy file /scratch/904/Apache/Apache/conf/osso/osso.conf to /scratch/904/conf1/2005-08-09_06-52/Apache/Apache/conf/osso/: No such file or directory.

To resolve this, follow the steps described in the iAS Release Notes and retry the backup process.

(Bug 4517767)

SGA Functionality Not Supported

SGA Functionality is not supported in 10.2.0.2.0 GC.

(Bug 5012484)

UNIX_GROUP_NAME=<Value Unspecified>

ORACLE_HOME="/oracle/app/product/10.2.0"                      

Getting below error while installing oracle 11g/12c database using DBCA. 

UnsatisfiedLinkError exception loading native library: njni11
java.lang.UnsatisfiedLinkError: /home/u01/app/oracle/product/11.2.0/db_1/lib/libnjni11.so: libclntsh.so.11.1: cannot open shared object file: No such file or directory
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:269)
at oracle.sysman.assistants.util.step.StepContext.<init>(StepContext.java:317)
at oracle.sysman.assistants.dbca.backend.Host.<init>(Host.java:778)
at oracle.sysman.assistants.dbca.ui.UIHost.<init>(UIHost.java:257)
at oracle.sysman.assistants.dbca.ui.InteractiveHost.<init>(InteractiveHost.java:54)
at oracle.sysman.assistants.dbca.Dbca.getHost(Dbca.java:164)
at oracle.sysman.assistants.dbca.Dbca.execute(Dbca.java:112)
at oracle.sysman.assistants.dbca.Dbca.main(Dbca.java:184)

You will be able to install oracle binaries successfully but during during SID creation you will get the above error.

Reason:

The prerequisites have not been met.

Resolution:

  1. Check the proper oracle binary version. Oracle binaries should be downloaded for proper OS versions.
  2. sqlplus: error while loading shared libraries: libclntsh.so.11.1″ : The prerequisites have not been met. Make sure the “gcc” package has been installed.

I will suggest you to download the suggested oracle rpm packages and start the installation again.

List of supported Oracle 11G RPM packages:

rpm -Uvh binutils-2*x86_64*
rpm -Uvh glibc-2*x86_64* nss-softokn-freebl-3*x86_64*
rpm -Uvh glibc-2*i686* nss-softokn-freebl-3*i686*
rpm -Uvh compat-libstdc++-33*x86_64*
rpm -Uvh glibc-common-2*x86_64*
rpm -Uvh glibc-devel-2*x86_64*
rpm -Uvh glibc-devel-2*i686*
rpm -Uvh glibc-headers-2*x86_64*
rpm -Uvh elfutils-libelf-0*x86_64*
rpm -Uvh elfutils-libelf-devel-0*x86_64*
rpm -Uvh gcc-4*x86_64*
rpm -Uvh gcc-c++-4*x86_64*
rpm -Uvh ksh-*x86_64*
rpm -Uvh libaio-0*x86_64*
rpm -Uvh libaio-devel-0*x86_64*
rpm -Uvh libaio-0*i686*
rpm -Uvh libaio-devel-0*i686*
rpm -Uvh libgcc-4*x86_64*
rpm -Uvh libgcc-4*i686*
rpm -Uvh libstdc++-4*x86_64*
rpm -Uvh libstdc++-4*i686*
rpm -Uvh libstdc++-devel-4*x86_64*
rpm -Uvh make-3.81*x86_64*
rpm -Uvh numactl-devel-2*x86_64*
rpm -Uvh sysstat-9*x86_64*
rpm -Uvh compat-libstdc++-33*i686*
rpm -Uvh compat-libcap*

List of supported Oracle 12C RPM packages:

yum install binutils -y
yum install compat-libcap1 -y
yum install compat-libstdc++-33 -y
yum install compat-libstdc++-33.i686 -y
yum install gcc -y
yum install gcc-c++ -y
yum install glibc -y
yum install glibc.i686 -y
yum install glibc-devel -y
yum install glibc-devel.i686 -y
yum install ksh -y
yum install libgcc -y
yum install libgcc.i686 -y
yum install libstdc++ -y
yum install libstdc++.i686 -y
yum install libstdc++-devel -y
yum install libstdc++-devel.i686 -y
yum install libaio -y
yum install libaio.i686 -y
yum install libaio-devel -y
yum install libaio-devel.i686 -y
yum install libXext -y
yum install libXext.i686 -y
yum install libXtst -y
yum install libXtst.i686 -y
yum install libX11 -y
yum install libX11.i686 -y
yum install libXau -y
yum install libXau.i686 -y
yum install libxcb -y
yum install libxcb.i686 -y
yum install libXi -y
yum install libXi.i686 -y
yum install make -y
yum install sysstat -y
yum install unixODBC -y
yum install unixODBC-devel -y

Related

s_nameForOPERGrp=<Value Required>

n_configurationOption=3                                       unsatisfiedlinkerror exception loading native library oranjni10

在Oracle Linux 6.6上安装Oracle 10gR2

查看硬體配置

# df -h

Filesystem   unsatisfiedlinkerror exception loading native library oranjni10  Size  Used Avail Use% Mounted on

/dev/sda2        24G  5.2G   18G  23% /

tmpfs           3.8G   76K  3.8G   1% /dev/shm

/dev/sda1       477M   63M  385M  14% /boot

/dev/sda6        31G   48M   29G   1% /oracle

/dev/sdb1      1008G  200M  957G   1% /u1

/dev/sr0        3.6G  3.6G     0 100% /media/OL6.6 x86_64 Disc 1 20141018

# more /etc/redhat-release

Red Hat Enterprise Linux Server release 6.6 (Santiago)

[root@dbrebk ~]# more /etc/oracle-release

Oracle Linux Server release 6.6

# uname -a

Linux dbrebk 3.8.13-44.1.1.el6uek.x86_64 #2 SMP Wed Sep 10 06:10:25 PDT 2014 x86_64 x86_64 x86_64 GNU/Linux

top - 08:14:18 up 1 day, 15:40,  2 users,  load average: 0.00, 0.01, 0.05

Tasks: 174 total,   1 running, 173 sleeping, unsatisfiedlinkerror exception loading native library oranjni10,   0 stopped,   0 zombie

Cpu(s):  0.1%us,  0.1%sy,  0.0%ni, 99.8%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st

Mem:   7914284k total,  1567316k used,  6346968k free,   183432k buffers

Swap:  4095992k total,        0k used,  4095992k free,   943140k cached

# locale

LANG=en_US.UTF-8

LC_CTYPE="en_US.UTF-8"

LC_NUMERIC="en_US.UTF-8"

LC_TIME="en_US.UTF-8"

LC_COLLATE="en_US.UTF-8"

LC_MONETARY="en_US.UTF-8"

LC_MESSAGES="en_US.UTF-8"

LC_PAPER="en_US.UTF-8"

LC_NAME="en_US.UTF-8"

LC_ADDRESS="en_US.UTF-8"

LC_TELEPHONE="en_US.UTF-8"

LC_MEASUREMENT="en_US.UTF-8"

LC_IDENTIFICATION="en_US.UTF-8"

LC_ALL=

# gcc -v

Using built-in specs.

Target: x86_64-redhat-linux

Configured with: ./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux

Thread model: posix

gcc version 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC) 

# useradd -g root -G root dba

# passwd dba

# vi /etc/passwd

dba:x:0:0::/home/dba:/bin/bash

設置主機IP

# more /etc/sysconfig/network-scripts/ifcfg-eth0

設置主機名

# more /etc/hosts

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4

::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

172.18.60.155 rman rman.pyzs.com.cn

# more /etc/sysconfig/network

NETWORKING=yes

HOSTNAME=rman.pyzs.com.cn

GATEWAY=172.18.60.254

# hostname rman.pyzs.com.cn

禁用FIREWALL关闭防火墙

service iptables stop

禁用SELINUX

修改/etc/selinux/config

将SELINUX=enforced 修改为SELINUX=disabled

重启OS

# umount /dev/cdrom

# init 6

=========================================================================================

配置yum本地源

将光盘mount至/mnt,再通过yum设置/mnt为本地源:

# mount /dev/cdrom /mnt; mariliis aasmae error.mp3 /mnt/Server

# cd /etc/yum.repos.d/

# mv public-yum-ol6.repo public-yum-ol6.repo.bak

# vi public-yum-ol6.repo

[ol6_u6]

name=Oracle Linux 5.8 64bit DVD

baseurl=file:///mnt/Server

gpgcheck=0

enabled=1

# yum search oracle

# yum install oracle-rdbms-server-11gR2-preinstall

# yum install glibc.i686

# yum install libXp.i686

# yum install libXt.i686

# yum install libXtst.i686

# yum install glibc-devel.i686 

# yum install compat-libstdc++-296.i686

# yum install compat-libstdc++-33.i686 

# yum install libstdc++.i686  

# yum install libstdc++-devel.i686

# yum install compat-gcc-34.x86_64

安装完oracle-rdbms-server-11gR2-preinstall 后,已经拥有oracle用户。

# id oracle

uid=54321(oracle) gid=54321(oinstall) groups=54321(oinstall),54322(dba)

=========================================================================================================================================

安装rlwrap

==========

# cd /oracle/soft

# wget http://dl.fedoraproject.org/pub/epel/6/x86_64/rlwrap-0.42-1.el6.x86_64.rpm

# rpm -ivh rlwrap-0.42-1.el6.x86_64.rpm

建立Oracle Base 的目錄 

----------------------

下列的步驟建立一個新的目錄,用於存放Oracle的安裝軟體. 

# mkdir -p /oracle/app

# chown -R oracle:oinstall /oracle

# chmod -R 775 /oracle

建立資料庫檔案的目錄

建立一個新的目錄,用於存放資料庫的檔案: 

# mkdir -p /u1/database

# chown -R oracle:oinstall /u1

# chmod 775 /u1

設定oracle用戶的環境變數 

修改oracle用戶的.bash_profile,設定相關的環境變數 e:

登入oracle 用戶: 

# su - oracle

# 將oracle用戶的環境變數值設定在 ~oracle/.bash_profile的檔案: 

#  vi $HOME/.bash_profile

ORACLE_BASE=/oracle/app

ORACLE_HOME=$ORACLE_BASE/product/10.2.0

ORACLE_SID=orcl

TNS_ADMIN=$ORACLE_HOME/network/admin

LD_LIBRARY_PATH=$ORACLE_HOME/lib

export NLS_LANG="AMERICAN_AMERICA.AL32UTF8"

PATH=$PATH:$ORACLE_HOME/bin:$HOME/bin

export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH PATH

alias sqlplus='rlwrap sqlplus'

alias rman='rlwrap rman'

安裝Oracle Database 10g Release 2 軟體 

======================================

(0)、準備 Oracle軟體:

---------------------

# mkdir -p /oracle/soft/oracle10g

# cd /oracle/soft/oracle10g

# scp -rp dba@172.18.60.154:/oracle/soft/10201_database_linux_x86_64.cpio .

# scp -rp dba@172.18.60.154:/oracle/soft/p8202632_10205_Linux-x86-64.zip .

(1)、執行下列的步驟安裝Oracle軟體: 

----------------------------------

# su - oracle

$ cd /oracle/soft/oracle10g

解壓縮下載的檔案: 

$ gunzip 10201_database_linux_x86_64.cpio.gz

拆開10201_database_linux_x86_64.cpio

$ cpio -idmv <  10201_database_linux_x86_64.cpio 

修改静默安装的参数文件

$ cd /oracle/soft/oracle10g/database/response/

$ cp standard.rsp standard_softonly.rsp

$ vi standard_softonly.rsp

$ sdiff -s standard_softonly.rsp standard.rsp

UNIX_GROUP_NAME="oinstall"                                     ORACLE_HOME_NAME=<Value Required>

$ chmod 700 patchset_softonly.rsp

通过response文件运行OUI

/oracle/soft/oracle10g/Disk1/response/patchset_softonly.rsp 必须是绝对路径,含文件名;

安装命令之后必須加上两个参数(MYORACLESUPPORT_USERNAME=pyzs@oracle.com DECLINE_SECURITY_UPDATES=true)

-noconfig 表示不运行配置助手只装软件

-force 表示強制安裝?

$ cd /oracle/soft/oracle10g/Disk1/

$ ./runInstaller -silent -noconfig -responseFile /oracle/soft/oracle10g/Disk1/response/patchset_softonly.rsp Socket reset error DECLINE_SECURITY_UPDATES=true -ignoreSysPrereqs -force

結果如下:

Setup successful

End of install phases.(Thursday, January 15, 2015 1:29:34 PM CST)

Starting to execute configuration assistants

The following configuration assistants have not been run. This can happen for following reasons - either root.sh is to be run before config or Oracle Universal Installer was invoked with the -noConfig option.

--------------------------------------

The "/oracle/app/product/10.2.0/cfgtoollogs/configToolFailedCommands" script contains all commands that failed, were skipped or were cancelled. This file may be used to run these configuration assistants outside of OUI. Note that you may have to update this script with passwords (if any) before executing the same.

The "/oracle/app/product/10.2.0/cfgtoollogs/configToolAllCommands" script contains all commands to be executed by the configuration assistants. This file may be used to run the configuration assistants outside of OUI. Note that you may have to update this script with passwords (if any) before executing the same.

--------------------------------------

WARNING:A new inventory has been created in this session. However, it has not yet been registered as the central inventory of this system.

To register the new inventory please run the script '/oracle/oraInventory/orainstRoot.sh' with root privileges. 

If you do not register the inventory, you may not be able to update or patch the products you installed.

The following configuration scripts need to be executed as the "root" user.

#!/bin/sh

#Root script to run

/oracle/oraInventory/orainstRoot.sh

/oracle/app/product/10.2.0/root.sh

To execute the configuration scripts:

    1. Open a terminal window

    2. Log in as "root"

    3. Run the scripts

The installation of Oracle Database 10g Release 2 Patch Set 4 was successful.

Please check '/oracle/oraInventory/logs/silentInstall2015-01-15_01-25-37PM.log' for more details.

$ su - root

# sh /oracle/oraInventory/orainstRoot.sh

Changing permissions of /oracle/oraInventory to 770.

Changing groupname of /oracle/oraInventory to oinstall.

The execution of the script is complete

# sh /oracle/app/product/10.2.0/root.sh

Running Oracle 10g root.sh script.

The following environment variables are set as:

    ORACLE_OWNER= oracle

    ORACLE_HOME=  /oracle/app/product/10.2.0

Enter the full pathname of the local bin directory: [/usr/local/bin]: 

The file "dbhome" already exists in unsatisfiedlinkerror exception loading native library oranjni10.  Overwrite it? (y/n) 

[n]: y

   Copying dbhome to /usr/local/bin .

The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n) 

[n]: y

   Copying oraenv to /usr/local/bin .

The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n) 

[n]: y

   Copying coraenv to /usr/local/bin .

Entries will be added to the /etc/oratab file as needed by

Database Configuration Assistant when a database is created

Finished running generic part of root.sh script.

Now product-specific root actions will be performed.

===================================================================================================================

建立 orcl資料庫 

===============

配置response文件

# chown -R oracle:oinstall /u1

# su - oracle

$ mkdir -p /u1/database/response

$ mkdir -p /u1/database/oradata

$ cd /u1/database/response

$ scp -rp dba@172.18.60.152:/u1/database/response/*.* .

$ cp dbca.rsp dbca_orcl.rsp

$ vi dbca_orcl.rsp

$ sdiff -s dbca_orcl.rsp dbca.rsp

GDBNAME = "orcl"                                               SID = "orcl10g"

SYSPASSWORD = "rman"                                           grep"not installed"4、 创建用户 chattr-i/etc/passwd/etc/shadow groupadd –g 504 oinstall groupadd –g 505 dba useradd –u 504 –g oinstall –G dba oracle passwd oracle chattr +i /etc/passwd/etc/shadow 5、 配置系统参数 [root@localhost home]# vi /etc/sysctl.conf# for oracle kernel.shmall = 8388608 kernel.shmmax = 34359738368 kernel.shmmni = 4096 kernel.sem = 25032000100128 net.ipv4.ip_local_port_range = 900065500 net.core.rmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048586 fs.file-max = 6815744[root@localhost home]# sysctl -p[root@localhost home]# vi /etc/security/limits.conf oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 oracle soft stack 10240[root@localhost home]# vi /etc/pam.d/login session required pam_limits.so [root@localhost home]# vi /etc/profileif[$USER = "oracle"]; thenif[$SHELL = "/bin/ksh"]; thenulimit-p16384ulimit-n65536elseulimit-u16384-n65536fifi6、 创建目录 [root@localhost home]# mkdir –p /home/U01[root@localhost home]# ln –s /home/U01 /U01[root@localhost home]# mkdir -p /U01/app/oracle/[root@localhost home]# chown -R oracle:oinstall /U01/[root@localhost home]# chmod -R 775 /U01/7、 切换oracle用户配置环境变量 [oracle@bf_test_qd_119 ~]$ vi .bash_profile PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin export PATH exportORACLE_BASE=/U01/app/oracle exportORACLE_HOME=$ORACLE_BASE/product/11.2.0.2/db_1 exportORACLE_SID=ora11g exportLD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/lib32:$LD_LIBRARY_PATHexportPATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$ORACLE_HOME/jdk/bin:$PATHexportLANG="en_US"exportNLS_LANG=AMERICAN_AMERICA.ZHS16GBK exportNLS_DATE_FORMAT="YYYY-MM-DD HH24:MI:SS"#export DISPLAY=172.0.0.172:0.0 ###如果是远程安装需要指定本机IP的DISPLAY 二、 搭建主库 1、 拷贝安装包 [oracle@ld_s_172 home]$ ll -thr p10098816_112020_Linux-x86-64_*-rw-r--r--1 root root 1.3G Apr 1111:39 p10098816_112020_Linux-x86-64_1of7.zip -rw-r--r--1 root root 1002M Apr 1111:39 p10098816_112020_Linux-x86-64_2of7.zip 2、 解压安装包 [oracle@bf_test_qd_119 U01]$ unzip p10098816_112020_Linux-x86-64_1of7.zip [oracle@bf_test_qd_119 U01]$ unzip p10098816_112020_Linux-x86-64_2of7.zip 3、 解压生成/home/database目录 [oracle@ld_s_172 database]$ ll -thr drwxr-xr-x 4 oracle oinstall 4.0K Nov 162010install drwxr-xr-x 12 oracle oinstall 4.0K Nov 162010 doc drwxr-xr-x 2 oracle oinstall 28 Nov 162010 sshsetup -rwxr-xr-x1 oracle oinstall 3.2K Nov 162010 runInstaller drwxr-xr-x 2 oracle oinstall 33 Nov 162010 rpm drwxr-xr-x 14 oracle oinstall 4.0K Nov 162010 stage -rw-r--r--1 oracle oinstall 5.3K Nov 162010 welcome.html -rwxr-xr-x1 oracle oinstall 27K Nov 162010 readme.html drwxr-xr-x 2 oracle oinstall 86 Apr 1517:04 response 4、 修改安装配置文件 [oracle@bf_test_qd_119 database]$cd/U01/database/response/[oracle@bf_test_qd_119 database]$cp db_install.rsp db_install_ora11g.rsp [oracle@bf_test_qd_119 database]$vi db_install_bfodb.rsp oracle.install.option=INSTALL_DB_SWONLY ORACLE_HOSTNAME= 10.0.0.1_hostname UNIX_GROUP_NAME=oinstall INVENTORY_LOCATION=/U01/app/oracle/oraInventory ORACLE_HOME=/U01/app/oracle/product/11.2.0.2/db_1 ORACLE_BASE=/U01/app/oracle oracle.install.db.DBA_GROUP=dba oracle.install.db.OPER_GROUP=oinstall oracle.install.db.config.starterdb.characterSet=ZHS16GBK DECLINE_SECURITY_UPDATES=true5、 安装oracle软件 [oracle@bf_test_qd_119 database]$ ./runInstaller -silent-force-noconfig-responseFile/home/database/response/db_install_ora11g.rsp Starting Oracle Universal Installer.   Checking Temp space: must unsatisfiedlinkerror exception loading native library oranjni10 greater than 120 MB. Actual 16088 MB Passed Checking swap space: must be greater than 150 MB. Actual 16386 MB Passed Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-03-20_05-19-18PM. Please wait .[oracle@bf_test_qd_119 database]$ [WARNING][INS-32055] The Central Inventory is located in the Oracle base. CAUSE: The Central Inventory is located in the Oracle base. ACTION: Oracle recommends placing this Central Inventory in a location outside the Oracle base directory. [WARNING][INS-13014] Target environment do not meet some optional requirements, unsatisfiedlinkerror exception loading native library oranjni10. CAUSE: Some of the optional prerequisites are not met. See logs for details. /tmp/OraInstall2012-03-20_05-19-18PM/installActions2012-03-20_05-19-18PM.log ACTION: Identify the list of failed prerequisite checks from the log: /tmp/OraInstall2012-03-20_05-19-18PM/installActions2012-03-20_05-19-18PM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually, unsatisfiedlinkerror exception loading native library oranjni10. You can find the log of this install session at: /U01/app/oracle/oraInventory/logs/installActions2012-03-20_05-19-18PM.log The installation of Oracle Database 11g was successful. Please check '/U01/app/oracle/oraInventory/logs/silentInstall2012-03-20_05-19-18PM.log'formore details.   As a root user, execute the following script(s): 1, unsatisfiedlinkerror exception loading native library oranjni10. /U01/app/oracle/oraInventory/orainstRoot.sh 2. /U01/app/oracle/product/11.2.3/db_1/root.sh     Successfully Setup Software. 使用root [root@bf_test_qd_119 ~]# /U01/app/oracle/oraInventory/orainstRoot.sh Changing permissions of /U01/app/oracle/oraInventory. Adding read,write permissions for group. Removing read,write,execute permissions for world.   Changing groupname of /U01/app/oracle/oraInventory to oinstall, unsatisfiedlinkerror exception loading native library oranjni10. The execution of the script is complete. [root@bf_test_qd_119 ~]# /U01/app/oracle/product/11.2.3/db_1/root.sh Check /U01/app/oracle/product/11.2.3/db_1/install/root_bf_test_qd_119.167.137.13_cnc_2012-03-20_17-22-51.log for the output of root script 6、 配置监听 [oracle@bf_test_qd_119 response]$ $ORACLE_HOME/bin/netca -silent-responsefile/home/database/response/netca.rsp   Parsing command line arguments: Parameter "silent" = true Parameter "responsefile" = /U01/database/response/netca.rsp Done parsing command line arguments. Oracle Net Services Configuration: Profile configuration complete. Oracle Net Listener Startup: Running Listener Control: /U01/app/oracle/product/11.2.3/db_1/bin/lsnrctl start LISTENER Listener Control complete, unsatisfiedlinkerror exception loading native library oranjni10. Listener started successfully. Listener configuration complete. Oracle Net Services unsatisfiedlinkerror exception loading native library oranjni10 successful. The exit code is 0   注:配置监听时可能出现报错 [oracle@ld_s_172 ~]$ $ORACLE_HOME/bin/netca -silent-responsefile/home/database/response/netca.rsp UnsatisfiedLinkError exception loading native library: njni11 java.lang.UnsatisfiedLinkError: /home/U01/app/oracle/product/11.2.0.2/db_1/lib/libnjni11.so: /U01/app/oracle/product/11.2.0.2/db_1/lib/libclntsh.so.11.1: file too short java.lang.UnsatisfiedLinkError: jniGetOracleHome at oracle.net.common.NetGetEnv.jniGetOracleHome(Native Method) at oracle.net.common.NetGetEnv.getOracleHome(Unknown Source) at oracle.net.ca.NetCALogger.getOracleHome(NetCALogger.java:230) at oracle.net.ca.NetCALogger.initOracleParameters(NetCALogger.java:215) at oracle.net.ca.NetCALogger.initLogger(NetCALogger.java:130) at oracle.net.ca.NetCA.main(NetCA.java:427) 解决: [oracle@ld_s_172 ~]$ $ORACLE_HOME/bin/relink all writing relink log to: /U01/app/oracle/product/11.2.0.2/db_1/install/relink.log /bin/sh: /usr/bin/gcc: Permission denied 添加权限 chmod777/usr/bin/makechmod777/usr/bin/gcc[oracle@ld_s_172 ~]$ $ORACLE_HOME/bin/netca -silent-responsefile/home/database/response/netca.rsp Parsing command line arguments: Parameter "silent" = true Parameter "responsefile" = /home/database/response/netca.rsp Done parsing command line arguments, unsatisfiedlinkerror exception loading native library oranjni10. Oracle Net Services Configuration: Profile configuration complete. Oracle Net Listener Startup: Running Listener Control: /U01/app/oracle/product/11.2.0.2/db_1/bin/lsnrctl start LISTENER Listener Control complete. Listener started successfully. Listener configuration complete. Oracle Net Services configuration successful. The exit code is 07、 创建数据库 [oracle@bf_test_qd_119 response]$ vi dbca.rsp GDBNAME = "ora11g" SID = "ora11g" CHARACTERSET = "ZHS16GBK" TOTALMEMORY = "2048" SOURCEDB = 17028 error code response]$ dbca -silent-responseFile dbca.rsp Enter SYS user password: oracle Enter SYSTEM user password: oracle Copying database files 1%complete3%complete11%complete18%complete37%complete Creating and starting Oracle instance 40%complete45%complete50%complete55%complete56%complete60%complete62%complete Completing Database Creation 66%complete70%complete73%complete85%complete96%complete100%complete8、 进程检查 检查ps –ef GDBNAME = "orcl10g.us.oracle.com"

SID = "orcl"                                                  

Getting below error while installing oracle 11g/12c database using DBCA. 

UnsatisfiedLinkError exception loading native library: njni11
java.lang.UnsatisfiedLinkError: /home/u01/app/oracle/product/11.2.0/db_1/lib/libnjni11.so: libclntsh.so.11.1: cannot open shared object file: No such file or directory
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:269)
at oracle.sysman.assistants.util.step.StepContext.<init>(StepContext.java:317)
at oracle.sysman.assistants.dbca.backend.Host.<init>(Host.java:778)
at oracle.sysman.assistants.dbca.ui.UIHost.<init>(UIHost.java:257)
at oracle.sysman.assistants.dbca.ui.InteractiveHost.<init>(InteractiveHost.java:54)
at oracle.sysman.assistants.dbca.Dbca.getHost(Dbca.java:164)
at oracle.sysman.assistants.dbca.Dbca.execute(Dbca.java:112)
at oracle.sysman.assistants.dbca.Dbca.main(Dbca.java:184)

You will be able to install oracle binaries successfully but during during SID creation you will get the above error.

Reason:

The prerequisites have not been met.

Resolution:

  1. Check the proper oracle binary version. Oracle binaries should be downloaded for proper OS versions.
  2. sqlplus: error while loading shared libraries: libclntsh.so.11.1″ : The prerequisites have not been met. Make sure the “gcc” package has been installed.

I will suggest you to download the suggested oracle rpm packages and start the installation again.

List of supported Oracle 11G RPM packages:

rpm -Uvh binutils-2*x86_64*
rpm -Uvh glibc-2*x86_64* nss-softokn-freebl-3*x86_64*
rpm -Uvh glibc-2*i686* nss-softokn-freebl-3*i686*
rpm -Uvh compat-libstdc++-33*x86_64*
rpm -Uvh glibc-common-2*x86_64*
rpm -Uvh glibc-devel-2*x86_64*
rpm -Uvh glibc-devel-2*i686*
rpm -Uvh glibc-headers-2*x86_64*
rpm -Uvh elfutils-libelf-0*x86_64*
rpm -Uvh unsatisfiedlinkerror exception loading native library oranjni10 -Uvh gcc-4*x86_64*
rpm -Uvh gcc-c++-4*x86_64*
rpm -Uvh ksh-*x86_64*
rpm -Uvh libaio-0*x86_64*
rpm -Uvh libaio-devel-0*x86_64*
rpm -Uvh libaio-0*i686*
rpm -Uvh libaio-devel-0*i686*
rpm -Uvh libgcc-4*x86_64*
rpm -Uvh libgcc-4*i686*
rpm -Uvh libstdc++-4*x86_64*
rpm -Uvh libstdc++-4*i686*
rpm -Uvh libstdc++-devel-4*x86_64*
rpm -Uvh make-3.81*x86_64*
rpm -Uvh numactl-devel-2*x86_64*
rpm -Uvh sysstat-9*x86_64*
rpm -Uvh compat-libstdc++-33*i686*
rpm -Uvh compat-libcap*

List of supported Oracle 12C RPM packages:

yum install binutils -y
yum install compat-libcap1 -y
yum install compat-libstdc++-33 -y
yum install compat-libstdc++-33.i686 -y
yum install gcc -y
yum install gcc-c++ -y
yum install glibc -y
yum install glibc.i686 -y
yum install glibc-devel -y
yum install glibc-devel.i686 -y
yum install ksh -y
yum install libgcc -y
yum install libgcc.i686 -y
yum install libstdc++ -y
yum install libstdc++.i686 -y
yum install libstdc++-devel -y
yum install libstdc++-devel.i686 -y
yum install libaio -y
yum install libaio.i686 -y
yum install libaio-devel -y
yum install libaio-devel.i686 -y
yum install libXext -y
yum install libXext.i686 -y
yum install libXtst -y
yum install libXtst.i686 -y
yum install libX11 -y
yum install libX11.i686 -y
yum install libXau -y
yum install libXau.i686 -y
yum install libxcb -y
yum install libxcb.i686 -y
yum install libXi -y
yum install unsatisfiedlinkerror exception loading native library oranjni10 -y
yum install make -y
yum install sysstat -y
yum install unixODBC -y
yum install unixODBC-devel -y

Related

0 Comments

Leave a Comment