OS error EEXIST was thrown when db2start was issued in a single node environment.

本文介绍了解决DB2数据库启动时遇到EEXIST错误的方法。此错误通常发生在DB2试图启动但发现已有共享内存存在的情况下。文章提供了具体的步骤来解决这个问题,包括强制停止DB2服务并清理IPC资源。

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

From:http://www-01.ibm.com/support/docview.wss?uid=swg21613865

Technote (FAQ)


Question

After db2start db2diag.log is reporting an OS error EEXIST.

2011-12-14-18.01.38.656079+120 E32782E328 LEVEL: Error (OS) 
PID : 26310 TID : 46912685380880PROC : db2star2 
INSTANCE: tamdbi02 NODE : 000 
FUNCTION: DB2 UDB, SQO Memory Management, sqloMemCreateSingleSegment, 
probe:100 
CALLED : OS, -, shmget OSERR: EEXIST (17) 

Cause

It means that a shared memory identifier exists for a key parameter.

Answer

DB2 is calling shmget when it is started, and that is when the EEXIST is returned by shmget indicating that shared memory exists at the time of the db2start.

That is a result of issuing db2start while the DB2 database server is already or still running. 

So maybe db2 was stopped not properly before (IPC ressources left), or started twice (i.e. through autostart and manual). 

To remove these messages, you can run the following: 

db2stop force 
ipclean -a 
db2start

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值