RHEL5.9安装Oracle11.2问题汇总

1、安装oracle11.2需要unixODBC和unixODBC-devel两个rpm,于是想手动安装,但发现依赖关系太多了。

[root@zhaozy-oracle oracle11g]# rpm -ivh unixODBC-2.2.11-10.el5.i386.rpm 
warning: unixODBC-2.2.11-10.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
error: Failed dependencies:
        libodbc.so.1 is needed by unixODBC-2.2.11-10.el5.i386
        libodbcinst.so.1 is needed by unixODBC-2.2.11-10.el5.i386
        unixODBC-libs = 2.2.11-10.el5 is needed by unixODBC-2.2.11-10.el5.i386
[root@zhaozy-oracle oracle11g]# rpm -ivh unixODBC-devel-2.2.11-10.el5.i386.rpm 
warning: unixODBC-devel-2.2.11-10.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
error: Failed dependencies:
        libboundparam.so.1 is needed by unixODBC-devel-2.2.11-10.el5.i386
        libesoobS.so.1 is needed by unixODBC-devel-2.2.11-10.el5.i386
        libgtrtst.so.1 is needed by unixODBC-devel-2.2.11-10.el5.i386
        libmimerS.so.1 is needed by unixODBC-devel-2.2.11-10.el5.i386
        libnn.so.1 is needed by unixODBC-devel-2.2.11-10.el5.i386
        libodbccr.so.1 is needed by unixODBC-devel-2.2.11-10.el5.i386
        libodbcdrvcfg1S.so.1 is needed by unixODBC-devel-2.2.11-10.el5.i386
        libodbcdrvcfg2S.so.1 is needed by unixODBC-devel-2.2.11-10.el5.i386
        libodbcinst.so.1 is needed by unixODBC-devel-2.2.11-10.el5.i386
        libodbcminiS.so.1 is needed by unixODBC-devel-2.2.11-10.el5.i386
        libodbcnnS.so.1 is needed by unixODBC-devel-2.2.11-10.el5.i386
        libodbctxtS.so.1 is needed by unixODBC-devel-2.2.11-10.el5.i386
        liboplodbcS.so.1 is needed by unixODBC-devel-2.2.11-10.el5.i386
        liboraodbcS.so.1 is needed by unixODBC-devel-2.2.11-10.el5.i386
        libsapdbS.so.1 is needed by unixODBC-devel-2.2.11-10.el5.i386
        libtdsS.so.1 is needed by unixODBC-devel-2.2.11-10.el5.i386
        libtemplate.so.1 is needed by unixODBC-devel-2.2.11-10.el5.i386
        unixODBC = 2.2.11-10.el5 is needed by unixODBC-devel-2.2.11-10.el5.i386
        unixODBC-libs = 2.2.11-10.el5 is needed by unixODBC-devel-2.2.11-10.el5.i386
[root@zhaozy-oracle oracle11g]# 

 如果按照依赖一个个来装,不太现实,因为可能在安装过程中出现环依赖。

    首先想到的是在安装系统的时候选择这两个rpm所在的package,刚开始不知道在那个package里,后来发现是在安装mysql服务器里可以选择unixODBC,始终木找到unixODBC-devel。

    接着想使用yum命令,于是把redhat的yum源镜像改成centos的,执行yum install unixODBC-devel后,可以正常安装。于是又在centos5.9下测试安装unixODBC和unixODBC-devel,发现在安装unixODBC时,同时下载了unixODBC-libs。

    最后,重新安装一个不含这两个包的redhat5.9,首先安装unixODBC-libs,然后安装unixODBC,最后安装unixODBC-devel,顺序不能错,成功。

[root@zhaozy-oracle oracle11g]# rpm -ivh unixODBC-libs-2.2.11-10.el5.i386.rpm 
warning: unixODBC-libs-2.2.11-10.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing...                ########################################### [100%]
   1:unixODBC-libs          ########################################### [100%]
[root@zhaozy-oracle oracle11g]# rpm -ivh unixODBC-2.2.11-10.el5.i386.rpm 
warning: unixODBC-2.2.11-10.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing...                ########################################### [100%]
   1:unixODBC               ########################################### [100%]
[root@zhaozy-oracle oracle11g]# rpm -ivh unixODBC-devel-2.2.11-10.el5.i386.rpm 
warning: unixODBC-devel-2.2.11-10.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing...                ########################################### [100%]
   1:unixODBC-devel         ########################################### [100%]
[root@zhaozy-oracle oracle11g]# 

 问题解决。

你可能感兴趣的:(oracle)