安装oracle 11g过程中,prerequisite checks过程中各种failed问题解决

在安装Oracle 11g时,可能会遇到关于packages、OS kernel参数和checks的各种错误。针对这些问题,可以分别通过yum安装必要包、修改/etc/sysctl.conf文件设置kernel参数以及调整Oracle用户shell限制来解决。例如,对于semopm、file-max、ip_local_port_range、aio-max-nr等参数,都需要在sysctl.conf中设置预期值,并使用`sysctl -p`应用更改。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题一:Packages报错

yum环境配置好后,就可以运行yum install packagename命令进行包的安装

 yum install compat-libstdc++-33  elfutils-libelf-devel  glibc-devel 

libaio-devel  sysstat  unixODBC  unixODBC-devel


问题二、OS kernel parameter报错:

      1) semopm  验证不通过

This is prerequisite condition to test whether the OS kernel parameter "semopm" is properly set. (more details)

Expected Value 100

Actual Value 32

 

解决办法:

编辑/etc/sysctl.conf文件,添加

kernel.sem=250 32000 100 128

 

启用刚所做的变更。 输入命令: /sbin/sysctl -p

 

      2) file-max 验证不通过

This is prerequisite condition to test whether the OS kernel parameter "file-max" is properly set. (more details)

Expected Value

 6815744

Actual Value

 65536


解决办法:

编辑/etc/sysctl.conf文件,添加

fs.file-max 6815744


3)ip_local_port_range 验证不通过

ip_local_port_range 

This is prerequisite condition to test whether the OS kernel parameter "ip_local_port_range" is properly set. (more details)

Expected Value

 between 9000 65500

Actual Value

 between 9000 65000


解决办法:

编辑/etc/sysctl.conf文件,添加

net.ipv4.ip_local_port_range 9000 65500


4)aio-max-nr 验证不通过

This is prerequisite condition to test whether the OS kernel parameter "aio-max-nr" is properly set. (more details)

Expected Value

 1048576

Actual Value

 65536

     

解决办法:

编辑/etc/sysctl.conf文件,添加

fs.aio-max-nr 1048576

        

         5)wmem_default、wmem_max、rmem_default、rmem_max验证不通过

         解决办法:

         编辑/etc/sysctl.conf文件,添加

net.core.rmem_default 262144

net.core.rmem_max 4194304

net.core.wmem_default 262144

net.core.wmem_max 1048576

  

6)其他验证不通过


kernel.shmall 2097152

kernel.shmmax 536870912

kernel.shmmni 4096


启用刚所做的变更。 输入命令: /sbin/sysctl -p


问题三、checks报错:

hard limit maximum open file descriptors报错:

解决办法:

为Oracle 用户设置shell限制

增加shell 限制:

    添加下列行到/etc/security/limits.conf 文件:

        oracle              soft    nproc   2047

        oracle              hard    nproc   16384

        oracle              soft    nofile  1024

        oracle              hard    nofile  65536

    添加或编辑/etc/pam.d/login 文件,当下面的条目不存在时:

        session    required     pam_limits.so

    取决于Oracle用户缺省的shell环境,为缺省的shell启动文件作下列更改:

 

    对于Bourne, Bash, or Korn shell, 添加下列行到/etc/profile 文件 (SUSE Linux 则添加到/etc/profile.local):

        if [ $USER = "oracle" ]; then

                if [ $SHELL = "/bin/ksh" ]; then

                      ulimit -p 16384

                      ulimit -n 65536

                else

                      ulimit -u 16384 -n 65536

                fi

        fi



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值