ITPub博客

首页 > Linux操作系统 > Linux操作系统 > ORACLE 10G Client For Linux RedHat 6.2

ORACLE 10G Client For Linux RedHat 6.2

原创 Linux操作系统 作者:听海★蓝心梦 时间:2013-09-23 19:37:31 0 删除 编辑
今天应客户要求在redhat 6.2上安装oracle 10g客户端,因为oracle 10g只支持redhat 3和4,所以,安装前先修改了操作系统的版本信息:

[root1@local_db ~]$ vi /etc/system-release
Red Hat Enterprise Linux Server release 6.2 (Santiago)
改为:
Red Hat Enterprise Linux Server release 4.2 (Santiago)

打上所有ORACLE需要的补丁包:
binutils-2.15.92.0.2-10.EL4
compat-db-4.1.25-9
control-center-2.8.0-12
gcc-3.4.3-9.EL4
gcc-c++-3.4.3-9.EL4
glibc-2.3.4-2
glibc-common-2.3.4-2
gnome-libs-1.4.1.2.90-44.1
libstdc++-3.4.3-9.EL4
libstdc++-devel-3.4.3-9.EL4
make-3.80-5
pdksh-5.2.14-30
sysstat-5.0.5-1
xscreensaver-4.18-5.rhel4.2
libXau-devel-1.0.1-3.1.i386.rpm
libXp-1.0.0-8.1.el5.i386.rpm
libXp-devel-1.0.0-8.1.el5.i386.rpm
libXtst.i686

安装过程非常顺利,只是到最后一步的时候netca配置失败,忽略错误,正常退出安装程序。在操作系统执行netca时报错,但是执行netmgr却正常弹出窗口。netca报错信息如下:

第一个错误:
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

这是因为缺少包造成的,安装glibc和glibc-devel的32和64位包,重新relink,即可:
$ORACLE_HOME/bin/relink all
然后再次执行netca,即可。

第二个错误:
[oracle@local_db1 client]$ netca

Oracle Net Services Configuration:

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x1AEA83
Function=index+0x63
Library=/lib/libc.so.6

Current Java thread:
at oracle.net.common.NetGetEnv.getDNSDomain(Native Method)
at oracle.net.ca.ConfigureProfile.setDefaultProfileParams(Unknown Source)
at oracle.net.ca.InitialSetup.setupConfigObjects(Unknown Source)
at oracle.net.ca.InitialSetup.(Unknown Source)
at oracle.net.ca.NetCA.main(Unknown Source)

