抽空在VM下实验了在Centos5.5下安装oracle 11g r2,本以为比较简单的,却发现出现不少问题.
安装步骤:
1、check 相应的rpm包
这个没check完也不要紧,安装oracle的时候它会检查的。
按照官方文档的包CHECK,版本只能高不能低哦
The following or later version of packages for Oracle Linux 4 and Red Hat Enterprise Linux 4 should be installed:
binutils-2.15.92.0.2
compat-libstdc++-33-3.2.3
elfutils-libelf-0.97
elfutils-libelf-devel-0.97
gcc-3.4.6
gcc-c++-3.4.6
glibc-2.3.4-2.41
glibc-common-2.3.4
glibc-devel-2.3.4
glibc-headers-2.3.4
libaio-devel-0.3.105
libaio-0.3.105
libgcc-3.4.6
libstdc++-3.4.6
libstdc++-devel-3.4.6
make-3.80
numactl-0.6.4.i386
pdksh-5.2.14
sysstat-5.0.5
unixODBC-2.2.14-11.el6.i686 or later
unixODBC-devel-2.2.14-11.el6.i686 or later --------------------------
注意其中elfutils-libelf-devel-0.97包安装的时候有点问题,此包和它对应的一个static包相互依赖,需使用 rpm -ivh 包1 包2 命令一起安装.
前提是你的ORACLE_HOME环境变量要设置好,我这里ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
执行发现错误 错误OPatch failed with error code 74
仔细阅读错误信息,发现这么一句
Prerequisite check "CheckActiveFilesAndExecutables" failed
Following executables are active :
/u01/app/oracle/product/11.2.0/dbhome_1/lib/libnnz11.so