I have installed IBM DB2 10.5.5 and I want to create a new database there.
When I entered command
db2 create database test1
I am getting a error saying
SQL1084C The database manager failed to allocate shared memory because an
operating system kernel memory limit has been reached. SQLSTATE=57019
Following is the output I get when I run "ipcs -l"
------ Shared Memory Limits --------
max number of segments = 10000
max seg size (kbytes) = 4882812
max total shared memory (kbytes) = 33554432
min seg size (bytes) = 1
------ Semaphore Limits --------
max number of arrays = 4096
max semaphores per array = 250
max semaphores system wide = 1024000
max ops per semop call = 32
semaphore max value = 32767
------ Messages Limits --------
max queues system wide = 16384
max size of message (bytes) = 65536
default max size of queue (bytes) = 16384
What is the reason for this? How can I fix it? I am running on Ubuntu 14.04 with 8GB physical memory.
db2diag.log
) for, well, diagnostics. Truncate the log (rundb2diag -A
) then try yourcreate db
command. The top of the log will show the actual kernel parameters in effect.db2 get dbm cfg show detail | grep INSTANCE