0


/bin/bash: Resource temporarily unavailable

有现场反馈plsql无法连接数据库了,登录环境查看时发现从root切换到grid时报错/bin/bash: Resource temporarily unavailable

[root@db1 ~]# su - grid
Last login: Thu Jul 27 18:45:04 CST 2023
su: failed to execute /bin/bash: Resource temporarily unavailable

使用root用户查看grid用户的nproc和nofile较小,当前连接数2000多

[root@db1 ~]# grep grid /etc/security/limits.conf
grid soft nproc 2047
grid hard nproc 32768
grid soft nofile 1024
grid hard nofile 250000
grid soft stack 10240
grid hard stack 32768

[root@db1 ~]# ps -ef |grep LOCAL=NO|wc -l
2038

处理办法,调整/etc/security/limits.conf文件的grid用户参数,修改后如图:

[root@db1 ~]# grep grid /etc/security/limits.conf
grid soft nproc 20470
grid hard nproc 32768
grid soft nofile 10240
grid hard nofile 250000
grid soft stack 10240
grid hard stack 32768
[root@db1 ~]#

配置后,再次从root用户切换到grid,登录正常

[root@db1 ~]# su - grid
Last login: Thu Jul 27 18:35:04 CST 2023
grid@db1>

标签: 运维 linux

本文转载自: https://blog.csdn.net/kevinyu998/article/details/132048512
版权归原作者 bestsun999 所有, 如有侵权,请联系我们删除。

“/bin/bash: Resource temporarily unavailable”的评论:

还没有评论