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

相关推荐
BJ_Bonree10 分钟前
数智先锋 | 告别运维黑盒!豪鹏科技×Bonree ONE构建全栈智能可观测体系
运维·科技
Janspran28 分钟前
嵌入式linux学习 -- 进程和线程
linux·运维·学习
Cosmoshhhyyy1 小时前
linux远程部署dify和mac本地部署dify
linux·运维·macos
路多辛3 小时前
Debian新一代的APT软件源配置文件格式DEB822详解
linux·运维·ubuntu·debian
-VE-3 小时前
Linux线程控制
linux
驱动探索者3 小时前
USB ADB 简介
linux·adb·驱动·usb
油丶酸萝卜别吃4 小时前
nginx配置代理服务器
运维·网络·nginx
maomao1713144 小时前
Jenkins 环境部署
运维·jenkins
dessler5 小时前
Hadoop HDFS-部署和基本操作
linux·运维·hdfs
风静雪冷5 小时前
find命令解读
linux