Dynamic libraries:
00110000-0012e000 r-xp 00000000 fd:00 1975788                            /lib/ld-2.12.so
0012e000-0012f000 r-xp 0001d000 fd:00 1975788                            /lib/ld-2.12.so
0012f000-00130000 rwxp 0001e000 fd:00 1975788                            /lib/ld-2.12.so
00138000-002c1000 r-xp 00000000 fd:00 1975796                            /lib/libc-2.12.so
002c1000-002c2000 ---p 00189000 fd:00 1975796                            /lib/libc-2.12.so
002c2000-002c4000 r-xp 00189000 fd:00 1975796                            /lib/libc-2.12.so
002c4000-002c5000 rwxp 0018b000 fd:00 1975796                            /lib/libc-2.12.so
08048000-08056000 r-xp 00000000 fd:00 4726801                            /opt/oracle/product/10.2.0/db_1/jdk/jre/bin/java
08056000-08059000 rwxp 0000d000 fd:00 4726801                            /opt/oracle/product/10.2.0/db_1/jdk/jre/bin/java
08a27000-08c54000 rwxp 00000000 00:00 0                                  [heap]
e7ef8000-e7f0d000 r-xp 00000000 fd:00 1975704                            /lib/libresolv-2.12.so
e7f0d000-e7f0e000 ---p 00015000 fd:00 1975704                            /lib/libresolv-2.12.so
e7f0e000-e7f0f000 r-xp 00015000 fd:00 1975704                            /lib/libresolv-2.12.so
e7f0f000-e7f10000 rwxp 00016000 fd:00 1975704                            /lib/libresolv-2.12.so
e7f40000-e811c000 r-xp 00000000 fd:00 4724868                            /opt/oracle/product/10.2.0/db_1/lib32/libnnz10.so
e811c000-e8142000 rwxp 001dc000 fd:00 4724868                            /opt/oracle/product/10.2.0/db_1/lib32/libnnz10.so
e8148000-e8e75000 r-xp 00000000 fd:00 4722255                            /opt/oracle/product/10.2.0/db_1/lib32/libclntsh.so.10.1
e8e75000-e8ed6000 rwxp 00d2c000 fd:00 4722255                            /opt/oracle/product/10.2.0/db_1/lib32/libclntsh.so.10.1
e8ef0000-e9018000 r-xs 00000000 fd:00 4724496                            /opt/oracle/product/10.2.0/db_1/lib/xmlparserv2.jar
e9018000-e914c000 r-xp 00000000 fd:00 1448115                            /usr/lib/libX11.so.6.3.0
e914c000-e9150000 rwxp 00133000 fd:00 1448115                            /usr/lib/libX11.so.6.3.0
e9150000-e9421000 r-xp 00000000 fd:00 4726730                            /opt/oracle/product/10.2.0/db_1/jdk/jre/lib/i386/libawt.so
e9421000-e9437000 rwxp 002d0000 fd:00 4726730                            /opt/oracle/product/10.2.0/db_1/jdk/jre/lib/i386/libawt.so
e9460000-e97fd000 r-xs 00000000 fd:00 4725053                            /opt/oracle/product/10.2.0/db_1/oui/jlib/OraInstaller.jar
e9960000-e996d000 r-xp 00000000 fd:00 4724954                            /opt/oracle/product/10.2.0/db_1/lib32/libldapjclnt10.so
e996d000-e996f000 rwxp 0000c000 fd:00 4724954                            /opt/oracle/product/10.2.0/db_1/lib32/libldapjclnt10.so
e9970000-e9974000 r-xp 00000000 fd:00 1975790                            /lib/libuuid.so.1.3.0
e9974000-e9975000 rwxp 00003000 fd:00 1975790                            /lib/libuuid.so.1.3.0
e9978000-e9995000 r-xp 00000000 fd:00 1446536                            /usr/lib/libxcb.so.1.1.0
e9995000-e9996000 rwxp 0001c000 fd:00 1446536                            /usr/lib/libxcb.so.1.1.0
e9998000-e99a6000 r-xp 00000000 fd:00 1464331                            /usr/lib/libXi.so.6.1.0
e99a6000-e99a7000 rwxp 0000d000 fd:00 1464331                            /usr/lib/libXi.so.6.1.0
e99a8000-e9a6f000 r-xs 00000000 fd:00 4590284                            /opt/oracle/product/10.2.0/db_1/jlib/srvm.jar
e9a70000-e9b25000 r-xs 00000000 fd:00 4590440                            /opt/oracle/product/10.2.0/db_1/jlib/oracle_ice.jar
e9b28000-e9ccf000 r-xs 00000000 fd:00 4590532                            /opt/oracle/product/10.2.0/db_1/jlib/jewt4.jar
e9cd0000-e9f55000 r-xs 00000000 fd:00 4590458                            /opt/oracle/product/10.2.0/db_1/jlib/ewt3.jar
e9f58000-e9fa1000 r-xs 00000000 fd:00 4590454                            /opt/oracle/product/10.2.0/db_1/jlib/netcfg.jar
e9fa8000-ea040000 r-xs 00000000 fd:00 4590353                            /opt/oracle/product/10.2.0/db_1/jlib/ldapjclnt10.jar
ea040000-ea0fc000 r-xs 00000000 fd:00 4726720                            /opt/oracle/product/10.2.0/db_1/jdk/jre/lib/ext/localedata.jar
ea200000-ea217000 r-xp 00000000 fd:00 1443593                            /usr/lib/libICE.so.6.3.0
ea217000-ea219000 rwxp 00016000 fd:00 1443593                            /usr/lib/libICE.so.6.3.0
ea220000-ea278000 r-xp 00000000 fd:00 1449661                            /usr/lib/libXt.so.6.0.0
ea278000-ea27c000 rwxp 00057000 fd:00 1449661                            /usr/lib/libXt.so.6.0.0
ea400000-ea405000 r-xp 00000000 fd:00 1975692                            /lib/libnss_dns-2.12.so
ea405000-ea406000 r-xp 00004000 fd:00 1975692                            /lib/libnss_dns-2.12.so
ea406000-ea407000 rwxp 00005000 fd:00 1975692                            /lib/libnss_dns-2.12.so
ea408000-ea41d000 r-xp 00000000 fd:00 4724867                            /opt/oracle/product/10.2.0/db_1/lib32/libnjni10.so
ea41d000-ea421000 rwxp 00014000 fd:00 4724867                            /opt/oracle/product/10.2.0/db_1/lib32/libnjni10.so
ea428000-ea47b000 r-xp 00000000 fd:00 4726747                            /opt/oracle/product/10.2.0/db_1/jdk/jre/lib/i386/libmlib_image.so
ea47b000-ea47c000 rwxp 00052000 fd:00 4726747                            /opt/oracle/product/10.2.0/db_1/jdk/jre/lib/i386/libmlib_image.so
ea600000-ea607000 r-xp 00000000 fd:00 1449011                            /usr/lib/libSM.so.6.0.0
ea607000-ea608000 rwxp 00006000 fd:00 1449011                            /usr/lib/libSM.so.6.0.0
ea608000-ea60a000 r-xp 00000000 fd:00 1443381                            /usr/lib/libXau.so.6.0.0
ea60a000-ea60b000 rwxp 00001000 fd:00 1443381                            /usr/lib/libXau.so.6.0.0
ea610000-ea615000 r-xp 00000000 fd:00 1464408                            /usr/lib/libXtst.so.6.1.0
ea615000-ea616000 rwxp 00004000 fd:00 1464408                            /usr/lib/libXtst.so.6.1.0
ea618000-ea67d000 r-xs 00000000 fd:00 4590438                            /opt/oracle/product/10.2.0/db_1/jlib/help4.jar
ea800000-ea810000 r-xp 00000000 fd:00 1448192                            /usr/lib/libXext.so.6.4.0
ea810000-ea811000 rwxp 00010000 fd:00 1448192                            /usr/lib/libXext.so.6.4.0
ea818000-ea81f000 r-xp 00000000 fd:00 1448417                            /usr/lib/libXp.so.6.2.0
ea81f000-ea820000 rwxp 00007000 fd:00 1448417                            /usr/lib/libXp.so.6.2.0
ea820000-ea838000 r-xs 00000000 fd:00 4590359                            /opt/oracle/product/10.2.0/db_1/jlib/jndi.jar
ea838000-ea87d000 r-xs 00000000 fd:00 4721385                            /opt/oracle/product/10.2.0/db_1/ldap/oidadmin/dasnls.jar
ea900000-eab00000 r-xp 00000000 fd:00 1442536                            /usr/lib/locale/locale-archive
eac00000-eac0e000 r-xs 00000000 fd:00 4590286                            /opt/oracle/product/10.2.0/db_1/jlib/srvmhas.jar
eac10000-eac1e000 r-xs 00000000 fd:00 4590436                            /opt/oracle/product/10.2.0/db_1/jlib/ewtcompat-3_3_15.jar
eac20000-eac52000 r-xs 00000000 fd:00 4719778                            /opt/oracle/product/10.2.0/db_1/network/jlib/netca.jar
eac58000-eac7e000 r-xs 00000000 fd:00 4719779                            /opt/oracle/product/10.2.0/db_1/network/jlib/netcam.jar
eae00000-eae0e000 r-xs 00000000 fd:00 4590536                            /opt/oracle/product/10.2.0/db_1/jlib/share.jar
eae10000-eae1c000 r-xs 00000000 fd:00 4590354                            /opt/oracle/product/10.2.0/db_1/jlib/jssl-1_1.jar
eae20000-eae2d000 r-xs 00000000 fd:00 4726719                            /opt/oracle/product/10.2.0/db_1/jdk/jre/lib/ext/ldapsec.jar
eae30000-eae33000 r-xs 00000000 fd:00 4726903                            /opt/oracle/product/10.2.0/db_1/jdk/jre/lib/ext/smtp.jar
eae38000-eae7d000 r-xs 00000000 fd:00 4726901                            /opt/oracle/product/10.2.0/db_1/jdk/jre/lib/ext/mail.jar
eb000000-eb00e000 r-xs 00000000 fd:00 4726904                            /opt/oracle/product/10.2.0/db_1/jdk/jre/lib/ext/activation.jar
eb010000-eb013000 r-xs 00000000 fd:00 4726718                            /opt/oracle/product/10.2.0/db_1/jdk/jre/lib/ext/dnsns.jar
eb018000-eb034000 r-xs 00000000 fd:00 4726721                            /opt/oracle/product/10.2.0/db_1/jdk/jre/lib/ext/sunjce_provider.jar
eb038000-eb05e000 r-xs 00000000 fd:00 4726902                            /opt/oracle/product/10.2.0/db_1/jdk/jre/lib/ext/mailapi.jar
f3160000-f3163000 r-xs 00000000 fd:00 4726900                            /opt/oracle/product/10.2.0/db_1/jdk/jre/lib/ext/jta.jar
f5210000-f57b0000 r-xs 00000000 fd:00 4726266                            /opt/oracle/product/10.2.0/db_1/jdk/jre/lib/charsets.jar
f57b0000-f57c1000 r-xs 00000000 fd:00 4726304                            /opt/oracle/product/10.2.0/db_1/jdk/jre/lib/jce.jar
f57c8000-f58a5000 r-xs 00000000 fd:00 4726305                            /opt/oracle/product/10.2.0/db_1/jdk/jre/lib/jsse.jar
f58a8000-f58be000 r-xs 00000000 fd:00 4726313                            /opt/oracle/product/10.2.0/db_1/jdk/jre/lib/sunrsasign.jar
f5908000-f72b3000 r-xs 00000000 fd:00 4726312                            /opt/oracle/product/10.2.0/db_1/jdk/jre/lib/rt.jar
f72b8000-f72cc000 r-xp 00000000 fd:00 4726753                            /opt/oracle/product/10.2.0/db_1/jdk/jre/lib/i386/libzip.so
f72cc000-f72cf000 rwxp 00013000 fd:00 4726753                            /opt/oracle/product/10.2.0/db_1/jdk/jre/lib/i386/libzip.so
f72d0000-f72f0000 r-xp 00000000 fd:00 4726738                            /opt/oracle/product/10.2.0/db_1/jdk/jre/lib/i386/libjava.so
f72f0000-f72f2000 rwxp 0001f000 fd:00 4726738                            /opt/oracle/product/10.2.0/db_1/jdk/jre/lib/i386/libjava.so
f72f8000-f7308000 r-xp 00000000 fd:00 4726752                            /opt/oracle/product/10.2.0/db_1/jdk/jre/lib/i386/libverify.so
f7308000-f730a000 rwxp 0000f000 fd:00 4726752                            /opt/oracle/product/10.2.0/db_1/jdk/jre/lib/i386/libverify.so
f7310000-f7338000 r-xp 00000000 fd:00 1975686                            /lib/libm-2.12.so
f7338000-f7339000 r-xp 00027000 fd:00 1975686                            /lib/libm-2.12.so
f7339000-f733a000 rwxp 00028000 fd:00 1975686                            /lib/libm-2.12.so
f7340000-f7357000 r-xp 00000000 fd:00 1975688                            /lib/libnsl-2.12.so
f7357000-f7358000 r-xp 00016000 fd:00 1975688                            /lib/libnsl-2.12.so
f7358000-f7359000 rwxp 00017000 fd:00 1975688                            /lib/libnsl-2.12.so
f7360000-f7766000 r-xp 00000000 fd:00 4726759                            /opt/oracle/product/10.2.0/db_1/jdk/jre/lib/i386/client/libjvm.so
f7766000-f7781000 rwxp 00405000 fd:00 4726759                            /opt/oracle/product/10.2.0/db_1/jdk/jre/lib/i386/client/libjvm.so
f7798000-f77af000 r-xp 00000000 fd:00 1975702                            /lib/libpthread-2.12.so
f77af000-f77b0000 r-xp 00016000 fd:00 1975702                            /lib/libpthread-2.12.so
f77b0000-f77b1000 rwxp 00017000 fd:00 1975702                            /lib/libpthread-2.12.so
f77b8000-f77bc000 rwxs 00000000 fd:00 262275                             /tmp/hsperfdata_oracle/6700
f77c0000-f77cc000 r-xp 00000000 fd:00 1975694                            /lib/libnss_files-2.12.so
f77cc000-f77cd000 r-xp 0000b000 fd:00 1975694                            /lib/libnss_files-2.12.so
f77cd000-f77ce000 rwxp 0000c000 fd:00 1975694                            /lib/libnss_files-2.12.so
f77d0000-f77d8000 r-xp 00000000 fd:00 4726760                            /opt/oracle/product/10.2.0/db_1/jdk/jre/lib/i386/native_threads/libhpi.so
f77d8000-f77d9000 rwxp 00007000 fd:00 4726760                            /opt/oracle/product/10.2.0/db_1/jdk/jre/lib/i386/native_threads/libhpi.so
f77e0000-f77e3000 r-xp 00000000 fd:00 1975684                            /lib/libdl-2.12.so
f77e3000-f77e4000 r-xp 00002000 fd:00 1975684                            /lib/libdl-2.12.so
f77e4000-f77e5000 rwxp 00003000 fd:00 1975684                            /lib/libdl-2.12.so
f77e6000-f77e7000 r-xp 00000000 00:00 0                                  [vdso]
ffb39000-ffb4f000 rwxp 00000000 00:00 0                                  [stack]

