centos7.4下安装oracle12c
环境:openjdk version "1.8.0_161",centos7.4,oracle12c
1.安装所需要的依赖
yum install -y binutils.x86_64compat-libcap1.x86_64 gcc.x86_64 gcc-c++.x86_64 glibc.i686glibc.x86_64 \
glibc-devel.i686 glibc-devel.x86_64ksh compat-libstdc++-33 libaio.i686 libaio.x86_64 libaio-devel.i686libaio-devel.x86_64 \
libgcc.i686 libgcc.x86_64libstdc++.i686 libstdc++.x86_64 libstdc++-devel.i686 libstdc++-devel.x86_64libXi.i686 libXi.x86_64 \
libXtst.i686libXtst.x86_64 make.x86_64 sysstat.x86_64
2.添加用户和组
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle
passwd oracle
3.配置内核参数
vim /etc/sysctl.conf
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 900065500
net.core.rmem_default = 262144</