root@hostname # su - oracle
could not open session
root@hostname # grep oracle.*nofile /etc/security/limits.conf
oracle - nofile unlimited
set nofile in limits.conf to some number instead of unlimited:
root@hostname # vi /etc/security/limits.conf
root@hostname # grep oracle.*nofile /etc/security/limits.conf
oracle - nofile 65536
root@hostname # su - oracle
-bash-4.1$ id
uid=201(oracle) gid=5504(oinstall) groups=5504(oinstall),251(dba),5502(asmdba),5505(oper)
-bash-4.1$
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/35489/viewspace-1802882/ ,如需转载,请注明出处,否则将追究法律责任。