使用VMware ESXi Server 5.0在OEL6.1上安装 Oracle RAC 11gR1(7)-配置各节点的SSH

http://space.itpub.net/81227/viewspace-719245     引言

http://space.itpub.net/81227/viewspace-719246     1. 硬件要求和概述

http://space.itpub.net/81227/viewspace-719341     2. 配置第一个虚拟机

http://space.itpub.net/81227/viewspace-719410     3. 在第一个虚拟机上安装 Oracle Linux 6.1

http://space.itpub.net/81227/viewspace-719476     4. 在第一个虚拟机上配置 Oracle Linux 6.1

http://space.itpub.net/81227/viewspace-719577     5. 在第一个虚拟机上完成安装前系统准备

http://space.itpub.net/81227/viewspace-719677     6. 创建并配置第二个虚拟机

 

 

使用SSH建立用户等效性。在集群就绪服务(CRS)RAC安装过程中,Oracle Universal Installer(OUI)必须能够以oracle的身份将软件复制到所有RAC节点,而不提示输入口令。在Oracle 11g中,可以使用ssh代替rsh完成此操作。

要建立用户等效性,请在两个节点上以oracle用户身份生成用户的公钥和私钥。打开rac1的电源,在这两个节点上执行以下任务。

rac1rac2上分别执行以下命令:

rac1-> mkdir ~/.ssh

rac1-> chmod 700 ~/.ssh

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

87:54:4f:92:ba:ed:7b:51:5d:1d:59:5b:f9:44:da:b6 oracle@rac1.csh1.com

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

31:76:96:e6:fc:b7:25:04:fd:70:42:04:1f:fc:9a:26 oracle@rac1.csh1.com

rac1上执行

rac1-> cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

rac1-> cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys

rac1-> ssh rac2 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

The authenticity of host 'rac2 (192.168.2.132)' can't be established.

RSA key fingerprint is 63:d3:52:d4:4d:e2:cb:ac:8d:4a:66:9f:f1:ab:28:1f.

Are you sure you want to continue connecting (yes/no)? yes

Warning: Permanently added 'rac2,192.168.2.132' (RSA) to the list of known hosts.

oracle@rac2's password:

rac1-> ssh rac2 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys

oracle@rac2's password:

rac1-> scp ~/.ssh/authorized_keys rac2:~/.ssh/authorized_keys

oracle@rac2's password:

authorized_keys                           100% 1716     1.7KB/s   00:00

在每个节点上测试连接。验证当您再次运行以下命令时,系统是否不提示您输入口令。

ssh rac1 date

ssh rac2 date

ssh rac1-priv date

ssh rac2-priv date

ssh rac1.csh1.com date

ssh rac2.csh1.com date

ssh rac1-priv.csh1.com date

ssh rac2-priv.csh1.com date

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/81227/viewspace-719974/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/81227/viewspace-719974/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值