I am trying to learn more about RAC and have setup Oracle Linux 7 on Virtual box by following these instructions
Oracle RAC 12c Database on Linux Using VirtualBox
It seems I want to try and set up SSH prior to installation of the GRID software. SO i have followed these steps.
https://docs.oracle.com/cd/E11882_01/install.112/e41961/manpreins.htm#CWLIN406
Well When i try to test ssh between nodes once it is setup it always ask for a password. I noticed that in my terminal prompt that it says oracle@localhost and the authorized_keys file says oracle@localhost.localdomain so I followed these steps.
gedit /etc/sysconfig/network
and put in the hostname there.
# Created by anaconda
# oracle-rdbms-server-12cR1-preinstall : Add NOZEROCONF=yes
NOZEROCONF=yes
HOSTNAME=rac1.localdomain
i then edited /etc/hosts to this
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
# Private
192.168.10.1 rac1-priv.localdomain rac1-priv
192.168.10.2 rac2-priv.localdomain rac2-priv
# Public
192.168.56.71 rac1.localdomain rac1
192.168.56.72 rac2.localdomain rac2
# Virtual
192.168.56.81 rac1-vip.localdomain rac1-vip
192.168.56.82 rac2-vip.localdomain rac2-vip
# SCAN
192.168.56.91 rac-scan.localdomain rac-scan
192.168.56.92 rac-scan.localdomain rac-scan
192.168.56.93 rac-scan.localdomain rac-scan
When i did all of the above and type HOSTNAME and it still returns localhost and my terminal says oracle@localhost. So i went under systemtools-->settings-->details and found another setting for the name. it had localhost.localdomain. I changed that to rac1.localdomain. But now when I open a terminal it says rac-localdomain. So then I went and put only rac1 and now terminal says rac1. I then went in a created my RSA keys again and now the authorized_keys file says oracle@rac1.localdomain and oracle@rac1 with keys for each of those names.
If I then go in and try to ssh between the two nodes it again asks for a password. So what gives here? What is the best approach to solving this issue?
in General Database Discussions • Reply • Like (0)