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

相关推荐
许白掰1 小时前
Linux入门篇学习——Linux 工具之 make 工具和 makefile 文件
linux·运维·服务器·前端·学习·编辑器
longze_75 小时前
Ubuntu连接不上网络问题(Network is unreachable)
linux·服务器·ubuntu
Dirschs5 小时前
【Ubuntu22.04安装ROS Noetic】
linux·ubuntu·ros
qianshanxue115 小时前
ubuntu 操作记录
linux
AmosTian8 小时前
【系统与工具】Linux——Linux简介、安装、简单使用
linux·运维·服务器
YC运维9 小时前
RIP实验以及核心原理
运维·网络·智能路由器
leo__52010 小时前
自动化运维:使用Ansible简化日常任务
运维·自动化·ansible
霖0010 小时前
C++学习笔记三
运维·开发语言·c++·笔记·学习·fpga开发
CodeWithMe10 小时前
【Note】《Kafka: The Definitive Guide》 第九章:Kafka 管理与运维实战
运维·分布式·kafka