日期:2014-05-16  浏览次数:20521 次

RHEL5.5 64位下安装Oracle 11g 64位安装前置条件的两种方法

RHEL5.5 64位下安装Oracle 11g 64位安装前置条件(即RPM包)有如下两种方式:

一、RPM方式:安装Oracle所需的全部运行库(在RHEL光驱的Server目录下)

以root登录,执行如下命令:

cd /media/RHEL_5.5\ x86_64\ DVD/Server
rpm -Uvh binutils-2.*
rpm -Uvh compat-libstdc++-33*
rpm -Uvh compat-libstdc++-33*.i386.rpm
rpm -Uvh elfutils-libelf*
rpm -Uvh gcc-4.*
rpm -Uvh gcc-c++-4.*
rpm -Uvh glibc-2.*
rpm -Uvh glibc-common-2.*
rpm -Uvh glibc-devel-2.*
rpm -Uvh glibc-headers-2.*
rpm -Uvh ksh*
rpm -Uvh libaio-0.*
rpm -Uvh libaio-devel-0.*
rpm -Uvh libgomp-4.*
rpm -Uvh libgcc-4.*
rpm -Uvh libstdc++-4.*
rpm -Uvh libstdc++-devel-4.*
rpm -Uvh make-3.*
rpm -Uvh sysstat-7.*
rpm -Uvh unixODBC-2.*
rpm -Uvh unixODBC-devel-2.*
rpm -Uvh numactl-devel-*

二、Yum方式:在线安装

以root账号登录,输入:

cd /etc/yum.repos.d

wget http://public-yum.oracle.com/public-yum-el5.repo

yum install oracle-validated

安装过程如下:

Loaded plugins: product-id, security, subscription-manager
Updating Red Hat repositories.
el5_latest                                               | 1.4 kB     00:00     
el5_latest/primary                                       |  11 MB     21:43     
el5_latest                                                            9613/9613
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package oracle-validated.x86_64 0:1.1.0-15.el5 set to be updated
el5_latest/filelists                                     |  18 MB     14:31     
--> Processing Dependency: irqbalance >= 2:0.55-16 for package: oracle-validated
--> Processing Dependency: kernel-uek >= 2.6.32 for package: oracle-validated
--> Processing Dependency: libXp.so.6 for package: oracle-validated
--> Processing Dependency: /usr/lib/libodbccr.so for package: oracle-validated
--> Processing Dependency: /usr/lib64/libodbccr.so for package: oracle-validated
--> Processing Dependency: unixODBC-devel for package: oracle-validated
--> Processing Dependency: libaio-devel for package: oracle-validated
--> Processing Dependency: /usr/lib64/libaio.so for package: oracle-validated
--> Processing Dependency: /usr/lib/libodbc.so.1 for package: oracle-validated
--> Processing Dependency: sysstat for package: oracle-validated
--> Processing Dependency: /usr/lib/libaio.so for package: oracle-validated
--> Processing Dependency: oraclelinux-release for package: oracle-validated
--> Processing Dependency: libodbc.so.1()(64bit) for package: oracle-validated
--> Running transaction check
---> Package irqbalance.x86_64 2:0.55-17.el5 set to be updated
---> Package kernel-uek.x86_64 0:2.6.32-300.32.3.el5uek set to be updated
--> Processing Dependency: kernel-firmware = 2.6.32-300.32.3.el5uek for package: kernel-uek
--> Processing Dependency: device-mapper-multipath >= 0.4.9-23.0.1.el5 for package: kernel-uek
--> Processing Dependency: mkinitrd >= 5.1.19.6-75.0.5 for package: kernel-uek
--> Processing Dependency: ql2xxx-firmware for package: kernel-uek
---> Package libXp.i386 0:1.0.0-8.1.el5 set to be updated
---> Package libaio-devel.i386 0:0.3.106-5 set to be updated
---> Package libaio-devel.x86_64 0:0.3.106-5 set to be updated
---> Package oraclelinux-release.x86_64 0:5-8.0.2 set to be updated
---> Package sysstat.x86_64 0:7.0.2-11.el5 set to be updated
---> Package unixODBC-devel.i386 0:2.2.11-10.el5 set to be updated
--> Processing Dependency: unixODBC = 2.2.11-10.el5 for package: unixODBC-devel
---> Package unixODBC-devel.x86_64 0:2.2.11-10.el5 set to be updated
---> Package unixODBC-libs.i386 0:2.2.11-10.el5 set to be updated
---> Package unixODBC-libs.x86_64 0:2.2.11-10.el5 set to be updated
--> Running transaction check
---> Package device-mapper-multipath.x86_64 0:0.4.9-46.0.5.el5 set to be updated
--> Processing Dependency: kpartx = 0.4.9-46.0.5.el5