数据库无法启动 ORA-27154,27300,27301,27302

这篇博客介绍了在遇到Oracle数据库启动时出现错误ORA-27154, ORA-27300, ORA-27301和ORA-27302的情况,以及如何通过调整系统参数`/proc/sys/kernel/sem`来解决问题。博主提供了详细的解决步骤,包括检查数据库状态、修改系统参数并验证问题是否已解决。" 132905056,19695037,嵌入式系统:物联网、人工智能与边缘计算的融合,"['嵌入式开发', '物联网技术', '人工智能应用', '边缘计算', '硬件集成']

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

数据库版本

SQL> select * from v$version

  2  ;

 

BANNER

--------------------------------------------------------------------------------

Oracle Database 11g Enterprise Edition Release11.2.0.1.0 - 64bit Production

PL/SQL Release 11.2.0.1.0 - Production

CORE   11.2.0.1.0      Production

TNS for Linux: Version 11.2.0.1.0 - Production

NLSRTL Version 11.2.0.1.0 - Production

 

 

启动错误

Connected to an idle instance.

SQL> startup

ORA-27154: post/wait create failed

ORA-27300: OS system dependent operation:semget failedwith status: 28

ORA-27301: OS failure message: No space left on device

ORA-27302: failure occurred at: sskgpsemsper

 

 

解决办法:

[oracle@shadow ~]$ vim /proc/sys/kernel/sem

[oracle@shadow ~]$ su - root

Password:

[root@shadow ~]# echo "110 10000 100 128">/proc/sys/kernel/sem

[root@shadow ~]# exit

logout

 

 

问题是否解决

SQL> select status from v$instance;

 

STATUS

------------

OPEN

 

说明:

 

[oracle@shadow ~]$ cat /proc/sys/kernel/sem

110    10000   100     128

 

以上4个数据分别对应

SEMMSL SEMMNS SEMOPM SEMMNI

 

SEMMSL 100 Defines the minimum recommended value,

for initial installation only

 

SEMMNS 256 Defines the maximum semaphores on thesystem.

This setting is a minimum recommended value,

for initial installation only. The SEMMNS parameter

should be set to the sum of the PROCESSES parameter

for each Oracle database, adding the largest onetwice,

and then adding an additional 10 for each database.

 

SEMOPM 100 Defines the maximum number of operationsfor each semop call

 

SEMMNI 100 Defines the maximum number ofsemaphore sets in the entire system

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值