三、GI(Grid Infrastructure)安装

Linux平台 Oracle 11gR2 RAC安装指导:

Part1:Linux平台 Oracle 11gR2 RAC安装Part1:准备工作

Part2:Linux平台 Oracle 11gR2 RAC安装Part2:GI安装

Part3:Linux平台 Oracle 11gR2 RAC安装Part3:DB安装

三、GI(Grid Infrastructure)安装

3.1 解压GI的安装包

首先grid用户登录,创建解压介质的目录:

mkdir -p /opt/app/media && chmod 777 /opt/app/media && cd /opt/app/media

然后unzip解压安装GI的安装介质p13390677_112040_Linux-x86-64_3of7.zip到/opt/app/media这个目录下:

unzip p13390677_112040_Linux-x86-64_3of7.zip -d /opt/app/media

3.2 安装配置Xmanager软件

在自己的Windows系统上成功安装Xmanager Enterprise之后,运行Xstart.exe可执行程序,
配置如下

Session:RAC1
Host:172.16.7.112
Protocol:SSH
User Name:grid
Execution Command:/usr/bin/xterm -ls -display $DISPLAY

点击RUN,输入grid用户的密码可以正常弹出命令窗口界面,即配置成功。

3.3 共享存储LUN的赋权

chown grid:asmadmin /dev/mapper/mpath*

这个重启验证过,multipath对应的原始设备/dev/dm-*的权限重启后会变更为root:disk,而我们需要的权限是grid:asmadmin

chown grid:asmadmin /dev/mapper/mpath*将这个加入开机启动脚本/etc/rc.local中。

3.4 使用Xmanager图形化界面安装GI

Xmanager通过grid用户登录,进入介质解压目录,运行runInstaller安装GI

$ cd /opt/app/media/grid/
$ ls
install readme.html response rpm runcluvfy.sh runInstaller sshsetup stage welcome.html
$ ./runInstaller

我这里设定ASM密码:orclasm

创建SYSDG作为OCR和Voting Disk的ASM磁盘组(3个10G的LUN,冗余级别:normal)

安装过程中可忽略的检查项(如果你的检查项中还有其他的,则不可以忽略):

Package:pdksh-5.2.14         //这个RHEL中光盘中没有pdksh这个包,之前准备工作中已安装ksh代替
Package:cvuqdisk-1.0.9-1 //这个可以按提示手工修复,也可以忽略安装后自动修复
Device Checks for ASM
Network Time Protocol(NTP)
Task resolv.conf Integrity

root用户执行2个脚本,需要在各节点分别执行

节点1执行两个脚本的屏幕输出如下:

[root@jyracdb1 ~]# /opt/app/oraInventory/orainstRoot.sh
Changing permissions of /opt/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world. Changing groupname of /opt/app/oraInventory to oinstall.
The execution of the script is complete.
[root@jyracdb1 ~]# /opt/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= /opt/app/11.2.0/grid Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite. 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: /opt/app/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
User ignored Prerequisites during installation
Installing Trace File Analyzer
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 'jyracdb1'
CRS-2676: Start of 'ora.mdnsd' on 'jyracdb1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'jyracdb1'
CRS-2676: Start of 'ora.gpnpd' on 'jyracdb1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'jyracdb1'
CRS-2672: Attempting to start 'ora.gipcd' on 'jyracdb1'
CRS-2676: Start of 'ora.cssdmonitor' on 'jyracdb1' succeeded
CRS-2676: Start of 'ora.gipcd' on 'jyracdb1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'jyracdb1'
CRS-2672: Attempting to start 'ora.diskmon' on 'jyracdb1'
CRS-2676: Start of 'ora.diskmon' on 'jyracdb1' succeeded
CRS-2676: Start of 'ora.cssd' on 'jyracdb1' succeeded ASM created and started successfully. Disk Group SYSDG 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 a64ad5c2080d4fcabfedb69225c4450e.
Successful addition of voting disk 7fee3d0e83e04f4dbf8dac2903b7c575.
Successful addition of voting disk 6cb439677d774ff8bfeea0de9774de7a.
Successfully replaced voting disk group with +SYSDG.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE a64ad5c2080d4fcabfedb69225c4450e (/dev/mapper/mpath_10G_a) [SYSDG]
2. ONLINE 7fee3d0e83e04f4dbf8dac2903b7c575 (/dev/mapper/mpath_10G_b) [SYSDG]
3. ONLINE 6cb439677d774ff8bfeea0de9774de7a (/dev/mapper/mpath_10G_c) [SYSDG]
Located 3 voting disk(s).
CRS-2672: Attempting to start 'ora.asm' on 'jyracdb1'
CRS-2676: Start of 'ora.asm' on 'jyracdb1' succeeded
CRS-2672: Attempting to start 'ora.SYSDG.dg' on 'jyracdb1'
CRS-2676: Start of 'ora.SYSDG.dg' on 'jyracdb1' succeeded
Preparing packages for installation...
cvuqdisk-1.0.9-1
Configure Oracle Grid Infrastructure for a Cluster ... succeeded

