Oracle 11gR2构建RAC之(3)--安装grid前环境检测
admin
2023-05-14 19:21:44
0

Oracle 11gR2构建RAC之(3)--安装grid前环境检测

系统环境:

操作系统:RedHat EL5

Cluster: Oracle GI(Grid Infrastructure)

Oracle:  Oracle 11.2.0.1.0


如图所示:RAC 系统架构

Oracle 11gR2构建RAC之(3)--安装grid前环境检测

三、安装GI之前,可以以grid用户的身份对环境进行检测。

以grid 用户的身份校验安装环境(在grid的安装软件包目录下)

[grid@node1 grid]$ ./runcluvfy.sh stage -pre crsinst -n node1,node2 -fixup -verbose
  ---在检测中会提示,“failed”的位置,需要fixup.
1、需要安装的软件包(all nodes)
配置yum安装环境:
[root@node1 yum.repos.d]# cp rhel-debuginfo.repo yum.repo
[root@node1 yum.repos.d]# ls
rhel-debuginfo.repo  yum.repo
[root@node1 yum.repos.d]# cat 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
挂载linux ISO 光盘:
[root@node1 yum.repos.d]#mount /dev/hdc  /media 
安装软件:
libaio-devel.i386 0:0.3.106-5 
sysstat.i386 0:7.0.2-3.el5   
unixODBC-2.2.11-7.1
unixODBC-devel-2.2.11-7.1
unixODBC-kde-2.2.11-7.1
2、配置用户之间的信任关系(oracle和grid)
建立节点之间oracle 、grid 用户之间的信任(通过ssh 建立公钥和私钥)
=====Oracle==========
1)生成密钥对(all nodes)
[oracle@node1 ~]$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/oracle/.ssh/id_rsa): 
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /home/oracle/.ssh/id_rsa.
Your public key has been saved in /home/oracle/.ssh/id_rsa.pub.
The key fingerprint is:
64:a6:4a:77:db:33:a4:aa:6e:ca:8f:5f:2f:77:0f:40 oracle@node1
[oracle@node1 ~]$ ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/home/oracle/.ssh/id_dsa): 
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /home/oracle/.ssh/id_dsa.
Your public key has been saved in /home/oracle/.ssh/id_dsa.pub.
The key fingerprint is:
7c:41:b5:0f:81:06:ad:30:07:4f:8b:1a:9b:94:68:14 oracle@node1
2)配置信任关系
[oracle@node1 ~]$ ls .ssh
id_dsa  id_dsa.pub  id_rsa  id_rsa.pub  known_hosts
[oracle@node1 ~]$ cat .ssh/id_rsa.pub >>.ssh/authorized_keys
[oracle@node1 ~]$ cat .ssh/id_dsa.pub >>.ssh/authorized_keys
[oracle@node1 ~]$ ssh node2 cat .ssh/id_rsa.pub >>.ssh/authorized_keys
oracle@node2's password: 
[oracle@node1 ~]$ ssh node2  cat .ssh/id_dsa.pub >>.ssh/authorized_keys
oracle@node2's password: 
[oracle@node1 ~]$ scp .ssh/authorized_keys node2:~/.ssh
oracle@node2's password: 
authorized_keys                             100% 1992     2.0KB/s   00:00  
3)验证信任关系  (all nodes)
[oracle@node1 ~]$ ssh node2 date
Thu May  2 14:46:30 CST 2013
[oracle@node1 ~]$ ssh node2-priv date
The authenticity of host 'node2-priv (10.10.10.2)' can't be established.
RSA key fingerprint is 16:28:88:50:27:30:92:cb:49:be:55:61:f6:c2:a1:3f.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'node2-priv,10.10.10.2' (RSA) to the list of known hosts.
Thu May  2 14:47:03 CST 2013
[oracle@node1 ~]$ ssh node1 date
Thu May  2 14:48:19 CST 2013
[oracle@node1 ~]$ ssh node1-priv date
The authenticity of host 'node1-priv (10.10.10.1)' can't be established.
RSA key fingerprint is 39:04:88:3b:54:34:3c:34:d2:df:74:37:fe:5f:92:2d.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'node1-priv,10.10.10.1' (RSA) to the list of known hosts.
Thu May  2 14:48:35 CST 2013
=========grid===========
步骤同oracle 一样
@至此,GI安装之前的准备工作基本完成。


相关内容

热门资讯

人工智能如何重塑电影行业?中国... 北京5月15日电 (记者 孙自法)人工智能生成内容(AIGC)正为众多行业带来深刻巨变,引发广泛关注...
济南隆超取得便捷式喷涂装置专利... 国家知识产权局信息显示,济南隆超石油机械锻造有限公司取得一项名为“一种便捷式喷涂装置”的专利,授权公...
原创 国... ## 国际空间站宇航员在微重力环境下与新鲜水果合影 维生素C很重要,即使在太空中也是如此。 来源:...
原创 低... 手机厂商的618活动陆续都开启了,在苹果宣布iPhone 17 Pro系列降价千元后,华为也迅速跟进...
微信第一行代码曝光! IT之家 5 月 15 日消息,据 CCF 计算机博物馆官方消息,2026 年 5 月 15 日,中...
光鼎电子取得LED数码管灌胶设... 国家知识产权局信息显示,连云港光鼎电子有限公司取得一项名为“一种LED数码管灌胶设备”的专利,授权公...
“兰州瓜农刺死城管”案二审维持... “兰州瓜农刺死城管”案有新进展。澎湃新闻从瓜农王爱文及其辩护律师处了解到,5月15日,甘肃省高院对此...
美国随访记者吐槽在北京被罚款,... 执笔/胡一刀&月半刀&宝刀刀美国福克斯新闻台的主持人,想在北京街头,拍一个阴阳中国社会治理的故事。当...
武大开放校门之争,别急着过度拔... □徐林生5月13日,武汉大学正式取消社会公众进校预约制度。公众无需任何预约,仅凭本人身份证即可在珞珈...
李羚专题调研我市“圆梦工程”未... 5月15日下午,中国社会工作联合会副会长李羚率调研组一行来鄂州,开展“圆梦工程”未成年人心理健康教育...