/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 ![](https://file.jishuzhan.net/article/1686632196862906369/d841272cbc8145f9b79fb47a4c8d375c.png) \[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 \~\]# ![](https://file.jishuzhan.net/article/1686632196862906369/e9a05977bcd540ba98be9d4255a27eb4.png) 配置后,再次从root用户切换到grid,登录正常 \[root@db1 \~\]# su - grid Last login: Thu Jul 27 18:35:04 CST 2023 grid@db1\>

相关推荐
fish_xk36 分钟前
Linux开方工具
linux·运维·服务器
中科三方3 小时前
输入域名后无法访问?教你快速区分域名解析问题与服务器问题
运维·服务器
internet Boy3 小时前
桌面运维面试常见问题及标准答案(完整版)
运维
用户2367829801683 小时前
Linux find 命令深度解析:从递归遍历到性能优化的完整实现
linux
ascarl20103 小时前
Linux.do 帖子整理:AI 调用 Chrome DevTools 调试前端页面
linux·前端·人工智能
Slow菜鸟3 小时前
Docker 学习篇(三)| Docker安装指南(Linux版)
linux·学习·docker
liuluyang5304 小时前
linux kernel CONFIG_KCMP解析
linux·运维·服务器
Koma_zhe4 小时前
【Ansible开源自动化运维工具】别再手动装监控了,Ansible能让上百台机器同时搞定Node Exporter(1)
运维·开源·ansible
斯班奇的好朋友阿法法5 小时前
RHEL 7.3 离线安装 RPM 包
linux