一、响应文件准备
我们直接使用软件解压后的response文件夹中的响应文件模板进行修改
选择当前服务器的主机名,产品目录是在已存在的/u01/app目录基础上自动创建的无需提前创建oraInventory
按需选择语言,具体语言配置参考表格
一般rac默认选择安装类型为CRS_CONFIG
对应正常的用户组即可
集群名称GNS及相关参数配置成false
集群节点得主机名和VIP名进行配置需要与hosts文件保持一致,网卡类型按照实际网卡配置进行选择:1为public 2为private
hosts
ASM配置
asm的管理员密码必须配置否则安装报错,配置创建voting disk的磁盘组CRS
配置磁盘组所需的共享磁盘及共享磁盘路径,配置monitor的密码
二、所有节点ssh互信配置
在一节点软件安装目录下执行
[root@racdg2-1 software]# su - grid
[grid@racdg2-1 ~]$ cd /software/grid/sshsetup/
[grid@racdg2-1 sshsetup]$ ls
sshUserSetup.sh
[grid@racdg2-1 sshsetup]$
./sshUserSetup.sh -user grid -hosts "racdg2-1 racdg2-2 racdg2-3" -advanced -noPromptPassphrase
[grid@racdg2-1 sshsetup]$ ./sshUserSetup.sh -user grid -hosts "racdg2-1 racdg2-2 racdg2-3" -advanced -noPromptPassphrase
The output of this script is also logged into /tmp/sshUserSetup_2024-06-25-16-17-49.log
Hosts are racdg2-1 racdg2-2 racdg2-3
user is grid
Platform:- Linux
Checking if the remote hosts are reachable
PING racdg2-1.com.cn (192.168.213.131) 56(84) bytes of data.
64 bytes from racdg2-1.com.cn (192.168.213.131): icmp_seq=1 ttl=64 time=0.014 ms
64 bytes from racdg2-1.com.cn (192.168.213.131): icmp_seq=2 ttl=64 time=0.021 ms
64 bytes from racdg2-1.com.cn (192.168.213.131): icmp_seq=3 ttl=64 time=0.020 ms
64 bytes from racdg2-1.com.cn (192.168.213.131): icmp_seq=4 ttl=64 time=0.022 ms
64 bytes from racdg2-1.com.cn (192.168.213.131): icmp_seq=5 ttl=64 time=0.018 ms
--- racdg2-1.com.cn ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3999ms
rtt min/avg/max/mdev = 0.014/0.019/0.022/0.003 ms
PING racdg2-2.com.cn (192.168.213.132) 56(84) bytes of data.
64 bytes from racdg2-2.com.cn (192.168.213.132): icmp_seq=1 ttl=64 time=0.159 ms
64 bytes from racdg2-2.com.cn (192.168.213.132): icmp_seq=2 ttl=64 time=0.178 ms
64 bytes from racdg2-2.com.cn (192.168.213.132): icmp_seq=3 ttl=64 time=0.162 ms
64 bytes from racdg2-2.com.cn (192.168.213.132): icmp_seq=4 ttl=64 time=0.213 ms
64 bytes from racdg2-2.com.cn (192.168.213.132): icmp_seq=5 ttl=64 time=0.154 ms
--- racdg2-2.com.cn ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4000ms
rtt min/avg/max/mdev = 0.154/0.173/0.213/0.023 ms
PING racdg2-3.com.cn (192.168.213.133) 56(84) bytes of data.
64 bytes from racdg2-3.com.cn (192.168.213.133): icmp_seq=1 ttl=64 time=0.261 ms
64 bytes from racdg2-3.com.cn (192.168.213.133): icmp_seq=2 ttl=64 time=0.205 ms
64 bytes from racdg2-3.com.cn (192.168.213.133): icmp_seq=3 ttl=64 time=0.348 ms
64 bytes from racdg2-3.com.cn (192.168.213.133): icmp_seq=4 ttl=64 time=0.211 ms
64 bytes from racdg2-3.com.cn (192.168.213.133): icmp_seq=5 ttl=64 time=0.357 ms
--- racdg2-3.com.cn ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4003ms
rtt min/avg/max/mdev = 0.205/0.276/0.357/0.066 ms
Remote host reachability check succeeded.
The following hosts are reachable: racdg2-1 racdg2-2 racdg2-3.
The following hosts are not reachable: .
All hosts are reachable. Proceeding further...
firsthost racdg2-1
numhosts 3
The script will setup SSH connectivity from the host racdg2-1 to all
the remote hosts. After the script is executed, the user can use SSH to run
commands on the remote hosts or copy files between this host racdg2-1
and the remote hosts without being prompted for passwords or confirmations.
NOTE 1:
As part of the setup procedure, this script will use ssh and scp to copy
files between the local host and the remote hosts. Since the script does not
store passwords, you may be prompted for the passwords during the execution of
the script whenever ssh or scp is invoked.
NOTE 2:
AS PER SSH REQUIREMENTS, THIS SCRIPT WILL SECURE THE USER HOME DIRECTORY
AND THE .ssh DIRECTORY BY REVOKING GROUP AND WORLD WRITE PRIVILEDGES TO THESE
directories.
Do you want to continue and let the script make the above mentioned changes (yes/no)?
yes
The user chose yes
User chose to skip passphrase related questions.
Creating .ssh directory on local host, if not present already
Creating authorized_keys file on local host
Changing permissions on authorized_keys to 644 on local host
Creating known_hosts file on local host
Changing permissions on known_hosts to 644 on local host
Creating config file on local host