Linux Centos 7下静默安装Oracle11gR2

Linux Centos 7下静默安装Oracle11gR2

准备工作

  1. 确认主机名称一致

    [root@ora11g ~]# vim /etc/hosts
    192.168.134.159    ora11g
    
  2. 上传数据库安装的压缩文件

    [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文件夹
    
  3. 验证所需要的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
    

修改系统文件参数

  1. 配置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
    
  2. 配置资源使用情况

    # 添加如下参数
    [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
    
  3. 登录设置

    # 追加如下参数
    [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
        
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值