Oracle 11gR2 RAC 安装流程 - 6(oracle11gr2安装教程)
mhr18 2024-10-04 17:31 29 浏览 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 共筑美好!
相关推荐
- 重大故障!业务核心表被truncate删除,准备跑路……
-
完蛋!最近项目组同事说,核心业务表被truncate删除,也惊呆了,现在的业务都这么粗暴了,安全机制、作业规范形同虚设?接下来就给大家一起聊下,表被truncate,解决问题的关键就是找到关键的问题!...
- 数据孤岛(Data Silos)(数据孤岛解决方案)
-
数据孤岛(DataSilos)是指组织内部数据因技术、管理或文化壁垒被隔离在不同部门、系统或平台中,无法有效共享、整合和交互的状态。这些数据如同分散的“岛屿”,虽各自有价值,但因孤立性难以发挥整体效...
- 弱口令漏洞总结及研究(弱口令是高危漏洞吗)
-
1.1弱口令漏洞定义弱口令漏洞是指因使用简单、易猜测、易破解的密码导致的系统安全风险。常见的弱口令包括:默认密码:如admin/admin、root/123456。规律字符:如连续数字(123456)...
- SQL 逻辑处理核心知识点全解析,从入门到精通看这篇就够了!
-
刚入行程序员/数据分析?写SQL总卡壳?别愁!今天一次性把SQL逻辑处理核心技能讲透,涵盖数值、字符、日期函数+条件表达式,附超全数据库差异对比,工作中直接套用!一、SQL函数大揭秘!...
- 智能文档检索:AI语义搜索实践(智能语音检索)
-
以下是基于AI语义搜索的智能文档检索实践要点解析,结合行业前沿案例与技术框架:一、核心技术架构与实现路径语义理解与嵌入模型采用BERT、GPT等预训练模型进行文本向量化,捕捉上下文语义15通过多模态分...
- 国产IAutodraw办公工具更新到3.7.5!这些隐藏功能你知道吗?
-
大家好,IAuto流程软件(简称IAutodraw)终于迎来2025年的第一个版本更新,本次更新同时包含Window、Mac等操作系统,更新的内容包括:1、流程画布支持Mermaid语法的粘贴(mer...
- 企业复杂数据处理必备:五款主流好用的报表工具
-
1.山海鲸报表山海鲸报表(免费的零代码BI报表工具,为您提供BI报表+GIS+数字孪生+可视化大屏一体化服务)作为国产报表工具中的后起之秀,专注于为企业提供高效、便捷的数据可视化与分析方案。它最大的...
- Oracle数据库批量更新翻车!老司机3招省80%时间
-
开篇热梗:凌晨3点,程序员老张盯着屏幕上转不停的进度条,第N次猛灌咖啡——10万条数据更新跑了半小时还没完!突然“啪”的一声,屏幕黑了...(你的系统是不是也这样崩溃过?评论区扣1)终极总结:3句话讲...
- 硬盘smart健康深度检测工具——wgcloud
-
S.M.A.R.T的全称为“Self-MonitoringAnalysisandReportingTechnology”,上个世纪九十年代,由于经常发生硬盘莫名其妙的故障问题,导致很多用户的数...
- Oracle 数据库培训:让你从菜鸟到大师的华丽转身
-
深入学习理论知识基础教程:介绍数据库管理系统的基本原理,让学员理解数据库的工作机制。讲解Oracle数据库的安装过程,包括各种环境配置和参数设置。教授如何使用SQL语言进行基本操作,如数据的查...
- 从 0 到 1:30 天变身 Oracle 数据库大师的独家学习秘籍
-
基础理论学习数据库基础概念:学习数据库的基本概念,如数据库管理系统表、行、列、索引、事务等。可以阅读《数据库系统概念》这样的经典教材,系统地掌握数据库的基础知识。SQL语言:SQL是与数据库交互的...
- 数据库故障排查指南(数据库故障处理流程)
-
数据库故障排查指南大纲常见故障类型与症状连接问题:无法连接、连接超时、连接数过多性能问题:查询缓慢、CPU/内存占用过高、锁等待数据一致性问题:数据丢失、数据损坏、主从不一致日志与错误消息:关键错误日...
- Java性能监控工具大揭秘:全面掌握你的应用表现
-
Java性能监控工具大揭秘:全面掌握你的应用表现在Java开发的世界里,性能优化如同一场永无止境的马拉松。一个程序再优雅的设计,如果执行效率低下,也会让人头疼不已。而性能监控工具就像是我们身边的“跑表...
- jmap(jmap -heap详解)
-
jmap是JDK自带的一个命令行工具,用于生成Java进程的堆内存快照(heapdump),也可以查看Java堆内存的详细统计信息。它是排查内存泄漏、分析对象占用内存情况的重要工具之...
- Java性能监控工具:让程序跑得更快的秘密武器
-
Java性能监控工具:让程序跑得更快的秘密武器大家好呀!今天咱们来聊聊Java程序背后的“幕后英雄”——性能监控工具。这些工具就像是医生手中的听诊器,能够帮我们及时发现程序运行中的各种“健康问题”。无...
你 发表评论:
欢迎- 一周热门
- 最近发表
- 标签列表
-
- oracle位图索引 (63)
- oracle批量插入数据 (62)
- oracle事务隔离级别 (53)
- oracle 空为0 (50)
- oracle主从同步 (55)
- oracle 乐观锁 (51)
- redis 命令 (78)
- php redis (88)
- redis 存储 (66)
- redis 锁 (69)
- 启动 redis (66)
- redis 时间 (56)
- redis 删除 (67)
- redis内存 (57)
- redis并发 (52)
- redis 主从 (69)
- redis 订阅 (51)
- redis 登录 (54)
- redis 面试 (58)
- 阿里 redis (59)
- redis 搭建 (53)
- redis的缓存 (55)
- lua redis (58)
- redis 连接池 (61)
- redis 限流 (51)