12C rac linux安装环境初始化
###数据库IP地址规划:
172.16.102.15 db01
172.16.102.16 db01-vip
172.16.102.40 db02
172.16.102.18 db02-vip
172.16.102.17 scan
###UDEV磁盘绑定(rhel 7.6)
for i in {2..7};do udevadm info --query=all --name=/dev/dm-$i | grep -i DM_UUID;done
E: DM_UUID=mpath-3600601607aa05100ae28b760ebeba708
E: DM_UUID=mpath-3600601607aa0510010bfd660d296cf58
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-3600601607aa05100ae28b760ebeba708",SYMLINK+="asm_disk01",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-3600601607aa0510010bfd660d296cf58",SYMLINK+="asm_disk02",OWNER="grid",GROUP="asmadmin",MODE="0660"
udevadm control --reload-rules
udevadm trigger
###关闭防火墙和selinux
systemctl stop firewalld.service
systemctl disable firewalld.service
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
grep SELINUX=disabled /etc/selinux/config
s
etenforce 0
###新建用户和目录
groupadd -g 54321 oinstall
groupadd -g 54322 dba
groupadd -g 54323 oper
groupadd -g 54324 backupdba
groupadd -g 54325 dgdba
groupadd -g 54326 kmdba
groupadd -g 54327 asmdba
groupadd -g 54328 asmoper
groupadd -g 54329 asmadmin
groupadd -g 54330 racdba
useradd -u 54321 -g oinstall -G dba,asmdba,backupdba,dgdba,kmdba,racdba,oper oracle
useradd -u 54322 -g oinstall -G asmadmin,asmdba,asmoper,dba grid
#grid soft dir,解压grid软件在该目录:
mkdir -p /u01/app/12.2
#grid base dir:
mkdir -p /u01/app/grid
chown -R grid:oinstall /u01
- 点赞
- 收藏
- 关注作者
评论(0)