加入收藏 | 设为首页 | 会员中心 | 我要投稿 厦门网 (https://www.xiamenwang.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长百科 > 正文

Oracle 11gR2 RAC搭建(虚拟机搭建)

发布时间:2021-03-18 07:21:24 所属栏目:站长百科 来源:网络整理
导读:安装环境说明与虚拟机规化: 安装环境 主机操作系统:windows 10 虚拟机VMware15:两台CentOS-7.6 Oracle Database software: Oracle11gR2 (11.2.0.1.0) Cluster software: Oracle grid infrastructure 11gR2(11.2.0.1.0) 共享存储:ASM oracle传送门 ht

安装Grid,只需要在1个节点执行即可,另外一个节点自动同步
1.安装流程
(1)开启安装(这里为了更好的可用性用Xmanager来远程安装,配置参考https://www.cnblogs.com/songyuejie/p/6372534.html)

#xhost +
#su - grid
$export DISPLAY=Windows主机IP:0.0
$cd cd /home/grid/db/
$./runInstaller

图形化流程
跳过更新-安装集群

Oracle 11gR2 RAC搭建(虚拟机搭建)


自定义安装

Oracle 11gR2 RAC搭建(虚拟机搭建)


安装语音默认英文

Oracle 11gR2 RAC搭建(虚拟机搭建)


定义集群名字,SCAN Name 为hosts中定义的scan-ip,GNS去勾选

Oracle 11gR2 RAC搭建(虚拟机搭建)


界面只有第一个节点rac1,点击“Add”把第二个节点rac2加上,信息可以参照rac1填写

Oracle 11gR2 RAC搭建(虚拟机搭建)


Oracle 11gR2 RAC搭建(虚拟机搭建)


选择网卡,默认即可

Oracle 11gR2 RAC搭建(虚拟机搭建)


配置ASM,这里选择前面配置的裸盘raw1,raw2,raw3,冗余方式为External即不冗余。因为是不用于,所以也可以只选一个设备。这里的设备是用来做OCR注册盘和votingdisk投票盘的。

Oracle 11gR2 RAC搭建(虚拟机搭建)


Oracle 11gR2 RAC搭建(虚拟机搭建)


配置ASM实例需要为具有sysasm权限的sys用户,具有sysdba权限的asmsnmp用户设置密码,这里设置统一密码,点击OK即可

Oracle 11gR2 RAC搭建(虚拟机搭建)


不选择智能管理

Oracle 11gR2 RAC搭建(虚拟机搭建)


检查ASM实例权限分组情况

Oracle 11gR2 RAC搭建(虚拟机搭建)


选择grid软件安装路径和base目录 ,这里默认即可

Oracle 11gR2 RAC搭建(虚拟机搭建)


选择grid安装清单目录

Oracle 11gR2 RAC搭建(虚拟机搭建)


环境检测出现ntp等刚刚跑脚本检测出的错误,选择忽略全部

Oracle 11gR2 RAC搭建(虚拟机搭建)


安装概要,点击安装后开始安装并且自动复制到rac2

Oracle 11gR2 RAC搭建(虚拟机搭建)


安装grid完成,提示需要root用户依次执行脚本orainstRoot.sh ,root.sh (一定要先在rac1执行完脚本后,才能在其他节点执行)

Oracle 11gR2 RAC搭建(虚拟机搭建)


rac1:
#/u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
#/u01/app/11.2.0/grid/root.sh
Performing root user operation for Oracle 11g
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /u01/app/11.2.0/grid
Enter the full pathname of the local bin directory: [/usr/local/bin]: (回车)
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
User ignored Prerequisites during installation
OLR initialization - successful
root wallet
root wallet cert
root cert export
peer wallet
profile reader wallet
pa wallet
peer wallet keys
pa wallet keys
peer cert request
pa cert request
peer cert
pa cert
peer root cert TP
profile reader root cert TP
pa root cert TP
peer pa cert TP
pa peer cert TP
profile reader pa cert TP
profile reader peer cert TP
peer user cert
pa user cert
Adding Clusterware entries to upstart
CRS-2672: Attempting to start ‘ora.mdnsd‘ on ‘rac1‘
CRS-2676: Start of ‘ora.mdnsd‘ on ‘rac1‘ succeeded
CRS-2672: Attempting to start ‘ora.gpnpd‘ on ‘rac1‘
CRS-2676: Start of ‘ora.gpnpd‘ on ‘rac1‘ succeeded
CRS-2672: Attempting to start ‘ora.cssdmonitor‘ on ‘rac1‘
CRS-2672: Attempting to start ‘ora.gipcd‘ on ‘rac1‘
CRS-2676: Start of ‘ora.cssdmonitor‘ on ‘rac1‘ succeeded
CRS-2676: Start of ‘ora.gipcd‘ on ‘rac1‘ succeeded
CRS-2672: Attempting to start ‘ora.cssd‘ on ‘rac1‘
CRS-2672: Attempting to start ‘ora.diskmon‘ on ‘rac1‘
CRS-2676: Start of ‘ora.diskmon‘ on ‘rac1‘ succeeded
CRS-2676: Start of ‘ora.cssd‘ on ‘rac1‘ succeeded
ASM created and started successfully.
Disk Group OCR created successfully.
clscfg: -install mode specified
Successfully accumulated necessary OCR keys.
Creating OCR keys for user ‘root‘,privgrp ‘root‘..
Operation successful.
CRS-4256: Updating the profile
Successful addition of voting disk 496abcfc4e214fc9bf85cf755e0cc8e2.
Successfully replaced voting disk group with +OCR.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
STATE File Universal Id File Name Disk group

  1. ONLINE 496abcfc4e214fc9bf85cf755e0cc8e2 (/dev/raw/raw1) [OCR]
    Located 1 voting disk(s).
    CRS-2672: Attempting to start ‘ora.asm‘ on ‘rac1‘
    CRS-2676: Start of ‘ora.asm‘ on ‘rac1‘ succeeded
    CRS-2672: Attempting to start ‘ora.OCR.dg‘ on ‘rac1‘
    CRS-2676: Start of ‘ora.OCR.dg‘ on ‘rac1‘ succeeded
    Configure Oracle Grid Infrastructure for a Cluster ... succeeded

在rac2用同样的方法跑2个脚本,完成后点击上图中的ok按钮再执行下一步,忽略报错完成安装
2.安装grid后的资源检查

#su - grid
$ crsctl check crs

(编辑:厦门网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

热点阅读