日期:2014-05-16 浏览次数:20436 次
RedHat 5.8 安装Oracle 11gR2_Grid集群
1、 通过rpm安装相应软件包:
rpm -ivh binutils-2*.i386.rpm
rpm -ivh binutils-2*.x86_64.rpm
rpm -ivh compat-libstdc++-33-*i*
rpm -ivh compat-libstdc++-33-x*
rpm -ivh elfutils-libelf-0*.i386.rpm
rpm -ivh elfutils-libelf-0*.x*
rpm -ivh elfutils-libelf-devel-0*.i386.rpm
rpm -ivh elfutils-libelf-devel-0.137-3.el5.x*
rpm -ivh compat-libstdc++-2*.i*.rpm
rpm -ivh compat-libstdc++-3*.i*.rpm
rpm -ivh compat-libstdc++-3*.x*.rpm
rpm -ivh gcc-4*.i*
rpm -ivh gcc-4*.x*
rpm -ivh gcc-4.1.2-52.el5.i386.rpm
rpm -ivh gcc-c++-*.x*.rpm
rpm -ivh gcc-c++-*.i*.rpm
rpm -ivh glibc-2.5-81.i*.rpm
rpm -ivh glibc-2.5-81.x*.rpm
rpm -ivh glibc-common-*.i*.rpm
rpm -ivh glibc-common-*.x*.rpm
rpm -ivh glibc-devel*.i*.rpm
rpm -ivh glibc-devel*.x*.rpm
rpm -ivh glibc-headers*.i*.rpm
rpm -ivh glibc-headers*.x*.rpm
rpm -ivh ksh-*.x*.rpm
rpm -ivh ksh-*.i*.rpm
rpm -ivh pdksh-*.i*.rpm
rpm -ivh pdksh-*.x*.rpm
rpm -ivh libaio-0*.i*.rpm
rpm -ivh libaio-0*.x*.rpm
rpm -ivh libaio-devel*.i*.rpm
rpm -ivh libaio-devel*.x*.rpm
rpm -ivh libgcc-4*.i*.rpm
rpm -ivh libgcc-4*.x*.rpm
rpm -ivh libstdc++-4*.i*.rpm
rpm -ivh libstdc++-4*.x*.rpm
rpm -ivh libstdc++-devel*.i*.rpm
rpm -ivh libstdc++-devel*.x*.rpm
rpm -ivh make-3*.i*.rpm
rpm -ivh make-3*.x*.rpm
rpm -ivh sysstat-*.i*.rpm
rpm -ivh sysstat-*.x*.rpm
rpm -ivh unixODBC-libs-*.i*.rpm
rpm -ivh unixODBC-libs-*.x*.rpm
rpm -ivh unixODBC-2*.i*.rpm
rpm -ivh unixODBC-2*.x*.rpm
rpm -ivh unixODBC-devel*.i*.rpm
rpm -ivh unixODBC-devel*.x*.rpm
--DNS相关软件包
rpm -ivh bind-9*.i*.rpm
rpm -ivh bind-9*.x*.rpm
rpm -ivh bind-utils*.i*.rpm
rpm -ivh bind-utils*.x*.rpm
rpm -ivh caching-nameserver*.i*.rp
rpm -ivh caching-nameserver*.x*.rp
rpm -ivh system-config-bind*.i*.rpm
rpm -ivh system-config-bind*.rpm
rpm -ivh bind-chroot*.i*.rpm
rpm -ivh bind-chroot*.x*.rpm
--ASM包安装 ---需下载
rpm -ivh oracleasm-support-2.1.7-1.el5.i386.rpm
rpm -ivh oracleasm-2.6.18-308.el5-2.0.5-1.el5.i686.rpm
rpm -ivh oracleasmlib-2.0.4-1.el5.i386.rpm
2、修改主机名
[root@localhost Server]# vi /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=grid01/grid02
3、配置host文件
[root@grid01 ~]# cat /etc/hosts
# Do not remove the following line, or variousprograms
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
#public
172.168.9.15 grid01.prudentwoo.com grid01
172.168.9.16 grid02.prudentwoo.com grid02
#private
10.10.10.1 pri01.prudentwoo.com pri01
10.10.10.2 pri02.prudentwoo.com pri02