爲了安全起見,服務器的ssh端口從默認的22修改爲了22222
在安裝RAC時,oracle用戶間做了互信,但是並不能通過ssh直接連接,必須要加上-p 22222才能
這就會導致在安裝crs時驗證不通過,表現爲:
Caught Cluster ExceptionPRKC-1044 : Failed to check remote command execution setup for node tgdb1 using shells /usr/bin/ssh and /usr/bin/rsh
tgdb1: Connection refused
[PRKC-1044 : Failed to check remote command execution setup for node tgdb1 using shells /usr/bin/ssh and /usr/bin/rsh
tgdb1: Connection refused]
[PRKC-1044 : Failed to check remote command execution setup for node tgdb1 using shells /usr/bin/ssh and /usr/bin/rsh
tgdb1: Connection refused
[PRKC-1044 : Failed to check remote command execution setup for node tgdb1 using shells /usr/bin/ssh and /usr/bin/rsh
tgdb1: Connection refused]]
看來oracle是直接調用的ssh命令,並不會加上-p 22222,這就導致了節點間不能通信的假象
解決辦法:
修改/etc/service
把其中ssh 22222/tcp # SSH Remote Login Protocol
的端口修改爲22222解決