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

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:

[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:

[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:

[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%

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

[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

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

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 *

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

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安装和配置前的准备工作准备就绪

本文出自 “天涯客的blog” 博客,请务必保留此出处http://tiany.blog.51cto.com/513694/1408000

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
提供的源码资源涵盖了Java应用等多个领域,每个领域都包含了丰富的实例和项目。这些源码都是基于各自平台的最新技术和标准编写,确保了在对应环境下能够无缝运行。同时,源码中配备了详细的注释和文档,帮助用户快速理解代码结构和实现逻辑。 适用人群: 适合毕业设计、课程设计作业。这些源码资源特别适合大学生群体。无论你是计算机相关专业的学生,还是对其他领域编程感兴趣的学生,这些资源都能为你提供宝贵的学习和实践机会。通过学习和运行这些源码,你可以掌握各平台开发的基础知识,提升编程能力和项目实战经验。 使用场景及目标: 在学习阶段,你可以利用这些源码资源进行课程实践、课外项目或毕业设计。通过分析和运行源码,你将深入了解各平台开发的技术细节和最佳实践,逐步培养起自己的项目开发和问题解决能力。此外,在求职或创业过程中,具备跨平台开发能力的大学生将更具竞争力。 其他说明: 为了确保源码资源的可运行性和易用性,特别注意了以下几点:首先,每份源码都提供了详细的运行环境和依赖说明,确保用户能够轻松搭建起开发环境;其次,源码中的注释和文档都非常完善,方便用户快速上手和理解代码;最后,我会定期更新这些源码资源,以适应各平台技术的最新发展和市场需求。 所有源码均经过严格测试,可以直接运行,可以放心下载使用。有任何使用问题欢迎随时与博主沟通,第一时间进行解答!

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值