ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 使用VMware ESXi Server 5.0在OEL6.1上安装 Oracle RAC 11gR1(7)-配置各节点的SSH

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

原创 Linux操作系统 作者:cow977 时间:2012-03-29 18:19:40 0 删除 编辑

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/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2011-03-02

  • 博文量
    629
  • 访问量
    686554