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

相关推荐
大筒木老辈子19 小时前
Linux笔记---计算机网络概述
linux·笔记·计算机网络
小白考证进阶中19 小时前
终于赶在考试券过期前把Oracle OCP证书考下来了!
运维·数据库·oracle·dba·开闭原则·数据库管理员
keep__go20 小时前
postgresql9.2.4 跨版本升级14.6
linux·运维·数据库·postgresql
Doris_LMS21 小时前
Git的强软硬回退(三)
运维·服务器·数据库·git·idea
深思慎考21 小时前
LinuxC++项目开发日志——高并发内存池(1-定长内存池)
linux·c++
(Charon)21 小时前
基于 epoll 的高并发服务器原理与实现(对比 select 和 poll)
运维·服务器
Jtti21 小时前
在 Debian 系统上清理缓存的方式和具体操作方法
运维·缓存·debian
伐尘1 天前
【mac】如何在 macOS 终端中高效查找文件:五种实用方法
运维·macos
川石课堂软件测试1 天前
Oracle 数据库如何查询列
linux·数据库·sql·功能测试·oracle·grafana·prometheus
zzu123zsw1 天前
第15章 Jenkins最佳实践
运维·jenkins