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

Oracle 11gR2 RAC搭建(假造机搭建)

发布时间:2021-03-23 02:25:40 所属栏目:站长百科 来源:网络整理
导读:安装情形声名与假造机规化: 安装情形 主机操纵体系: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

(编辑:湖南网)

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

热点阅读