If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Shared memory error in Linux 64 bit

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-02-11, 09:05
alwayssathya alwayssathya is offline
Registered User
 
Join Date: Aug 2010
Location: Chennai India
Posts: 161
Question Shared memory error in Linux 64 bit

Hi I had created the database in my 64 bit server. i have only one database in it.

when connecting to it , i got the shared memory error

[db2inst1@lnx6 ~]$
[db2inst1@lnx6 ~]$ db2 connect to warehous
SQL1084C Shared memory segments cannot be allocated. SQLSTATE=57019
[db2inst1@lnx6 ~]$


I have RHEL 6 64 bit, DB2 9.7 64 bit,

And the sysctl configurations are....

[root@lnx6 ~]# sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 4294967295
kernel.shmall = 268435456
kernel.msgmni = 1024
kernel.sem = 250 256000 32 1024
kernel.msgmni = 16384
[root@lnx6 ~]#



Can some suggest me the exact value to avoid the memory issue
Reply With Quote
  #2 (permalink)  
Old 05-02-11, 10:18
DebianDog DebianDog is offline
Registered User
 
Join Date: Apr 2011
Posts: 17
On some of our systems we had to switch to computed to avoid these type errors. If I remember it is a known issue on some Sun boxes.
Code:
 Size of database shared memory (4KB)  (DATABASE_MEMORY) = COMPUTED
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On