文章目录
Linux Centos 7下静默安装Oracle11gR2
准备工作
确认主机名称一致
[root@ora11g ~]# vim /etc/hosts 192.168.134.159 ora11g
上传数据库安装的压缩文件
[root@ora11g ~]# ll -rw-r--r-- 1 root root 1239269270 Apr 25 20:41 linux.x64_11gR2_database_1of2.zip -rw-r--r-- 1 root root 1111416131 Apr 25 20:40 linux.x64_11gR2_database_2of2.zip [root@ora11g ~]# unzip linux.x64_11gR2_database_1of2.zip [root@ora11g ~]# unzip linux.x64_11gR2_database_2of2.zip # 解压完成出现database文件夹
验证所需要的RPM包是否齐全
[root@ora11g ~]# rpm -q binutils compat-libcap1 compat-libstdc++-33 gcc gcc-c++ glibc glibc-devel ksh binutils-2.27-41.base.el7_7.3.x86_64 compat-libcap1-1.10-7.el7.x86_64 compat-libstdc++-33-3.2.3-72.el7.x86_64 gcc-4.8.5-39.el7.x86_64 gcc-c++-4.8.5-39.el7.x86_64 glibc-2.17-292.el7.x86_64 glibc-devel-2.17-292.el7.x86_64 ksh-20120801-140.el7_7.x86_64 [root@ora11g ~]# rpm -q libgcc libstdc++ libstdc++-devel libaio libaio-devel make sysstat unixODBC unixODBC-devel libgcc-4.8.5-39.el7.i686 libgcc-4.8.5-39.el7.x86_64 libstdc++-4.8.5-39.el7.x86_64 libstdc++-devel-4.8.5-39.el7.x86_64 libaio-0.3.109-13.el7.x86_64 libaio-0.3.109-13.el7.i686 libaio-devel-0.3.109-13.el7.i686 libaio-devel-0.3.109-13.el7.x86_64 make-3.82-24.el7.x86_64 sysstat-10.1.5-18.el7_7.1.x86_64 unixODBC-2.3.1-14.el7.x86_64 unixODBC-devel-2.3.1-14.el7.x86_64
修改系统文件参数
配置linux内核参数
# 添加如下参数 [root@ora11g ~]# vim /etc/sysctl.conf kernel.shmmax = 68719476736 kernel.shmall = 4294967296 fs.file-max = 6815744 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 fs.aio-max-nr = 1048576
配置资源使用情况
# 添加如下参数 [root@ora11g ~]# vim /etc/security/limits.conf oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 oracle hard stack 10240
登录设置
# 追加如下参数 [root@ora11g ~]# vim /etc/pam.d/login session required /lib64/security/pam_limits.so session required pam_limits.so [root@ora11g ~]# vim /etc/profile if [ $USER = "oracle" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536