1、修改主机名 rac1&rac2(两台都要更改,注:rac1 rac2别改混了)
hostname rac1
vi /etc/sysconfig/network
vi /etc/hosts
127.0.0.1localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.72.10 rac1
192.168.72.20 rac2
10.10.10.10 rac1priv
10.10.10.20 rac2priv
192.168.72.123 rac1vip
192.168.72.124 rac2vip
192.168.72.125 racscanip
注:虚拟机上添加网卡设备,rac1的eth1改为10.10.10.11 rac2的eth1改为10.10.10.22(eth1为各自的私有网)
2、安装软件包
配置 yum 源
yum install -y binutils-* compat-libstdc++-33-* elfutils-libelf-* elfutils-libelf-devel-* gcc-* gcc-c++-* glibc-* glibc-common-* glibc-devel-* glibc-headers-* ksh-* libaio-* libgcc-* libstdc++-* make-* sysstat-* unixODBC-* unixODBC-devel-* compat-libcap*
比单机安装多安装 compat-libcap*
3、修改系统参数
vi /etc/sysctl.conf
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
sysctl -p
vi /etc/security/limits.conf
grid soft nproc 2047
grid hard nproc 16384
grid soft nofile 1024
grid hard nofile 65536
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536