Oracle 11g RAC INS-06006 Passwordless SSH connectivity not set up between the following node(s) 解决方法

 

一.问题描述

       在VBox 上安装Oracle 11.2.0.1 的RAC, 在SSH 配置时报错:

INS-06006: Passwordless SSHconnectivity not set up between the following node(s)

 

 

 

注意:

这里奇怪的表现是我们setup是成功,仅仅是Test 失败。

 

 

二.测试一

尝试在2个节点手工的执行测试命令:

[oracle@rac1 ~]$ ssh rac2 date

Tue Jun 26 19:48:01 CST 2012

[oracle@rac1 ~]$ ssh rac1 date

Tue Jun 26 19:48:11 CST 2012

 

[oracle@rac2 ~]$ ssh rac1 date

Tue Jun 26 19:48:27 CST 2012

[oracle@rac2 ~]$ ssh rac2 date

Tue Jun 26 19:48:30 CST 2012

 

SSH 是正常的,也就是说我们这里的配置是有效的,只是显示为失败,但是这里通不过,安装是继续不了的。

 

三.测试三

SSH的配置,在Oracle 10g的RAC 里是需要手工配置的,在11g里可以在OUI中自动配置。

 

手工配置参考:

Redhat 5.4 +ASM + RAW+ Oracle 10g RAC 安装文档

http://www.cndba.cn/Dave/article/1010

 

尝试手工移除SSH的相关配置文件:

[oracle@rac1 ~]$ cd $HOME/.ssh

[oracle@rac1 .ssh]$ pwd

/home/oracle/.ssh

[oracle@rac1 .ssh]$ ll

total 100

-rw-r--r--. 1 oracle oinstall  8542 Jun 26 19:46 authorized_keys

-rw-------. 1 oracle oinstall   667 Nov 22 2011 authorized_keys2

-rw-r--r-- 1 oracle oinstall  7879 Jun 2619:46 authorized_keys.ri.bak

-rw-r--r-- 1 oracle oinstall    22 Jun 2619:46 config

-rw-r--r-- 1 oracle oinstall    22 Jun 2619:33 config.ri.bak

-rw-------. 1 oracle oinstall   887 Jun 26 19:46 identity

-rw-r--r--. 1 oracle oinstall   221 Jun 26 19:46 identity.pub

-rw------- 1 oracle oinstall   887 Jun 2619:46 id_rsa

-rw-r--r-- 1 oracle oinstall   221 Jun 2619:46 id_rsa.pub

-rw-r--r-- 1 oracle oinstall   221 Jun 2619:34 id_rsa.pub.ri.bak

-rw------- 1 oracle oinstall   887 Jun 2619:34 id_rsa.ri.bak

-rw-r--r--. 1 oracle oinstall 20981 Jun 2619:49 known_hosts

-rw-r--r-- 1 oracle oinstall 14248 Jun 26 19:34 known_hosts.ri.bak

[oracle@rac1 .ssh]$ rm -rf *

 

 

[oracle@rac2 ~]$ cd $HOME/.ssh

[oracle@rac2 .ssh]$ ll

total 68

-rw-r--r--. 1 oracle oinstall  8542 Jun 26 19:46 authorized_keys

-rw-------. 1 oracle oinstall   667 Nov 22 2011 authorized_keys2

-rw-r--r-- 1 oracle oinstall  7658 Jun 2619:42 authorized_keys.ri.bak

-rw-------. 1 oracle oinstall   883 Jun 26 19:46 identity

-rw-r--r--. 1 oracle oinstall   221 Jun 26 19:46 identity.pub

-rw------- 1 oracle oinstall   883 Jun 2619:46 id_rsa

-rw-r--r-- 1 oracle oinstall   221 Jun 2619:46 id_rsa.pub

-rw-r--r--. 1 oracle oinstall 20981 Jun 2619:49 known_hosts

[oracle@rac2 .ssh]$ rm -rf *

 

 

再次SSH,还是同样的错误。

 

四.测试四

MOS上搜了一下,有一篇文章:

TOP Note: Solutions for Typical 11gR2 GridInfrastructure/RAC Database runInstaller Issues [ID 1056713.1]

 

里面对这个问题的说明:

 

[INS-06006]Passwordless SSH connectivity not set up between the following node(s): [node1,node2]. CVU may reports "PRVF-4007 : User equivalence check failed foruser "user"" for same error

可能的原因:

(1)    Grid user does not havepassword on OS level, the fix is to set password with "passwd"command.

(2)    If OUI is able to setuppasswordless SSH connectivity but still shows the error, likely"ping" command is inaccessible - grid user should be able to executeping command.

(3)    OS command ssh or scp are notin expected location, the workaround is to either create symbolic link on allnodes or export the following environment variables before starting OUI

 

ln -s /usr/local/bin/ssh /usr/bin/ssh
ln -s /usr/local/bin/scp /usr/bin/scp

OR

export ORACLE_SRVM_REMOTESHELL=/usr/local/bin/ssh
export ORACLE_SRVM_REMOTECOPY=/usr/local/bin/ssh

Note: /usr/local/bin is the location for ssh and scp, if ssh and scp arelocated in somewhere else, replace it accordingly

 

 

五.测试五

       我这里的问题和MOS上说的不一样,第一我们在新开的ssh窗口测试,是正常的,仅仅在安装窗口不能测试通过。

       我安装之前仅仅修改了一下环境变量,即修改了/home/oracle/.bash_profile文件,所以尝试source了一下,并重新登陆,来进行安装:

[oracle@rac1 ~]$ source ~/.bash_profile

 


 

 

这次验证通过,由此可见,环境变量的问题也会导致 INS-06006 的错误出现。

 

 

 

 

 

-------------------------------------------------------------------------------------------------------

版权所有,文章允许转载,但必须以链接方式注明源地址,否则追究法律责任!

QQ:492913789

Email:ahdba@qq.com

Blog:  http://www.cndba.cn/dave

Weibo: http://weibo.com/tianlesoftware

Twitter: http://twitter.com/tianlesoftware

Facebook: http://www.facebook.com/tianlesoftware

Linkedin: http://cn.linkedin.com/in/tianlesoftware

 

 

-------加群需要在备注说明Oracle表空间和数据文件的关系,否则拒绝申请----

DBA1 群:62697716(满);   DBA2 群:62697977(满)  DBA3 群:62697850(满)  

DBA 超级群:63306533(满);  DBA4 群:83829929   DBA5群: 142216823

DBA6 群:158654907    DBA7 群:172855474   DBA总群:104207940

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值