Oracle 11gR2 RAC 安装流程 - 6(oracle 18c rac安装)
sinye56 2024-09-21 02:27 8 浏览 0 评论
安装Grid
7.1 解压安装包
以root身份解压grid安装包和database安装包。
Node1:
[root@tim1 ~]#cd /soft
[root@tim1 soft]#ls
asm linux_11gR2_database_1of2.zip linux_11gR2_database_2of2.zip linux_11gR2_grid.zip
[root@tim1 soft]#unzip linux_11gR2_grid.zip
[root@tim1 soft]#unzip linux_11gR2_database_1of2.zip
[root@tim1 soft]#unzip linux_11gR2_database_2of2.zip
7.2 矫正时间
root用户在Node1和Node2下操作,以Node1的时间为基准,使用date -s命令在两节点上同时进行,误差几秒没关系。
7.3检查两个节点的共享盘
看到的共享盘ASMDisk已经准备就绪。
Node1:
[root@tim1 ~]#ll /dev/raw/raw*
Node2:同上
[root@tim2 ~]#ll /dev/raw/raw* 两节点看到的盘一致。
可以在安装grid 之前先做个检查。
[root@tim1 ~]# su - grid
[grid@tim1 ~]$ cd /soft/grid
[grid@tim1 grid]$ ./runcluvfy.sh stage -pre -h
[grid@tim1 grid]$ ./runcluvfy.sh stage -pre crsinst -n tim1,tim2
7.4启动GRID安装界面
1)启动Xmanager Passive,一般端口是[:0.0]
DISPLAY的意思是把图形显示到某个客户端上,这里是win7本地
SCAN Name按照/etc/hosts改。
Grid只认出了Node1节点,Node2需要手动添加一下。
公网、私网的网段要正确。
使用ASM,Oracle11gR2取消了raw选项。
2)配置yum install安装工具
yum工具可以自动解决软件包之间的依赖关系,使用之前要先创建软件仓库。
【创建方法】:
Node1:(root用户执行)
[root@tim1 ~]# cd /etc/yum.repos.d
进入到该目录下生成一个配置文件:
[root@tim1 yum.repo]# ls
[root@tim1 yum.repos.d]# cp rhel-debuginfo.repo yum.repo
[root@tim1 yum.repos.d]#vi yum.repo
文件内容改为如下:
[base]
name=Red Hat Enterprise Linux
baseurl=file:///media/Server
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
media这个就是安装光盘挂载所在位置,Server下就是一些安装包,S是大写。enabled=1表示启动,gpgcheck=0表示校验关闭。
把yum.repo复制到Node2
[root@tim2 ~]# cd /etc/yum.repos.d/
[root@tim2 yum.repos.d]# scp tim1:/etc/yum.repos.d/yum.repo ./
root@tim1's password: beijing
yum.repo 100% 146 0.1KB/s 00:00 Node1:
1)分配linux 安装镜像文件给光驱
这一步相当于把光盘插入光驱。
2)手工mount光盘
[root@tim1 yum.repos.d]#mount /dev/cdrom /media
查看一下目录下文件,看到许多包,至此,yum仓库构建完成。
[root@tim1 yum.repos.d]# ls /media/Server|more 安装时千万不要进入这个目录
3)根据Grid安装界面提示,使用yum安装缺失软件包
[root@tim1 yum.repos.d]# yum install libaio-devel* -y 一定要看到 Complete!才行
[root@tim1 yum.repos.d]# yum install sysstat* -y
[root@tim1 yum.repos.d]# yum install unixODBC-2* -y
[root@tim1 yum.repos.d]# yum install unixODBC-devel* -y
[root@tim1 yum.repos.d]# umount /media
4)别忘了从虚机中移除光驱,否则下次引导不了磁盘。
Node2:同上
【注】:两个节点都要安装这四个包。
不放心也可以验证一下是否装好了这些包,命令如下:
[root@tim1 ~]# rpm -qa libaio-devel*
Check Again继续安装。
3)继续安装Grid
Node1执行第一个脚本(root用户)
[root@tim1 ~]# /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.
Node2执行第一个脚本(root用户)
[root@tim2 ~]# /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.
Node1 执行第二个脚本(root用户) 【这步才是关键】!!!
[root@tim1 /]# /u01/11.2.0/grid/root.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.
[root@tim1 /]# /u01/11.2.0/grid/root.sh
Running Oracle 11g root.sh script...
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /u01/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.sh script.
Now product-specific root actions will be performed.
2015-11-13 00:02:18: Parsing the host name
2015-11-13 00:02:18: Checking for super user privileges
2015-11-13 00:02:18: User has super user privileges
Using configuration parameter file: /u01/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE
Creating OCR keys for user 'root', privgrp 'root'..
Operation 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 daemon to inittab
CRS-4123: Oracle High Availability Services has been started.
ohasd is starting
CRS-2672: Attempting to start 'ora.gipcd' on 'tim1'
CRS-2672: Attempting to start 'ora.mdnsd' on 'tim1'
CRS-2676: Start of 'ora.gipcd' on 'tim1' succeeded
CRS-2676: Start of 'ora.mdnsd' on 'tim1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'tim1'
CRS-2676: Start of 'ora.gpnpd' on 'tim1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'tim1'
CRS-2676: Start of 'ora.cssdmonitor' on 'tim1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'tim1'
CRS-2672: Attempting to start 'ora.diskmon' on 'tim1'
CRS-2676: Start of 'ora.diskmon' on 'tim1' succeeded
CRS-2676: Start of 'ora.cssd' on 'tim1' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'tim1'
CRS-2676: Start of 'ora.ctssd' on 'tim1' succeeded
ASM created and started successfully.
DiskGroup OCR_VOTE created successfully.
clscfg: -install mode specified
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-2672: Attempting to start 'ora.crsd' on 'tim1'
CRS-2676: Start of 'ora.crsd' on 'tim1' succeeded
CRS-4256: Updating the profile
Successful addition of voting disk 4e8f4e6229f84f4abf68122bc013ca1a.
Successful addition of voting disk ae254012f9b14f46bf99e51e57d1c57e.
Successful addition of voting disk 3d4e443c740f4f83bf4bbaa54dfc5936.
Successfully replaced voting disk group with +OCR_VOTE.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 1e7f803c179d4fcfbf2615830d5534cf (/dev/raw/raw1) [OCR_VOTE]
2. ONLINE 100a31a3e78a4f81bf4013a1a27c8fce (/dev/raw/raw2) [OCR_VOTE]
3. ONLINE 0978acb212554f5ebf5efab28cc6c6a6 (/dev/raw/raw3) [OCR_VOTE]
Located 3 voting disk(s).
CRS-2673: Attempting to stop 'ora.crsd' on 'tim1'
CRS-2677: Stop of 'ora.crsd' on 'tim1' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'tim1'
CRS-2677: Stop of 'ora.asm' on 'tim1' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'tim1'
CRS-2677: Stop of 'ora.ctssd' on 'tim1' succeeded
CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'tim1'
CRS-2677: Stop of 'ora.cssdmonitor' on 'tim1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'tim1'
CRS-2677: Stop of 'ora.cssd' on 'tim1' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'tim1'
CRS-2677: Stop of 'ora.gpnpd' on 'tim1' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'tim1'
CRS-2677: Stop of 'ora.gipcd' on 'tim1' succeeded
CRS-2673: Attempting to stop 'ora.mdnsd' on 'tim1'
CRS-2677: Stop of 'ora.mdnsd' on 'tim1' succeeded
CRS-2672: Attempting to start 'ora.mdnsd' on 'tim1'
CRS-2676: Start of 'ora.mdnsd' on 'tim1' succeeded
CRS-2672: Attempting to start 'ora.gipcd' on 'tim1'
CRS-2676: Start of 'ora.gipcd' on 'tim1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'tim1'
CRS-2676: Start of 'ora.gpnpd' on 'tim1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'tim1'
CRS-2676: Start of 'ora.cssdmonitor' on 'tim1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'tim1'
CRS-2672: Attempting to start 'ora.diskmon' on 'tim1'
CRS-2676: Start of 'ora.diskmon' on 'tim1' succeeded
CRS-2676: Start of 'ora.cssd' on 'tim1' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'tim1'
CRS-2676: Start of 'ora.ctssd' on 'tim1' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'tim1'
CRS-2676: Start of 'ora.asm' on 'tim1' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'tim1'
CRS-2676: Start of 'ora.crsd' on 'tim1' succeeded
CRS-2672: Attempting to start 'ora.evmd' on 'tim1'
CRS-2676: Start of 'ora.evmd' on 'tim1' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'tim1'
CRS-2676: Start of 'ora.asm' on 'tim1' succeeded
CRS-2672: Attempting to start 'ora.OCR_VOTE.dg' on 'tim1'
CRS-2676: Start of 'ora.OCR_VOTE.dg' on 'tim1' succeeded
CRS-2672: Attempting to start 'ora.registry.acfs' on 'tim1'
CRS-2676: Start of 'ora.registry.acfs' on 'tim1' succeeded
tim1 2015/11/13 00:09:21 /u01/11.2.0/grid/cdata/tim1/backup_20151113_000921.olr
Preparing packages for installation...
cvuqdisk-1.0.7-1
Configure Oracle Grid Infrastructure for a Cluster ... succeeded
Updating inventory properties for clusterware
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB. Actual 4095 MB Passed
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /u01/app/oraInventory
'UpdateNodeList' was successful.
Node2 执行第二个脚本(root用户)
[root@tim2 ~]# /u01/11.2.0/grid/root.sh
Running Oracle 11g root.sh script...
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /u01/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.sh script.
Now product-specific root actions will be performed.
2015-11-13 00:15:30: Parsing the host name
2015-11-13 00:15:30: Checking for super user privileges
2015-11-13 00:15:30: User has super user privileges
Using configuration parameter file: /u01/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Adding daemon to inittab
CRS-4123: Oracle High Availability Services has been started.
ohasd is starting
CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on Node tim1, number 1, and is terminating
An active cluster was found during exclusive startup, restarting to join the cluster
CRS-2672: Attempting to start 'ora.mdnsd' on 'tim2'
CRS-2676: Start of 'ora.mdnsd' on 'tim2' succeeded
CRS-2672: Attempting to start 'ora.gipcd' on 'tim2'
CRS-2676: Start of 'ora.gipcd' on 'tim2' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'tim2'
CRS-2676: Start of 'ora.gpnpd' on 'tim2' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'tim2'
CRS-2676: Start of 'ora.cssdmonitor' on 'tim2' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'tim2'
CRS-2672: Attempting to start 'ora.diskmon' on 'tim2'
CRS-2676: Start of 'ora.diskmon' on 'tim2' succeeded
CRS-2676: Start of 'ora.cssd' on 'tim2' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'tim2'
CRS-2676: Start of 'ora.ctssd' on 'tim2' succeeded
CRS-2672: Attempting to start 'ora.drivers.acfs' on 'tim2'
CRS-2676: Start of 'ora.drivers.acfs' on 'tim2' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'tim2'
CRS-2676: Start of 'ora.asm' on 'tim2' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'tim2'
CRS-2676: Start of 'ora.crsd' on 'tim2' succeeded
CRS-2672: Attempting to start 'ora.evmd' on 'tim2'
CRS-2676: Start of 'ora.evmd' on 'tim2' succeeded
tim2 2015/11/13 00:20:09 /u01/11.2.0/grid/cdata/tim2/backup_20151113_002009.olr
Preparing packages for installation...
cvuqdisk-1.0.7-1
Configure Oracle Grid Infrastructure for a Cluster ... succeeded
Updating inventory properties for clusterware
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB. Actual 4095 MB Passed
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /u01/app/oraInventory
'UpdateNodeList' was successful.
[root@tim2 /]#
最后一步,点击Close,结束图形安装。
4)添加全局环境变量
目的是让root用户能找到Grid用户路径下的可执行文件。
Node1:
[root@tim1 ~]# vi /etc/profile
添加:export PATH=$PATH:/u01/11.2.0/grid/bin
[root@tim1 ~]# source /etc/profile
Node2:同上
两个节点分别自动启动CRS。
一共有四个OFFLINE,这是正常的。
至此,grid全部安装完成。
the end !!!
@jackman 共筑美好!
相关推荐
- 程序员:JDK的安装与配置(完整版)_jdk的安装方法
-
对于Java程序员来说,jdk是必不陌生的一个词。但怎么安装配置jdk,对新手来说确实头疼的一件事情。我这里以jdk10为例,详细的说明讲解了jdk的安装和配置,如果有不明白的小伙伴可以评论区留言哦下...
- Linux中安装jdk并配置环境变量_linux jdk安装教程及环境变量配置
-
一、通过连接工具登录到Linux(我这里使用的Centos7.6版本)服务器连接工具有很多我就不一一介绍了今天使用比较常用的XShell工具登录成功如下:二、上传jdk安装包到Linux服务器jdk...
- 麒麟系统安装JAVA JDK教程_麒麟系统配置jdk
-
检查检查系统是否自带java在麒麟系统桌面空白处,右键“在终端打开”,打开shell对话框输入:java–version查看是否自带java及版本如图所示,系统自带OpenJDK,要先卸载自带JDK...
- 学习笔记-Linux JDK - 安装&配置
-
前提条件#检查是否存在JDKrpm-qa|grepjava#删除现存JDKyum-yremovejava*安装OracleJDK不分系统#进入安装文件目...
- Linux新手入门系列:Linux下jdk安装配置
-
本系列文章是把作者刚接触和学习Linux时候的实操记录分享出来,内容主要包括Linux入门的一些理论概念知识、Web程序、mysql数据库的简单安装部署,希望能够帮到一些初学者,少走一些弯路。注意:L...
- 测试员必备:Linux下安装JDK 1.8你必须知道的那些事
-
1.简介在Oracle收购Sun后,Java的一系列产品就被整合到Oracle官网中,打开官网乍眼一看也不知道去哪里下载,还得一个一个的摸索尝试,而且网上大多数都是一些Oracle收购Sun前,或者就...
- Linux 下安装JDK17_linux 安装jdk1.8 yum
-
一、安装环境操作系统:JDK版本:17二、安装步骤第一步:下载安装包下载Linux环境下的jdk1.8,请去官网(https://www.oracle.com/java/technologies/do...
- 在Ubuntu系统中安装JDK 17并配置环境变量教程
-
在Ubuntu系统上安装JDK17并配置环境变量是Java开发环境搭建的重要步骤。JDK17是Oracle提供的长期支持版本,广泛用于开发Java应用程序。以下是详细的步骤,帮助你在Ubuntu系...
- 如何在 Linux 上安装 Java_linux安装java的步骤
-
在桌面上拥抱Java应用程序,然后在所有桌面上运行它们。--SethKenlon(作者)无论你运行的是哪种操作系统,通常都有几种安装应用程序的方法。有时你可能会在应用程序商店中找到一个应用程序...
- Windows和Linux环境下的JDK安装教程
-
JavaDevelopmentKit(简称JDK),是Java开发的核心工具包,提供了Java应用程序的编译、运行和开发所需的各类工具和类库。它包括了JRE(JavaRuntimeEnviro...
- linux安装jdk_linux安装jdk软连接
-
JDK是啥就不用多介绍了哈,外行的人也不会进来看我的博文。依然记得读大学那会,第一次实验课就是在机房安装jdk,编写HelloWorld程序。时光飞逝啊,一下过了十多年了,挣了不少钱,买了跑车,娶了富...
- linux安装jdk,全局配置,不同用户不同jdk
-
jdk1.8安装包链接:https://pan.baidu.com/s/14qBrh6ZpLK04QS8ogCepwg提取码:09zs上传文件解压tar-zxvfjdk-8u152-linux-...
- 运维大神教你在linux下安装jdk8_linux安装jdk1.7
-
1.到官网下载适合自己机器的版本。楼主下载的是jdk-8u66-linux-i586.tar.gzhttp://www.oracle.com/technetwork/java/javase/downl...
- window和linux安装JDK1.8_linux 安装jdk1.8.tar
-
Windows安装JDK1.8的步骤:步骤1:下载JDK打开浏览器,找到JDK下载页面https://d.injdk.cn/download/oraclejdk/8在页面中找到并点击“下载...
- 最全的linux下安装JavaJDK的教程(图文详解)不会安装你来打我?
-
默认已经有了linux服务器,且有root账号首先检查一下是否已经安装过java的jdk任意位置输入命令:whichjava像我这个已经安装过了,就会提示在哪个位置,你的肯定是找不到。一般我们在...
你 发表评论:
欢迎- 一周热门
- 最近发表
- 标签列表
-
- oracle忘记用户名密码 (59)
- oracle11gr2安装教程 (55)
- mybatis调用oracle存储过程 (67)
- oracle spool的用法 (57)
- oracle asm 磁盘管理 (67)
- 前端 设计模式 (64)
- 前端面试vue (56)
- linux格式化 (55)
- linux图形界面 (62)
- linux文件压缩 (75)
- Linux设置权限 (53)
- linux服务器配置 (62)
- mysql安装linux (71)
- linux启动命令 (59)
- 查看linux磁盘 (72)
- linux用户组 (74)
- linux多线程 (70)
- linux设备驱动 (53)
- linux自启动 (59)
- linux网络命令 (55)
- linux传文件 (60)
- linux打包文件 (58)
- linux查看数据库 (61)
- linux获取ip (64)
- linux进程通信 (63)