节点2执行两个脚本的屏幕输出如下:

[root@jyracdb2 app]# /opt/app/oraInventory/orainstRoot.sh
Changing permissions of /opt/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world. Changing groupname of /opt/app/oraInventory to oinstall.
The execution of the script is complete.
[root@jyracdb2 app]# /opt/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= /opt/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: /opt/app/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
User ignored Prerequisites during installation
Installing Trace File Analyzer
OLR initialization - successful
Adding Clusterware entries to upstart
CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node jyracdb1, number 1, and is terminating
An active cluster was found during exclusive startup, restarting to join the cluster
Preparing packages for installation...
cvuqdisk-1.0.9-1
Configure Oracle Grid Infrastructure for a Cluster ... succeeded

执行完root脚本之后点击OK继续,等待完成安装。

3.5 验证crsctl的状态

[grid@jyracdb1 ~]$ crsctl stat res -t
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.LISTENER.lsnr
ONLINE ONLINE jyracdb1
ONLINE ONLINE jyracdb2
ora.SYSDG.dg
ONLINE ONLINE jyracdb1
ONLINE ONLINE jyracdb2
ora.asm
ONLINE ONLINE jyracdb1 Started
ONLINE ONLINE jyracdb2 Started
ora.gsd
OFFLINE OFFLINE jyracdb1
OFFLINE OFFLINE jyracdb2
ora.net1.network
ONLINE ONLINE jyracdb1
ONLINE ONLINE jyracdb2
ora.ons
ONLINE ONLINE jyracdb1
ONLINE ONLINE jyracdb2
ora.registry.acfs
ONLINE ONLINE jyracdb1
ONLINE ONLINE jyracdb2
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE jyracdb1
ora.cvu
1 ONLINE ONLINE jyracdb1
ora.jyracdb1.vip
1 ONLINE ONLINE jyracdb1
ora.jyracdb2.vip
1 ONLINE ONLINE jyracdb2
ora.oc4j
1 ONLINE ONLINE jyracdb1
ora.scan1.vip
1 ONLINE ONLINE jyracdb1
[grid@jyracdb1 ~]$

3.6 测试集群的FAILED OVER功能

重启节点2,查看集群状态:

[grid@jyracdb1 ~]$ crsctl stat res -t
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.LISTENER.lsnr
ONLINE ONLINE jyracdb1
ora.SYSDG.dg
ONLINE ONLINE jyracdb1
ora.asm
ONLINE ONLINE jyracdb1 Started
ora.gsd
OFFLINE OFFLINE jyracdb1
ora.net1.network
ONLINE ONLINE jyracdb1
ora.ons
ONLINE ONLINE jyracdb1
ora.registry.acfs
ONLINE ONLINE jyracdb1
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE jyracdb1
ora.cvu
1 ONLINE ONLINE jyracdb1
ora.jyracdb1.vip
1 ONLINE ONLINE jyracdb1
ora.jyracdb2.vip
1 ONLINE INTERMEDIATE jyracdb1 FAILED OVER
ora.oc4j
1 ONLINE ONLINE jyracdb1
ora.scan1.vip
1 ONLINE ONLINE jyracdb1

