/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>

相关推荐
C++忠实粉丝35 分钟前
Linux环境基础开发工具使用(2)
linux·运维·服务器
康熙38bdc1 小时前
Linux 环境变量
linux·运维·服务器
存储服务专家StorageExpert1 小时前
DELL SC compellent存储的四种访问方式
运维·服务器·存储维护·emc存储
hakesashou2 小时前
python如何比较字符串
linux·开发语言·python
Ljubim.te2 小时前
Linux基于CentOS学习【进程状态】【进程优先级】【调度与切换】【进程挂起】【进程饥饿】
linux·学习·centos
cooldream20092 小时前
Linux性能调优技巧
linux
大G哥2 小时前
记一次K8S 环境应用nginx stable-alpine 解析内部域名失败排查思路
运维·nginx·云原生·容器·kubernetes
醉颜凉2 小时前
银河麒麟桌面操作系统修改默认Shell为Bash
运维·服务器·开发语言·bash·kylin·国产化·银河麒麟操作系统
QMCY_jason3 小时前
Ubuntu 安装RUST
linux·ubuntu·rust
慕雪华年3 小时前
【WSL】wsl中ubuntu无法通过useradd添加用户
linux·ubuntu·elasticsearch