DB2 on Ubuntu: The database manager shared memory set cannot be allocated

I’ve been trying to get DB2 Express-C working on Ubuntu but I get an error when trying to start DB2:

ashlux@SERVER:~/java/db2exc$ db2
(c) Copyright IBM Corporation 1993,2007
Command Line Processor for DB2 Client 9.7.2

db2 => db2start
SQL1220N  The database manager shared memory set cannot be allocated.

After some searching I discovered that the problem is probably shmmax being too low. A site on tuning Oracle which shows how to increase shmmax:

sudo  -s "echo 2147483648 > /proc/sys/kernel/shmmax"

DB2 successfully starts up now.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • StumbleUpon
  • Reddit
  • Bloglines
  • Google Bookmarks
  • Technorati
  • TwitThis
Tags: , ,  

4 Comments

  1. If this doesn’t work (it didn’t for me as shmmax was already at the max
    possible), try this:

    http://www-01.ibm.com/support/docview.wss?rs=0&q1=SQL1220N&uid=swg21217932&loc=en_US&cs=utf-8&cc=us&lang=all

    from

    https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14515257&#14515257

    worked perfectly :)

    Edit: Fixed link – Ash

  2. It solved the problem in a step.. good post

  3. +1 It’s work. Run db2start script successfully.

Leave a Reply

Comments are closed.