Quantcast
Channel: CentOS » Harold Pritchett
Viewing all articles
Browse latest Browse all 5

Db2 Is Running Out Of Shared Memory

0
0

Db2 is running our of shared memory.

The environment:
Virtual computers running under VMware ESXi hypervisor version 5.5. Two different virtual machines, each running CentOS 5, db2 express C, and Apache/PHP and vmware tools. The machines each have 8 GB of memory,
4 processors, and a couple of hundred GB of disk space available. Everything is running on the 64 bit versions. The actual hardware for VMware is a dual processor machine with two Xeon E5410 processors, each with four cpu cores and 32 GB of ram.

The difference in the two virtual machines is that one is running db2
version 9.7.1 and the other is running db2 version 10.5.5.

The error occurs while restoring a backup taken on another server to the test server in question. Worse than that, it occurs when restoring a second database after the first restore works OK.

The error message we are getting is this:
On the 9.7 system:
RESTORE DATABASE XYZZY USER db2inst9 using
FROM ‘/db2home/restore1′ INTO XYZZZ REPLACE
EXISTING WITHOUT ROLLING FORWARD WITHOUT PROMPTING
SQL1084C Shared memory segments cannot be allocated. SQLSTATEW019

On the 10.5 system:
RESTORE DATABASE XYZZY USER db2inst9 using
FROM ‘/db2home/restore1′ INTO XYZZZ REPLACE
EXISTING WITHOUT ROLLING FORWARD WITHOUT PROMPTING
SQL1084C The database manager failed to allocate
shared memory because an`operating system kernel
memory limit has been reached. SQLSTATEW019

Everything I have read online says to increas the value of Shared Memory Size in the /etc/sysctl.conf file. However, on these systems it is already set to a value eight times larger than the actual memory size. The command “ipcs -l”
give:

[root@cowtest etc]# ipcs -l

—— Shared Memory Limits ——


Viewing all articles
Browse latest Browse all 5

Latest Images

Trending Articles





Latest Images