2.3.4. 安装和配置ASM(此项可不做)
安装Oracle 11g,可不使用Oracle asmlib配置裸设备,故此处可用不做。 ? 检查操作系统版本
确认安装与操作系统相匹配的 asmlib,在所有节点执行; [root@rcahadb1 asmlib]# uname –a [root@rcahadb1 asmlib]# lsb_release –a
? 安装ASM软件包(在所有节点执行)
[root@rcahadb1 asmlib]# rpm -ivh oracleasm-support-2.1.8-1.el6.x86_64.rpm [root@rcahadb1 asmlib]# rpm -ivh kmod-oracleasm-2.0.6.rh1-2.el6.x86_64.rpm [root@rcahadb1 asmlib]# rpm -ivh oracleasmlib-2.0.4-1.el6.x86_64.rpm [root@rcahadb1 asmlib]# rpm -qa |grep oracleasm
? 配置ASM(在所有节点执行)
[root@rcahadb1 ~]# /etc/init.d/oracleasm configure
Default user to own the driver interface []: grid Default group to own the driver interface []: asmadmin Start Oracle ASM library driver on boot (y/n) [n]: y Scan for Oracle ASM disks on boot (y/n) [y]:y
Writing Oracle ASM library driver configuration: done
? 创建ASM磁盘(在节点1执行)
注:创建ASM磁盘之前,两节点必须同时认出共享磁盘,并用fdisk命令划分磁盘分区。 /etc/init.d/oracleasm createdisk OCR_VOTE01 /dev/emcpowera1 /etc/init.d/oracleasm createdisk OCR_VOTE02 /dev/emcpowera2 /etc/init.d/oracleasm createdisk OCR_VOTE03 /dev/emcpowera3 /etc/init.d/oracleasm createdisk data01 /dev/sdd1 /etc/init.d/oracleasm createdisk data02 /dev/sdd2 ? 扫描识别ASM磁盘(在所有节点执行)
/etc/init.d/oracleasm scandisks /etc/init.d/oracleasm listdisks
21 / 64
2.3.5. 安装Oracle Grid
安装Grid Infrastructure软件以grid用户登录 然后用ssh把软件包上传到rcahadb1
p13390677_112040_Linux-x86-64_3of7.zip grid用户登录解压
$ unzip p13390677_112040_Linux-x86-64_3of7.zip 登陆到grid 用户,执行安装文件,在节点1执行; 1、全面检查
./runcluvfy.sh stage -pre crsinst -n rcahadb1,rcahadb2 -verbose 2、检查网络和等效性
./runcluvfy.sh comp nodecon -n rcahadb1,rcahadb2 -verbose 3、安装
./runInstaller
选择“安装和配置集群的网格基础结构”:
22 / 64
选择“高级安装”
23 / 64
选择“中文”和“英语”
填写名称
24 / 64