oracle11.2.0.4 RAC 保姆级静默安装(一) GI集群软件

一、响应文件准备

我们直接使用软件解压后的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

  • 18
    点赞
  • 13
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

森森淼淼丶

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值