vi /etc/sysconfig/network
HOSTNAME=rac2.localdomain
vi .bash_profile
export ORACLE_HOSTNAME=rac2 export ORACLE_SID=racdb2
vi .db_env
export ORACLE_SID=racdb2
vi .grid_env
export ORACLE_SID=+ASM2
vi /etc/inittab
id:3:initdefault:
reboot
ping -c 3 rac1 ping -c 3 rac1-priv ping -c 3 rac2 ping -c 3 rac2-priv nslookup rac-scan ssh rac1 date ssh rac1-priv date ssh rac2 date ssh rac2-priv date
[root@rac1 ~]# ping -c 3 rac1 PING rac1 (10.0.1.101) 56(84) bytes of data. 64 bytes from rac1 (10.0.1.101): icmp_seq=1 ttl=64 time=0.028 ms 64 bytes from rac1 (10.0.1.101): icmp_seq=2 ttl=64 time=0.071 ms 64 bytes from rac1 (10.0.1.101): icmp_seq=3 ttl=64 time=0.056 ms --- rac1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2006ms rtt min/avg/max/mdev = 0.028/0.051/0.071/0.019 ms [root@rac1 ~]# ping -c 3 rac1-priv PING rac1-priv (10.0.5.101) 56(84) bytes of data. 64 bytes from rac1-priv (10.0.5.101): icmp_seq=1 ttl=64 time=0.023 ms 64 bytes from rac1-priv (10.0.5.101): icmp_seq=2 ttl=64 time=0.053 ms 64 bytes from rac1-priv (10.0.5.101): icmp_seq=3 ttl=64 time=0.056 ms --- rac1-priv ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 0.023/0.044/0.056/0.014 ms [root@rac1 ~]# ping -c 3 rac2 PING rac2 (10.0.1.102) 56(84) bytes of data. 64 bytes from rac2 (10.0.1.102): icmp_seq=1 ttl=64 time=0.819 ms 64 bytes from rac2 (10.0.1.102): icmp_seq=2 ttl=64 time=0.643 ms 64 bytes from rac2 (10.0.1.102): icmp_seq=3 ttl=64 time=0.634 ms --- rac2 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2008ms rtt min/avg/max/mdev = 0.634/0.698/0.819/0.090 ms [root@rac1 ~]# ping -c 3 rac2-priv PING rac2-priv (10.0.5.102) 56(84) bytes of data. 64 bytes from rac2-priv (10.0.5.102): icmp_seq=1 ttl=64 time=0.745 ms 64 bytes from rac2-priv (10.0.5.102): icmp_seq=2 ttl=64 time=0.610 ms 64 bytes from rac2-priv (10.0.5.102): icmp_seq=3 ttl=64 time=0.707 ms --- rac2-priv ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2014ms rtt min/avg/max/mdev = 0.610/0.687/0.745/0.060 ms [root@rac1 ~]# nslookup rac-scan Server: 127.0.0.1 Address: 127.0.0.1#53 Name: rac-scan Address: 10.0.1.120 [root@rac1 ~]# ssh rac1 date The authenticity of host 'rac1 (10.0.1.101)' can't be established. RSA key fingerprint is 6c:aa:b3:f6:9b:9d:3b:88:fe:7a:ce:6d:10:ee:0c:eb. Are you sure you want to continue connecting (yes/no) root@rac1's password: 2017. 04. 15. (토) 23:37:03 KST [root@rac1 ~]# ssh rac1 date The authenticity of host 'rac1 (10.0.1.101)' can't be established. RSA key fingerprint is 6c:aa:b3:f6:9b:9d:3b:88:fe:7a:ce:6d:10:ee:0c:eb. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'rac1,10.0.1.101' (RSA) to the list of known hosts. root@rac1's password: 2017. 04. 15. (토) 23:37:18 KST [root@rac1 ~]# ssh rac1-priv date The authenticity of host 'rac1-priv (10.0.5.101)' can't be established. RSA key fingerprint is 6c:aa:b3:f6:9b:9d:3b:88:fe:7a:ce:6d:10:ee:0c:eb. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'rac1-priv,10.0.5.101' (RSA) to the list of known hosts. root@rac1-priv's password: 2017. 04. 15. (토) 23:37:36 KST [root@rac1 ~]# ssh rac2 date The authenticity of host 'rac2 (10.0.1.102)' can't be established. RSA key fingerprint is 6c:aa:b3:f6:9b:9d:3b:88:fe:7a:ce:6d:10:ee:0c:eb. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'rac2,10.0.1.102' (RSA) to the list of known hosts. root@rac2's password: 2017. 04. 15. (토) 23:37:47 KST [root@rac1 ~]# ssh rac2-priv date The authenticity of host 'rac2-priv (10.0.5.102)' can't be established. RSA key fingerprint is 6c:aa:b3:f6:9b:9d:3b:88:fe:7a:ce:6d:10:ee:0c:eb. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'rac2-priv,10.0.5.102' (RSA) to the list of known hosts. root@rac2-priv's password: 2017. 04. 15. (토) 23:38:06 KST
[root@rac2 ~]# ping -c 3 rac1 PING rac1 (10.0.1.101) 56(84) bytes of data. 64 bytes from rac1 (10.0.1.101): icmp_seq=1 ttl=64 time=0.325 ms 64 bytes from rac1 (10.0.1.101): icmp_seq=2 ttl=64 time=0.417 ms 64 bytes from rac1 (10.0.1.101): icmp_seq=3 ttl=64 time=0.942 ms --- rac1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 0.325/0.561/0.942/0.272 ms [root@rac2 ~]# ping -c 3 rac1-priv PING rac1-priv (10.0.5.101) 56(84) bytes of data. 64 bytes from rac1-priv (10.0.5.101): icmp_seq=1 ttl=64 time=0.377 ms 64 bytes from rac1-priv (10.0.5.101): icmp_seq=2 ttl=64 time=0.519 ms 64 bytes from rac1-priv (10.0.5.101): icmp_seq=3 ttl=64 time=0.517 ms --- rac1-priv ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2002ms rtt min/avg/max/mdev = 0.377/0.471/0.519/0.066 ms [root@rac2 ~]# ping -c 3 rac2 PING rac2 (10.0.1.102) 56(84) bytes of data. 64 bytes from rac2 (10.0.1.102): icmp_seq=1 ttl=64 time=0.023 ms 64 bytes from rac2 (10.0.1.102): icmp_seq=2 ttl=64 time=0.042 ms 64 bytes from rac2 (10.0.1.102): icmp_seq=3 ttl=64 time=0.046 ms --- rac2 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 1999ms rtt min/avg/max/mdev = 0.023/0.037/0.046/0.010 ms [root@rac2 ~]# ping -c 3 rac2-priv PING rac2-priv (10.0.5.102) 56(84) bytes of data. 64 bytes from rac2-priv (10.0.5.102): icmp_seq=1 ttl=64 time=0.016 ms 64 bytes from rac2-priv (10.0.5.102): icmp_seq=2 ttl=64 time=0.049 ms 64 bytes from rac2-priv (10.0.5.102): icmp_seq=3 ttl=64 time=0.056 ms --- rac2-priv ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2001ms rtt min/avg/max/mdev = 0.016/0.040/0.056/0.018 ms [root@rac2 ~]# nslookup rac-scan Server: 127.0.0.1 Address: 127.0.0.1#53 Name: rac-scan Address: 10.0.1.120 [root@rac2 ~]# ssh rac1 date The authenticity of host 'rac1 (10.0.1.101)' can't be established. RSA key fingerprint is 6c:aa:b3:f6:9b:9d:3b:88:fe:7a:ce:6d:10:ee:0c:eb. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'rac1,10.0.1.101' (RSA) to the list of known hosts. root@rac1's password: 2017. 04. 15. (토) 23:39:25 KST [root@rac2 ~]# ssh rac1-priv date The authenticity of host 'rac1-priv (10.0.5.101)' can't be established. RSA key fingerprint is 6c:aa:b3:f6:9b:9d:3b:88:fe:7a:ce:6d:10:ee:0c:eb. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'rac1-priv,10.0.5.101' (RSA) to the list of known hosts. root@rac1-priv's password: 2017. 04. 15. (토) 23:39:35 KST [root@rac2 ~]# ssh rac2 date The authenticity of host 'rac2 (10.0.1.102)' can't be established. RSA key fingerprint is 6c:aa:b3:f6:9b:9d:3b:88:fe:7a:ce:6d:10:ee:0c:eb. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'rac2,10.0.1.102' (RSA) to the list of known hosts. root@rac2's password: 2017. 04. 15. (토) 23:39:46 KST [root@rac2 ~]# ssh rac2-priv date The authenticity of host 'rac2-priv (10.0.5.102)' can't be established. RSA key fingerprint is 6c:aa:b3:f6:9b:9d:3b:88:fe:7a:ce:6d:10:ee:0c:eb. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'rac2-priv,10.0.5.102' (RSA) to the list of known hosts. root@rac2-priv's password: 2017. 04. 15. (토) 23:39:55 KST