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

简介:

系统环境:

操作系统:RedHat EL5

Cluster: Oracle GI(Grid Infrastructure)

Oracle:  Oracle 11.2.0.1.0


如图所示:RAC 系统架构

wKiom1OVeNnQ9ytYAAHMpFKmO50088.jpg

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

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
[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安装之前的准备工作基本完成。










本文转自 客居天涯 51CTO博客,原文链接:http://blog.51cto.com/tiany/1424132,如需转载请自行联系原作者
目录
相关文章
|
SQL Oracle 关系型数据库
本机不安装Oracle客户端,使用PL/SQL Developer连接远程数据库
本机不安装Oracle客户端,使用PL/SQL Developer连接远程数据库
1194 0
|
Oracle 关系型数据库 Java
云服务器安装oracle修改IP地址监听器报错问题
当在云服务器中安装oracle时,按照一般的安装步骤安装后,需要修改两个文件的iIP地址才可以在本机进行访问,修改注意点: 监听器部分不要改成服务器的公网IP,要改成服务器的计算机名字才可以,两个配置文件夹均要修改
389 0
|
Oracle 关系型数据库 Linux
MyEMS开源系统安装之CentOS/RHEL/Rocky/AlmaLinux/Oracle Linux
本指南介绍如何在CentOS/RHEL/Rocky/AlmaLinux/Oracle Linux服务器上部署MyEMS开源能源管理系统。内容涵盖系统准备、数据库配置、多个MyEMS服务(如myems-api、myems-admin、myems-modbus-tcp等)的安装与配置,以及Nginx服务器设置和防火墙规则调整。通过完成所有步骤,您将能够访问MyEMS Admin UI和Web UI,默认端口分别为8001和80,初始登录凭据已提供。
817 0
|
Oracle 关系型数据库 数据库
Win11系统如何安装Oracle数据库(超级详细)
Win11系统如何安装Oracle数据库(超级详细)
1869 0
|
Oracle 关系型数据库 网络安全
Oracle 19c 安装教程学习
Oracle 19c 安装教程学习
5792 2
|
机器学习/深度学习 Oracle 关系型数据库
Oracle 19c单机一键安装脚本分享
Oracle 19c单机一键安装脚本分享
1035 2
|
SQL Oracle 关系型数据库
Oracle数据库基础教程:从安装到基本操作的全面介绍
Oracle数据库基础教程:从安装到基本操作的全面介绍
1023 10
|
Oracle 数据可视化 关系型数据库
Oracle数据库安装及使用Navicat连接oracle2
Oracle数据库安装及使用Navicat连接oracle
259 1
|
Oracle 安全 关系型数据库
Oracle数据库安装及使用Navicat连接oracle1
Oracle数据库安装及使用Navicat连接oracle
497 0

推荐镜像

更多