/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

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 \~#

配置后,再次从root用户切换到grid,登录正常

root@db1 \~# su - grid

Last login: Thu Jul 27 18:35:04 CST 2023

grid@db1>

相关推荐
用户0328472220702 小时前
如何搭建本地yum源(上)
运维
A小辣椒1 天前
TShark:Wireshark CLI 功能
linux
A小辣椒1 天前
TShark:基础知识
linux
AlfredZhao1 天前
OCI 明明分配了 200G 系统盘,为什么 df 只看到 30G?
linux·oci
AlfredZhao2 天前
vi 删除指定范围的行,不用再反复按 dd
linux·vi
用户9718356334662 天前
银河麒麟 KY10 申威(SW64) 安装 nginx-1.16.1-2.p01.ky10.sw_64.rpm 详细步骤
linux
猪脚踏浪2 天前
linux 拷贝文件或目录到指定的位置
linux
大树883 天前
金刚石散热越强,管路越先见顶
大数据·运维·服务器·人工智能·ai
摇滚侠3 天前
Linux CentOS7 rpm 安装 MySQL 5.7
linux·运维·mysql
霸道流氓气质3 天前
领域驱动设计(DDD)在 Spring Boot 微服务中的实践指南
运维·spring boot·微服务