重启节点1:

[grid@jyracdb2 ~]$ crsctl stat res -t
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.LISTENER.lsnr
ONLINE OFFLINE jyracdb1
ONLINE ONLINE jyracdb2
ora.SYSDG.dg
ONLINE ONLINE jyracdb1 STOPPING
ONLINE ONLINE jyracdb2
ora.asm
ONLINE ONLINE jyracdb1 Started
ONLINE ONLINE jyracdb2 Started
ora.gsd
OFFLINE OFFLINE jyracdb1
OFFLINE OFFLINE jyracdb2
ora.net1.network
ONLINE ONLINE jyracdb1
ONLINE ONLINE jyracdb2
ora.ons
ONLINE ONLINE jyracdb1
ONLINE ONLINE jyracdb2
ora.registry.acfs
ONLINE OFFLINE jyracdb1
ONLINE ONLINE jyracdb2
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
1 ONLINE OFFLINE
ora.cvu
1 ONLINE ONLINE jyracdb2
ora.jyracdb1.vip
1 ONLINE OFFLINE STARTING
ora.jyracdb2.vip
1 ONLINE ONLINE jyracdb2
ora.oc4j
1 ONLINE ONLINE jyracdb1 STOPPING
ora.scan1.vip
1 ONLINE OFFLINE STARTING

之后;

[grid@jyracdb2 ~]$ crsctl stat res -t
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.LISTENER.lsnr
ONLINE ONLINE jyracdb2
ora.SYSDG.dg
ONLINE ONLINE jyracdb2
ora.asm
ONLINE ONLINE jyracdb2 Started
ora.gsd
OFFLINE OFFLINE jyracdb2
ora.net1.network
ONLINE ONLINE jyracdb2
ora.ons
ONLINE ONLINE jyracdb2
ora.registry.acfs
ONLINE ONLINE jyracdb2
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE jyracdb2
ora.cvu
1 ONLINE ONLINE jyracdb2
ora.jyracdb1.vip
1 ONLINE INTERMEDIATE jyracdb2 FAILED OVER
ora.jyracdb2.vip
1 ONLINE ONLINE jyracdb2
ora.oc4j
1 ONLINE ONLINE jyracdb2
ora.scan1.vip
1 ONLINE ONLINE jyracdb2

Linux平台 Oracle 11gR2 RAC安装Part2:GI安装的更多相关文章

  1. Linux平台 Oracle 11gR2 RAC安装Part1:准备工作

    一.实施前期准备工作 1.1 服务器安装操作系统 1.2 Oracle安装介质 1.3 共享存储规划 1.4 网络规范分配 二.安装前期准备工作 2.1 各节点系统时间校对 2.2 各节点关闭防火墙和 ...

  2. Linux平台 Oracle 11gR2 RAC安装Part3:DB安装

    四.DB(Database)安装 4.1 解压DB的安装包 4.2 DB软件安装 4.3 ASMCA创建磁盘组 4.4 DBCA建库 4.5 验证crsctl的状态 Linux平台 Oracle 11 ...

  3. Linux平台 Oracle 12cR2 RAC安装Part2:GI配置

    Linux平台 Oracle 12cR2 RAC安装Part2:GI配置 三.GI(Grid Infrastructure)安装 3.1 解压GI的安装包 3.2 安装配置Xmanager软件 3.3 ...

  4. Linux平台 Oracle 18c RAC安装Part2:GI配置

    三.GI(Grid Infrastructure)安装 3.1 解压GI的安装包 3.2 安装配置Xmanager软件 3.3 共享存储LUN的赋权 3.4 使用Xmanager图形化界面配置GI 3 ...

  5. Linux平台 Oracle 19c RAC安装Part2:GI配置

    三.GI(Grid Infrastructure)安装 3.1 解压GI的安装包 3.2 安装配置Xmanager软件 3.3 共享存储LUN的赋权 3.4 使用Xmanager图形化界面配置GI 3 ...

  6. Linux平台 Oracle 12cR2 RAC安装Part1:准备工作

    Linux平台 Oracle 12cR2 RAC安装Part1:准备工作 一.实施前期准备工作 1.1 服务器安装操作系统 1.2 Oracle安装介质 1.3 共享存储规划 1.4 网络规范分配 二 ...

  7. Linux平台 Oracle 12cR2 RAC安装Part3:DB安装

    Linux平台 Oracle 12cR2 RAC安装Part3:DB安装 四.DB(Database)安装 4.1 解压DB的安装包 4.2 DB软件安装 4.3 ASMCA创建磁盘组 4.4 DBC ...

  8. Linux平台 Oracle 18c RAC安装

    Linux平台 Oracle 18c RAC安装Part1:准备工作 2018-08-04 22:20 by AlfredZhao, 1065 阅读, 0 评论, 收藏, 编辑 一.实施前期准备工作 ...

  9. Linux平台 Oracle 18c RAC安装Part1:准备工作

    一.实施前期准备工作 1.1 服务器安装操作系统 1.2 Oracle安装介质 1.3 共享存储规划 1.4 网络规范分配 二.安装前期准备工作 2.1 各节点系统时间校对 2.2 各节点关闭防火墙和 ...

