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,如需转载请自行联系原作者
目录
相关文章
|
7月前
|
Oracle 关系型数据库 MySQL
Oracle linux 8 二进制安装 MySQL 8.4企业版
Oracle linux 8 二进制安装 MySQL 8.4企业版
269 1
|
10月前
|
Oracle 关系型数据库 Linux
linux8安装oracle 11g遇到的问题记录
Oracle 11g在Linux 8上安装时会遇到link编译环节的问题。官方建议忽略安装中的链接错误,安装完成后应用DBPSU 11.2.0.4.240716补丁及一次性补丁33991024,再重新编译二进制文件,并配置监听器和数据库。但因11g已退出服务期,这些补丁需付费获取。网上信息显示22年1月的PSU补丁也可解决问题,找到该补丁后按常规方式打补丁即可。如有需求或疑问可咨询我。
446 20
|
存储 Oracle 关系型数据库
|
Oracle 关系型数据库 网络安全
Oracle 19c 安装教程学习
Oracle 19c 安装教程学习
1711 2
|
2月前
|
Oracle 关系型数据库 Linux
【赵渝强老师】Oracle数据库配置助手:DBCA
Oracle数据库配置助手(DBCA)是用于创建和配置Oracle数据库的工具,支持图形界面和静默执行模式。本文介绍了使用DBCA在Linux环境下创建数据库的完整步骤,包括选择数据库操作类型、配置存储与网络选项、设置管理密码等,并提供了界面截图与视频讲解,帮助用户快速掌握数据库创建流程。
337 93
|
1月前
|
Oracle 关系型数据库 Linux
【赵渝强老师】使用NetManager创建Oracle数据库的监听器
Oracle NetManager是数据库网络配置工具,用于创建监听器、配置服务命名与网络连接,支持多数据库共享监听,确保客户端与服务器通信顺畅。
176 0
|
4月前
|
存储 Oracle 关系型数据库
服务器数据恢复—光纤存储上oracle数据库数据恢复案例
一台光纤服务器存储上有16块FC硬盘,上层部署了Oracle数据库。服务器存储前面板2个硬盘指示灯显示异常,存储映射到linux操作系统上的卷挂载不上,业务中断。 通过storage manager查看存储状态,发现逻辑卷状态失败。再查看物理磁盘状态,发现其中一块盘报告“警告”,硬盘指示灯显示异常的2块盘报告“失败”。 将当前存储的完整日志状态备份下来,解析备份出来的存储日志并获得了关于逻辑卷结构的部分信息。
|
2月前
|
SQL Oracle 关系型数据库
Oracle数据库创建表空间和索引的SQL语法示例
以上SQL语法提供了一种标准方式去组织Oracle数据库内部结构,并且通过合理使用可以显著改善查询速度及整体性能。需要注意,在实际应用过程当中应该根据具体业务需求、系统资源状况以及预期目标去合理规划并调整参数设置以达到最佳效果。
275 8
|
4月前
|
SQL Oracle 关系型数据库
比较MySQL和Oracle数据库系统,特别是在进行分页查询的方法上的不同
两者的性能差异将取决于数据量大小、索引优化、查询设计以及具体版本的数据库服务器。考虑硬件资源、数据库设计和具体需求对于实现优化的分页查询至关重要。开发者和数据库管理员需要根据自身使用的具体数据库系统版本和环境,选择最合适的分页机制,并进行必要的性能调优来满足应用需求。
238 11
|
4月前
|
Oracle 关系型数据库 数据库
数据库数据恢复—服务器异常断电导致Oracle数据库报错的数据恢复案例
Oracle数据库故障: 某公司一台服务器上部署Oracle数据库。服务器意外断电导致数据库报错,报错内容为“system01.dbf需要更多的恢复来保持一致性”。该Oracle数据库没有备份,仅有一些断断续续的归档日志。 Oracle数据库恢复流程: 1、检测数据库故障情况; 2、尝试挂起并修复数据库; 3、解析数据库文件; 4、导出并验证恢复的数据库文件。