超過最大檔案數—Linux-x86_64 Error: 23: Too many open files in system
資料庫啟動後出現如下錯誤,檔案開啟過多
SQL> alter
database open;
alter database open
*
ERROR at line 1:
ORA-00313: open
failed for members of log group 2 of thread 1
ORA-00312: online
log 2 thread 1: '/db/oracle10g/oradata/benguo/redo02.log'
ORA-27041: unable
to open file
Linux-x86_64 Error:
23: Too many open files in system
Additional
information: 2
先對oracle使用者環境的limits.conf做修改,將nofile soft和hard分別增加,但是還是報上述同樣的錯誤。可能是system的檔案數量過多了,而不僅僅只是oracle使用者的限制。
[root@server119
security]# vi /etc/security/limits.conf
oracle soft
nproc 2047
oracle hard
nproc 16384
oracle soft
nofile 40960
oracle hard
nofile 655360
hadoop soft
nofile 4096
hadoop hard
nofile 65536
[root@server119
security]# vi /etc/sysctl.conf
# Kernel sysctl
configuration file for Red Hat Linux
#
# For binary
values, 0 is disabled, 1 is enabled. See
sysctl(8) and
# sysctl.conf(5)
for more details.
# Controls IP
packet forwarding
net.ipv4.ip_forward
= 0
# Controls source
route verification
net.ipv4.conf.default.rp_filter
= 1
# Do not accept
source routing
net.ipv4.conf.default.accept_source_route
= 0
# Controls the
System Request debugging functionality of the kernel
kernel.sysrq = 0
# Controls whether
core dumps will append the PID to the core filename
# Useful for
debugging multi-threaded applications
kernel.core_uses_pid
= 1
# Controls the use
of TCP syncookies
net.ipv4.tcp_syncookies
= 1
# Controls the
maximum size of a message, in bytes
kernel.msgmnb =
65536
# Controls the
default maxmimum size of a mesage queue
kernel.msgmax =
65536
# Controls the
maximum shared segment size, in bytes
kernel.shmmax =
68719476736
# Controls the
maximum number of shared memory segments, in pages
kernel.shmall
= 4294967296
kernel.shmmni
= 4096
kernel.sem
= 250 32000 100
128
fs.file-max =
655360
net.ipv4.ip_local_port_range
= 1024 65000
net.core.rmem_default=262144
net.core.rmem_max=262144
net.core.wmem_default=262144
net.core.wmem_max=262144
"/etc/sysctl.conf"
44L, 1225C written
修改上述的fs.file-max=655360為1310720,適當增加這個引數。
[root@server119
security]# sysctl -p
net.ipv4.ip_forward
= 0
net.ipv4.conf.default.rp_filter
= 1
net.ipv4.conf.default.accept_source_route
= 0
kernel.sysrq = 0
kernel.core_uses_pid
= 1
net.ipv4.tcp_syncookies
= 1
kernel.msgmnb =
65536
kernel.msgmax =
65536
kernel.shmmax =
68719476736
kernel.shmall
= 4294967296
kernel.shmmni
= 4096
kernel.sem
= 250 32000 100
128
fs.file-max =
1310720
net.ipv4.ip_local_port_range
= 1024 65000
net.core.rmem_default
= 262144
net.core.rmem_max =
262144
net.core.wmem_default
= 262144
net.core.wmem_max =
262144
而後可以正常開啟資料庫。
SQL> alter
database open;
Database altered.
[@more@]
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25362835/viewspace-1059191/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Too many open files in system處理
- Linux - 修改檔案控制程式碼數(Too many open files 異常)Linux
- Too many open files報錯處理
- titan-hadoop “Too many open files”修正Hadoop
- Ubuntu 解決 Too many open files 問題Ubuntu
- mysql備份提示 too many open files Errornumber 24MySqlError
- weblogic日誌報錯too many open filesWeb
- 持續迴圈讀檔案,導致的too many open files如何解決
- 解決WebLogic中Too many open files異常Web
- nginx 報錯 accept4 () failed (24: Too many open files)NginxAI
- docker中使用systemctl命令時報Too many open files錯誤Docker
- 解決 Too many symbol filesSymbol
- Nginx報錯: "Too many open files accept" 和 "could not build the server_names_hash"NginxUIServer
- 從原始碼角度談談open_files_limit的生成邏輯及"Too many open files"的解決思路原始碼MIT
- Too many files with unapproved license異常APP
- Weblogic BEA-002616 java.io.IOException: Too many open filesWebJavaException
- MySQL ERROR 1040: Too many connectionsMySqlError
- linux Too Many Files 問題檢視和解決方法Linux
- Mysql報Too many connections,不要亂用ulimit了,看看如何正確修改程式的最大檔案數MySqlMIT
- [20230104]Oracle too many parse errors PARSE ERROR.txtOracleError
- MySQL:5.7.11 超過最大開啟檔案數crash原因解析MySql
- too many open files 與程式網路連線資料檢視[轉載自北風之神巨佬的文章]
- MySQL: Too many connectionsMySql
- Linux-x86_64 Error: 30: Read-only file systemLinuxError
- 誰控制資料檔案最大數限制是 db_files還是控制檔案中的maxdatafiles??
- 【MySQL】Too many connections 案例一則MySql
- [HP-UX] cannot fork: too many processesUX
- NETAPP - LOGIN TOO MANY USERSAPP
- when tag object too many, performance very lowObjectORM
- session_max_open_filesSession
- Files.newDirectoryStream掃描/過濾目錄檔案
- React報錯之Too many re-rendersReact
- nginx 修改 max open files limitsNginxMIT
- MySQL單表最大記錄數不能超過多少?MySql
- 不停機處理oracle超過最大processes數故障Oracle
- Github :git push檔案過大報錯remote: error: GH001: Large files detected.處理方法GithubREMError
- 通過system state dump分析WAITED TOO LONG FOR A ROW CACHE ENQUEUEAIENQ
- 關於mysql的Too many connections問題MySql