随机推荐

  1. 关于开启.NET在线提升教育培训的通知! - 可在此页面观看在线直播!

    年前在线公开课程通知: 近期在开启VIP课程,隔天讲一次,年前其它时间插空讲公开课,主题:设计模式系列 1:培训 - 大概不会讲的内容: 1:不讲系列. 2:不讲入门. 3:不讲我不懂的! 2:培训 ...

  2. ASP.NET Aries 入门开发教程9:业务表单的开发

    前言: 经过前面那么多篇的列表的介绍,终于到了大伙期待的表单开发了. 也是本系列的最后一篇文章了! 1:表单页面的权限设置与继承 对于表单页面,权限的设置有两种: 1:你可以选择添加菜单(设置为不显示 ...

  3. URL安全的Base64编码

    Base64编码可用于在HTTP环境下传递较长的标识信息.在其他应用程序中,也常常需要把二进制数据编码为适合放在URL(包括隐藏表单域)中的形式.此时,采用Base64编码不仅比较简短,同时也具有不可 ...

  4. HTML5轻松实现搜索框提示文字点击消失---及placeholder颜色的设置

    在做搜索框的时候无意间发现html5的input里有个placeholder属性能轻松实现提示文字点击消失功能,之前还傻傻的在用js来实现类似功能... 示例 <form action=&quo ...

  5. CentOS下mysql数据库常用命令总结

    mysql数据库使用总结 本文主要记录一些mysql日常使用的命令,供以后查询. 1.更改root密码 mysqladmin -uroot password 'yourpassword' 2.远程登陆 ...

  6. [WPF] Wait for a moment.

    一.控件介绍 在 WPF 中使用的等待控件,控件包括三种,普通的等待信息提示(WaitTip),进度条提示(WaitProgress),以及主程序覆盖的模拟时钟等待窗口(WaitClock),具体效果 ...

  7. PHP设计模式(七)适配器模式(Adapter For PHP)

    适配器模式:将一个类的接口转换成客户希望的另外一个接口,使得原本由于接口不兼容而不能一起工作的那些类可以在一起工作. 如下图(借图): // 设置书的接口 // 书接口 interface BookI ...

  8. ESLint的使用笔记

    原文地址:https://csspod.com/getting-started-with-eslint/?utm_source=tuicool&utm_medium=referral 在团队协 ...

  9. Linux测试环境搭建的学习建议

    随着Linux应用的扩展许多朋友开始接触Linux,根据学习Windwos的经验往往有一些茫然的感觉:不知从何处开始学起.这里介绍学习Linux测试环境搭建的一些建议. 一.Linux测试环境搭建从基 ...

  10. BZOJ 1010: [HNOI2008]玩具装箱toy [DP 斜率优化]

    1010: [HNOI2008]玩具装箱toy Time Limit: 1 Sec  Memory Limit: 162 MBSubmit: 9812  Solved: 3978[Submit][St ...