安裝 Oracle Grid Infrastructure 檢查失敗:目前上限 1024,需求 65536。
ulimit -n 65536
需 root 權限;普通用戶無法超過 hard limit。
# 針對 oracle 與 grid 用戶
oracle soft nofile 65536
oracle hard nofile 65536
grid soft nofile 65536
grid hard nofile 65536
# 同步調整進程數
oracle soft nproc 16384
oracle hard nproc 16384
grid soft nproc 16384
grid hard nproc 16384
確認包含:session required pam_limits.so
fs.file-max = 6815744
套用:sysctl -p
重新登入目標用戶,執行 ulimit -a 確認 open files 顯示 65536。
limits.conf 後必須「重新登入」生效,當前 Shell 不受影響。ulimit -n 修改自身上限,但不影響其他用戶。