RedHat EL5 安装Oracle 10g RAC之--系统环境配置(2)

简介:

系统环境:

操作系统:RedHat EL5

Cluster: Oracle CRS 10.2.0.1.0

Oracle:  Oracle 10.2.0.1.0


如图所示:RAC 系统架构

wKioL1Np8LPjaUsWAAGvUOVml00805.jpg


6、通过SSH配置主机间的信任关系

node1:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[oracle@node1 ~]$ mkdir .ssh
[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:
fa: 82 :c7: 18 : 88 :6f:f0:c8:a4:cf:2e: 69 :a3:f8: 36 :ad oracle@rac1
[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:
3c: 81 : 49 :df:a0:c6: 12 :7c:2a:ae:d1: 48 :f2:5b: 37 : 78  oracle@rac1

node2:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[root@node2 asm]# su - oracle
[oracle@node2 ~]$ mkdir .ssh
[oracle@node2 ~]$ 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:
5b:6b:f5: 61 : 54 :0c:5a:8d:b5: 14 :b3: 35 : 91 :2e:0b: 31  oracle@rac2
[oracle@node2 ~]$ 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:
5f: 82 : 67 :d0:4a:da:e7:8b: 43 :1a:cf: 41 :dc:8e:9b:c1 oracle@rac2

node1:

1
2
3
4
5
6
7
8
9
10
11
12
13
[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
The authenticity of host  'node2 (192.168.8.11)'  can't be established.
RSA key fingerprint is 1c:b2: 66 :d8:fc:a9: 29 : 45 : 73 :dd:ca: 92 :ca:b8:0a: 20.
Are you sure you want to  continue  connecting (yes/no)? yes
Warning: Permanently added  'node2,192.168.8.11'  (RSA) to the list of known hosts.
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 %

在两个节点上测试信任关系:

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
[oracle@node1 ~]$ ssh node2 date
Mon Sep   3  07 : 47 : 14  CST  2012
 
[oracle@node1 ~]$ ssh node2-priv date
The authenticity of host  'node2-priv (10.10.10.2)'  can't be established.
RSA key fingerprint is 1c:b2: 66 :d8:fc:a9: 29 : 45 : 73 :dd:ca: 92 :ca:b8:0a: 20.
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.
Mon Sep   3  07 : 47 : 37  CST  2012
 
[oracle@node1 ~]$ ssh node1-priv date
Mon Sep   3  07 : 47 : 42  CST  2012
 
[oracle@node1 ~]$ ssh node1 date
The authenticity of host  'node1 (192.168.8.10)'  can't be established.
RSA key fingerprint is 6d:1d:6b:1a: 34 : 63 :f2:f4:4c: 15 :0d:eb: 60 :e0: 13 :4d.
Are you sure you want to  continue  connecting (yes/no)? yes
Warning: Permanently added  'node1,192.168.8.10'  (RSA) to the list of known hosts.
Mon Sep   3  07 : 48 : 57  CST  2012
 
node2:
[oracle@node2 ~]$ ssh node1 date
Mon Sep   3  07 : 48 : 58  CST  2012
 
[oracle@node2 ~]$ ssh node1-priv date
The authenticity of host  'node1-priv (10.10.10.1)'  can't be established.
RSA key fingerprint is 6d:1d:6b:1a: 34 : 63 :f2:f4:4c: 15 :0d:eb: 60 :e0: 13 :4d.
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.
Mon Sep   3  07 : 49 : 08  CST  2012
 
[oracle@node2 ~]$ ssh node2-priv date
Mon Sep   3  07 : 49 : 09  CST  2012
 
[oracle@node2 ~]$ ssh node2 date
Mon Sep   3  07 : 49 : 09  CST  2012


注意:一定保证通过ssh连接时不需要输入任何东东


7、配置Oracle ASM

在Linux 需要安装ASM软件(注意要和内核匹配,在所有节点)

所需的软件包:

[root@rac1 ASM]# ls -l

1
2
3
4
total  236
-rwxr--r--   1  oracle oinstall  129340  Sep   3   2012  oracleasm -2.6. 9 -67. ELsmp -2.0. 3 -1. i686.rpm
-rwxr--r--   1  oracle oinstall   13105  Sep   3   2012  oracleasmlib -2.0. 4 -1. el4.i386.rpm
-rwxr--r--   1  oracle oinstall   83255  Sep   3   2012  oracleasm-support -2.1. 4 -1. el4.i386.rpm

linux 内核版本:

[root@rac1 ASM]# uname -a

1
2
3
Linux rac1 
2.6. 9 -67. ELsmp # 1  SMP
  Wed Nov  7  13 : 58 : 04  EST  2007  i686 i686 i386 GNU/Linux

安装:

[root@rac1 ASM]# rpm -ivh *

1
2
3
4
5
warning: oracleasmlib -2.0. 4 -1. el4.i386.rpm: V3 DSA signature: NOKEY, key ID b38a8516
Preparing...                ########################################### [ 100 %]
   1 :oracleasm-support      ########################################### [  33 %]
   2 :oracleasm -2.6. 9 -67. ELsm########################################### [  67 %]
   3 :oracleasmlib           ########################################### [ 100 %]

配置Oracle ASM:

[root@rac1 ASM]# service oracleasm configure

1
2
3
4
5
6
7
8
9
10
11
12
13
Configuring the Oracle ASM library driver.
This will configure the  on -boot properties of the Oracle ASM library
driver.  The following questions will determine whether the driver is
loaded  on  boot  and  what permissions it will have.  The current values
will be shown  in  brackets ( '[]' ).  Hitting <ENTER> without typing an
answer will keep that current value.  Ctrl-C will abort.
Default user to own the driver interface []: oracle
Default group to own the driver interface []: dba
Start Oracle ASM library driver  on  boot (y/n) [n]: y
Scan  for  Oracle ASM disks  on  boot (y/n) [y]:
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [  OK  ]
Scanning the system  for  Oracle ASMLib disks: [  OK  ]

@至此Oracle 10g RAC安装和配置前的准备工作准备就绪










本文转自 客居天涯 51CTO博客,原文链接:http://blog.51cto.com/tiany/1408000,如需转载请自行联系原作者
目录
相关文章
|
8月前
|
安全 Linux 网络安全
如何在 VM 虚拟机中安装 Red Hat Enterprise Linux 9.3 操作系统保姆级教程(附链接)
如何在 VM 虚拟机中安装 Red Hat Enterprise Linux 9.3 操作系统保姆级教程(附链接)
|
存储 关系型数据库 MySQL
Red Hat 安装MySQL 8.0与 Navicat
Red Hat 安装 MySQL 8.0 1、更新软件包列表 在添加 MySQL 存储库后,运行以下命令以更新软件包列表: sudo yum update 2、安装MySQL服务器和客户端 执行以下命令安装MySQL 8.0服务器和客户端软件包: sudo yum install -y mysql-server 3、启动MySQL服务 安装完成后,MySQL 服务器应该已经自动启动。如果没有启动,您可以运行以下命令手动启动服务: sudo systemctl start mysqld 启用 MySQL 服务的开机启动,可以运行以下命令: sudo systemctl enable mysqld
302 1
|
2月前
|
消息中间件 Linux RocketMQ
在Red Hat Enterprise Linux 9上使用Docker快速安装并部署
通过以上步骤,你可以在Red Hat Enterprise Linux 9上使用Docker快速安装并部署RocketMQ。这种方法不仅简化了安装过程,还提供了一个灵活的环境来管理和扩展消息队列系统。RocketMQ作为一款高性能的分布式消息系统,通过Docker可以实现快速部署和高效管理。
96 2
|
2月前
|
消息中间件 Linux RocketMQ
在Red Hat Enterprise Linux 9上使用Docker快速安装并部署
通过以上步骤,你可以在Red Hat Enterprise Linux 9上使用Docker快速安装并部署RocketMQ。这种方法不仅简化了安装过程,还提供了一个灵活的环境来管理和扩展消息队列系统。RocketMQ作为一款高性能的分布式消息系统,通过Docker可以实现快速部署和高效管理。
68 3
|
8月前
|
Oracle 关系型数据库
oracle rac 手工安装补丁,不适用auto
oracle rac 手工安装补丁,不适用auto
92 3
|
8月前
|
Linux Docker 容器
Red Hat系列Docker安装与移除
Docker 安装 添加 Docker 官方 YUM 源 sudo yum-config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo 安装 Docker Engine sudo yum install -y docker-ce docker-ce-cli containerd.io 启动 Docker 服务并设置开机自启 sudo systemctl start docker sudo systemctl enable docker 验证 Docker 安装 docker --versio
242 0
|
存储 Java Linux
Red Hat 安装JDK与IntelliJ IDEA
YUM是基于Red Hat的Linux发行版的一个强大而用户友好的包管理工具。轻松地管理软件包,无需手动配置环境变量,也不必担心解决依赖关系。它从远程存储库获取软件包,并处理安装过程,使其非常方便。YUM在维护系统稳定性和正常运行方面扮演着关键角色,通过有效地管理软件包更新和依赖关系。
166 5
|
关系型数据库 Linux 数据库
百度搜索:蓝易云【Redhat Linux9上安装DB2【详解】】
注意事项: - 安装过程中需要注意所选的软件包版本和系统依赖。 - 在创建 DB2 用户和组时,可以使用自己的用户名和组名,但需要与后续操作一致。 - 在配置环境变量时,需要注意所填写的路径是否正确,否则会导致启动 DB2 失败。 - 在启动 DB2 时,需要以 DB2 用户身份进行操作,否则会提示权限不足。
114 0
|
网络协议 关系型数据库 MySQL
Red Hat enterprise linux 5 -mysql安装步骤
Red Hat enterprise linux 5 -mysql安装步骤
116 0
|
编解码 Java Linux
linux【redhat&ubuntu】下ffmpeg-3.1安装编译及视频转码
这篇是几年前整理的老文章了,当时在调研流视频推送及播放相关技术,并在项目中应用,使用到ffmpeg,所以整理了这篇文章,但并未发布。最近又有相关的技术需求,所以整理出来,作为一个新的开始。
332 0

推荐镜像

更多