Heap at VM Abort:
Heap
 def new generation   total 576K, used 455K [0xeb160000, 0xeb200000, 0xeb640000)
  eden space 512K,  77% used [0xeb160000, 0xeb1c29f0, 0xeb1e0000)
  from space 64K,  96% used [0xeb1f0000, 0xeb1ff5d8, 0xeb200000)
  to   space 64K,   0% used [0xeb1e0000, 0xeb1e0000, 0xeb1f0000)
 tenured generation   total 1408K, used 536K [0xeb640000, 0xeb7a0000, 0xef160000)
   the space 1408K,  38% used [0xeb640000, 0xeb6c6370, 0xeb6c6400, 0xeb7a0000)
 compacting perm gen  total 4096K, used 3560K [0xef160000, 0xef560000, 0xf3160000)
   the space 4096K,  86% used [0xef160000, 0xef4da298, 0xef4da400, 0xef560000)

Local Time = Mon Sep 23 19:27:13 2013
Elapsed Time = 0
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2_08-b03 mixed mode)
#
# An error report file has been saved as hs_err_pid6700.log.
# Please refer to the file for further information.
#
/opt/oracle/product/10.2.0/db_1/bin/netca: line 190:  6700 Aborted                 (core dumped) $JRE -mx64m $SRVM_PROPERTY_DEFS -Dsun.java2d.font.DisableAlgorithmicStyles=true -classpath $CLASSPATH oracle.net.ca.NetCA $*


该错误信息是因为hosts文件中没有主机名和IP地址对应关系:

[root1@local_db ~]$ more /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

改为:
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

10.211.13.133 local_db

添加最后一行即可。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/751371/viewspace-773260/,如需转载,请注明出处,否则将追究法律责任。

下一篇: Linux本地yum配置
请登录后发表评论 登录
全部评论

注册时间:2009-02-18

  • 博文量
    256
  • 访问量
    1197784