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 for package: device-mapper-multipath --> Processing Dependency: device-mapper-multipath-libs = 0.4.9-46.0.5.el5 for package: device-mapper-multipath --> Processing Dependency: libmultipath.so()(64bit) for package: device-mapper-multipath ---> Package kernel-uek-firmware.noarch 0:2.6.32-300.32.3.el5uek set to be updated ---> Package mkinitrd.i386 0:5.1.19.6-75.0.9.el5 set to be updated --> Processing Dependency: nash = 5.1.19.6-75.0.9.el5 for package: mkinitrd ---> Package mkinitrd.x86_64 0:5.1.19.6-75.0.9.el5 set to be updated ---> Package ql2xxx-firmware.noarch 0:1.01.01-0.2.el5 set to be updated ---> Package unixODBC.x86_64 0:2.2.11-10.el5 set to be updated --> Running transaction check ---> Package device-mapper-multipath-libs.x86_64 0:0.4.9-46.0.5.el5 set to be updated ---> Package kpartx.x86_64 0:0.4.9-46.0.5.el5 set to be updated ---> Package nash.x86_64 0:5.1.19.6-75.0.9.el5 set to be updated --> Processing Conflict: kernel-uek conflicts udev < 095-14.27.0.1.el5_7.1 --> Restarting Dependency Resolution with new changes. --> Running transaction check ---> Package udev.x86_64 0:095-14.27.0.3.el5_7.1 set to be updated --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: oracle-validated x86_64 1.1.0-15.el5 el5_latest 24 k Updating: udev x86_64 095-14.27.0.3.el5_7.1 el5_latest 2.4 M Installing for dependencies: device-mapper-multipath-libs x86_64 0.4.9-46.0.5.el5 el5_latest 168 k kernel-uek x86_64 2.6.32-300.32.3.el5uek el5_latest 26 M kernel-uek-firmware noarch 2.6.32-300.32.3.el5uek el5_latest 3.7 M libXp i386 1.0.0-8.1.el5 el5_latest 22 k libaio-devel i386 0.3.106-5 el5_latest 12 k libaio-devel x86_64 0.3.106-5 el5_latest 11 k oraclelinux-release x86_64 5-8.0.2 el5_latest 2.7 k ql2xxx-firmware noarch 1.01.01-0.2.el5 el5_latest 442 k sysstat x86_64 7.0.2-11.el5 el5_latest 187 k unixODBC x86_64 2.2.11-10.el5 el5_latest 291 k unixODBC-devel i386 2.2.11-10.el5 el5_latest 738 k unixODBC-devel x86_64 2.2.11-10.el5 el5_latest 793 k unixODBC-libs i386 2.2.11-10.el5 el5_latest 551 k unixODBC-libs x86_64 2.2.11-10.el5 el5_latest 554 k Updating for dependencies: device-mapper-multipath x86_64 0.4.9-46.0.5.el5 el5_latest 97 k irqbalance x86_64 2:0.55-17.el5 el5_latest 21 k kpartx x86_64 0.4.9-46.0.5.el5 el5_latest 465 k mkinitrd i386 5.1.19.6-75.0.9.el5 el5_latest 482 k mkinitrd x86_64 5.1.19.6-75.0.9.el5 el5_latest 471 k nash x86_64 5.1.19.6-75.0.9.el5 el5_latest 1.4 M Transaction Summary ================================================================================ Install 15 Package(s) Upgrade 7 Package(s) Total download size: 38 M Is this ok [y/N]: y Downloading Packages: (1/22): oraclelinux-release-5-8.0.2.x86_64.rpm | 2.7 kB 00:00 (2/22): libaio-devel-0.3.106-5.x86_64.rpm | 11 kB 00:00 (3/22): libaio-devel-0.3.106-5.i386.rpm | 12 kB 00:00 (4/22): irqbalance-0.55-17.el5.x86_64.rpm | 21 kB 00:00 (5/22): libXp-1.0.0-8.1.el5.i386.rpm | 22 kB 00:00 (6/22): oracle-validated-1.1.0-15.el5.x86_64.rpm | 24 kB 00:00 (7/22): device-mapper-multipath-0.4.9-46.0.5.el5.x86_64. | 97 kB 00:01 (8/22): device-mapper-multipath-libs-0.4.9-46.0.5.el5.x8 | 168 kB 00:03 (9/22): sysstat-7.0.2-11.el5.x86_64.rpm | 187 kB 00:04 (10/22): unixODBC-2.2.11-10.el5.x86_64.rpm | 291 kB 00:14 (11/22): ql2xxx-firmware-1.01.01-0.2.el5.noarch.rpm | 442 kB 00:21 (12/22): kpartx-0.4.9-46.0.5.el5.x86_64.rpm | 465 kB 00:10 (13/22): mkinitrd-5.1.19.6-75.0.9.el5.x86_64.rpm | 471 kB 00:26 (14/22): mkinitrd-5.1.19.6-75.0.9.el5.i386.rpm | 482 kB 00:24 (15/22): unixODBC-libs-2.2.11-10.el5.i386.rpm | 551 kB 00:17 (16/22): unixODBC-libs-2.2.11-10.el5.x86_64.rpm | 554 kB 00:15 (17/22): unixODBC-devel-2.2.11-10.el5.i386.rpm | 738 kB 00:15 (18/22): unixODBC-devel-2.2.11-10.el5.x86_64.rpm | 793 kB 00:23 (19/22): nash-5.1.19.6-75.0.9.el5.x86_64.rpm | 1.4 MB 00:48 (20/22): udev-095-14.27.0.3.el5_7.1.x86_64.rpm | 2.4 MB 00:59 (21/22): kernel-uek-firmware-2.6.32-300.32.3.el5uek.noar | 3.7 MB 02:36 (22/22): kernel-uek-2.6.32-300.32.3.el5uek.x86_64.rpm | 26 MB 09:05 -------------------------------------------------------------------------------- Total 39 kB/s | 38 MB 17:00 warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 1e5e0159 el5_latest/gpgkey | 1.4 kB 00:00 Importing GPG key 0x1E5E0159 "Oracle OSS group (Open Source Software group) <build@oss.oracle.com>" from http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5 Is this ok [y/N]: y Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Updating : kpartx 1/29 Updating : udev 2/29 Installing : unixODBC-libs 3/29 Installing : unixODBC 4/29 Installing : sysstat 5/29 Updating : irqbalance 6/29 Installing : device-mapper-multipath-libs 7/29 Updating : device-mapper-multipath 8/29 Installing : unixODBC-libs 9/29 Installing : oraclelinux-release 10/29 Updating : nash 11/29 Updating : mkinitrd 12/29 Installing : unixODBC-devel 13/29 Installing : unixODBC-devel 14/29 Installing : kernel-uek-firmware 15/29 Installing : ql2xxx-firmware 16/29 Installing : kernel-uek 17/29 Installing : libaio-devel 18/29 Installing : libaio-devel 19/29 Installing : libXp 20/29 Installing : oracle-validated 21/29 Updating : mkinitrd 22/29 Cleanup : irqbalance 23/29 Cleanup : udev 24/29 Cleanup : mkinitrd 25/29 Cleanup : nash 26/29 Cleanup : kpartx 27/29 Cleanup : device-mapper-multipath 28/29 Cleanup : mkinitrd 29/29 duration: 3968(ms) Installed products updated. Installed: oracle-validated.x86_64 0:1.1.0-15.el5 Dependency Installed: device-mapper-multipath-libs.x86_64 0:0.4.9-46.0.5.el5 kernel-uek.x86_64 0:2.6.32-300.32.3.el5uek kernel-uek-firmware.noarch 0:2.6.32-300.32.3.el5uek libXp.i386 0:1.0.0-8.1.el5 libaio-devel.i386 0:0.3.106-5 libaio-devel.x86_64 0:0.3.106-5 oraclelinux-release.x86_64 0:5-8.0.2 ql2xxx-firmware.noarch 0:1.01.01-0.2.el5 sysstat.x86_64 0:7.0.2-11.el5 unixODBC.x86_64 0:2.2.11-10.el5 unixODBC-devel.i386 0:2.2.11-10.el5 unixODBC-devel.x86_64 0:2.2.11-10.el5 unixODBC-libs.i386 0:2.2.11-10.el5 unixODBC-libs.x86_64 0:2.2.11-10.el5 Updated: udev.x86_64 0:095-14.27.0.3.el5_7.1 Dependency Updated: device-mapper-multipath.x86_64 0:0.4.9-46.0.5.el5 irqbalance.x86_64 2:0.55-17.el5 kpartx.x86_64 0:0.4.9-46.0.5.el5 mkinitrd.i386 0:5.1.19.6-75.0.9.el5 mkinitrd.x86_64 0:5.1.19.6-75.0.9.el5 nash.x86_64 0:5.1.19.6-75.0.9.el5 Complete!
参考:http://www.oracle-base.com/articles/11g/oracle-db-11gr2-installation-on-oracle-linux-5.php