ORA-27300: OS system dependent operation:fork failed with status: 12

今天查看一用户的alert日志,发现日志中有ora-27300错误,具体错误如下:

Errors in file /opt/app/oracle/admin/orcl/bdump/orcl1_psp0_544938.trc:
ORA-27300: OS system dependent operation:fork failed with status: 12
ORA-27301: OS failure message: Not enough space
ORA-27302: failure occurred at: skgpspawn3
Mon Dec  9 15:20:26 2013
Process PZ15 died, see its trace file
Mon Dec  9 15:20:26 2013
Process startup failed, error stack:
Mon Dec  9 15:20:26 2013
Errors in file /opt/app/oracle/admin/orcl/bdump/orcl1_psp0_544938.trc:
ORA-27300: OS system dependent operation:fork failed with status: 12
ORA-27301: OS failure message: Not enough space
ORA-27302: failure occurred at: skgpspawn3
Mon Dec  9 15:20:27 2013
Process PZ14 died, see its trace file
Mon Dec  9 15:20:27 2013
Process startup failed, error stack:
Mon Dec  9 15:20:27 2013
Errors in file /opt/app/oracle/admin/orcl/bdump/orcl1_psp0_544938.trc:
ORA-27300: OS system dependent operation:fork failed with status: 12
ORA-27301: OS failure message: Not enough space
ORA-27302: failure occurred at: skgpspawn3
Mon Dec  9 15:20:28 2013
Process PZ13 died, see its trace file
Mon Dec  9 18:10:24 2013
Thread 1 advanced to log sequence 14822


这个错误很典型,不同的提示有不同的解决方法, 具体可以看Troubleshooting ORA-27300 ORA-27301 ORA-27302 errors (Doc ID 579365.1),针对这个错误提示,有如下解释:

To BottomTo Bottom

02-Mar-2013PROBLEM
Rate this documentEmail link to this documentOpen document in new windowPrintable Page

In this Document

 Symptoms
 Cause
 Solution
 References

This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review.

APPLIES TO:

Oracle Database - Enterprise Edition - Version 10.2.0.1 to 11.2.0.3 [Release 10.2 to 11.2]
Information in this document applies to any platform.
***Checked for relevance on 11-Jan-2012***


SYMPTOMS

The database cannot start up due to the following errors:

*** SERVICE NAME:(SYS$BACKGROUND) 2008-03-24 17:02:34.855 
*** SESSION ID:(1104.1) 2008-03-24 17:02:34.855 
*** 2008-03-24 17:02:34.855 
Process startup failed, error stack: 
ORA-27300: OS system dependent operation:fork failed with status: 12 
ORA-27301: OS failure message: Not enough space 
ORA-27302: failure occurred at: skgpspawn3 
*** 2008-03-24 17:02:38.158 
Process startup failed, error stack: 
ORA-27300: OS system dependent operation:fork failed with status: 12 
ORA-27301: OS failure message: Not enough space 
ORA-27302: failure occurred at: skgpspawn3 

CAUSE

This issue is mainly caused by lack of memory / swap. 
Checking the memory configuration on the server, the following was found:

Total Physical Memory 38912 MB 
Swap: Max Size 17664 MiB 

So, RAM is 38 GB, SWAP space is only 17 GB

SOLUTION

1- We should increase the server swap space (paging space). 
In 11.1 and 10.2, the general rule of thumb is that swap space should be:
RAM                              SWAP
1GB to 2GB                   1.5 times RAM 
> 2GB and <= 8GB          1 times RAM 
> 8GB                            .75 times RAM

In 11.2, it is:
RAM                              SWAP
1GB to 2GB                   1.5 times RAM 
> 2GB and <= 16GB        1 times RAM 
> 16GB                          16GB RAM

So in our case on 10.2, the recommended swap space should be 28 GB  instead of  17 GB 

2- We can also try to increase physical memory, if possible.

3- On Unix Platforms, the user limits  for user oracle should be checked using the "ulimit -a " command.

4- We should also check memory parameters in the pfile/spfile that may add more load to the memory consumption on the server.  For example setting the following parameters can add more overhead to memory consumption 

-  lock_sga=true 
-  db_keep_cache_size=<High Value >


可以看到,是由于swap设置不规范导致,当然在生产库上重新设置swap有风险,最简单的方式就是设置lock_sga=true,把SGA锁定物理内存里面!!



  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值