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

相关推荐
---学无止境---4 分钟前
Linux中内核和用户空间通信send_uevent函数的实现
linux·网络
艾莉丝努力练剑30 分钟前
【C++:继承】C++面向对象继承全面解析:派生类构造、多继承、菱形虚拟继承与设计模式实践
linux·开发语言·c++·人工智能·stl·1024程序员节
塔能物联运维37 分钟前
物联网运维中基于强化学习的自动化决策优化技术
运维·物联网·自动化
JZC_xiaozhong40 分钟前
基于KPaaS平台实现的制造业端到端业务流程自动化
运维·自动化·bpm·数据集成与应用集成·流程设计可视化·流程监控·业务流程管理系统
报错小能手41 分钟前
项目——基于C/S架构的预约系统平台(3)
linux·开发语言·笔记·学习·架构·1024程序员节
星空的资源小屋1 小时前
Tuesday JS,一款可视化小说编辑器
运维·网络·人工智能·编辑器·电脑·excel
心寒丶1 小时前
Linux基础知识(三、Linux常见操作目录命令)
linux·运维·服务器·1024程序员节
ajassi20001 小时前
开源 Linux 服务器与中间件(十二)FRP内网穿透应用
linux·服务器·开源·frp
追风少年ii1 小时前
脚本更新--CosMx、Xenium的邻域通讯分析(R版本)
linux·python·r语言·r·单细胞·培训
馨谙2 小时前
Bash Shell 脚本编程入门详解
linux·bash