啟動Oracle報錯ORA-27102: out of memory、Linux-x86_64 Error: 28: No space left

feelpurple發表於2018-06-07
生產環境的一套Oracle資料庫,啟動資料庫的時候,報錯。

  1. SQL> startup pfile='/u01/oracle/product/11gr2/db_home/dbs/initerp.ora'
  2. ORA-27102: out of memory
  3. Linux-x86_64 Error: 28: No space left on device

  4. # 報錯原因
  5. # 檢視核心引數配置檔案,發現關於記憶體的核心引數被修改成很小的值,這個值遠遠低於資料庫SGA、PGA記憶體引數設定的值;進而導致資料庫無法啟動。
  6. $ cat sysctl.conf
  7. # Controls the maximum shared segment size, in bytes
  8. kernel.shmmax = 68719476736

  9. # Controls the maximum number of shared memory segments, in pages
  10. kernel.shmall = 4294967296


  11. fs.aio-max-nr = 1048576
  12. fs.file-max = 6815744
  13. kernel.shmmax = 536870912
  14. net.ipv4.ip_local_port_range = 9000 65500
  15. kernel.shmall = 2097152
  16. kernel.shmmax = 2147483648

  17. # 解決方法
  18. # 註釋掉錯誤的引數,重新重新整理核心引數
  19. [root@erp2 ~]# sysctl -p
  20. net.ipv4.ip_forward = 0
  21. net.ipv4.conf.default.rp_filter = 1
  22. net.ipv4.conf.default.accept_source_route = 0
  23. kernel.sysrq = 0
  24. kernel.core_uses_pid = 1
  25. net.ipv4.tcp_syncookies = 1
  26. kernel.msgmnb = 65536
  27. kernel.msgmax = 65536
  28. kernel.shmmax = 68719476736
  29. kernel.shmall = 4294967296
  30. fs.aio-max-nr = 1048576
  31. fs.file-max = 6815744
  32. net.ipv4.ip_local_port_range = 9000 65500
  33. kernel.shmmni = 4096
  34. kernel.sem = 250 32000 100 128
  35. net.core.rmem_default = 262144
  36. net.core.rmem_max = 4194304
  37. net.core.wmem_default = 262144
  38. net.core.wmem_max = 1048576

  39. SQL> startup pfile='/u01/oracle/product/11gr2/db_home/dbs/initerp.ora'
  40. ORACLE instance started.

  41. Total System Global Area 1.0689E+10 bytes
  42. Fixed Size         2216344 bytes
  43. Variable Size         1946160744 bytes
  44. Database Buffers     8724152320 bytes
  45. Redo Buffers         16945152 bytes
  46. Database mounted.
  47. Database opened.
  48. SQL> shutdown immediate
  49. Database closed.
  50. Database dismounted.
  51. ORACLE instance shut down.

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26506993/viewspace-2155754/,如需轉載,請註明出處,否則將追究法律責任。

相關文章