CentOS7 安装oracle11g
环境
OS: CentOS7 64bit
系统准备
查看swap分区大小 建议2G以上
grep SwapTotal /proc/meminfo
或
free -m
调整swap大小
dd if=/dev/zero of=/var/swapfile bs=1M count=1024
调整完成后需要重新打开swap
swapon /var/swapfile
验证swap分区是否修改成功
free -m
修改系统标志
由于oracle默认不支持Centos
vim /etc/redhat-release
删除CentOS Linux release 7.6.1810 (Core) 重新添加位redhat-7
修改sysctl.conf添加如下内容
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
kernel.shmall = 2097152
kernel.shmmax = 2147483648
net.ipv4.ip_local_port_range = 9000 65500
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.conf.all.rp_filter = 1
net.core.rmem_default = 262144
net.core.rmem_max= 4194304
net.core.wmem_default= 262144
net.core.wmem_max= 1048576
修改完后,启用新的配置
sysctl -p
安装需要的软件包
yum -y install binutils* compat-libcap1* compat-libstdc++* gcc* gcc-c++* glibc* glibc-devel* ksh* libaio* libaio-devel* libgcc* libstdc++* libstdc++-devel* libXi* libXtst* make* sysstat* elfutils* unixODBC* unzip lrzsz
创建Oracle用户和组
groupadd oracleinstall
创建DBA用户和组
groupadd dba