Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have posted the question yesterday, then I was able to figure it out by myself. As I haven't found any complete guide, I'm writing down the steps just in case.

So the question is: "How do I install db2 express c on Mac OS X?".

share|improve this question

First of all you need to edit/create the /etc/sysctl.conf and insert the following:


reboot. Then google db2 express c mac osx and download db2 express c 9.5.2 for mac osx. Once downloaded uncompress the file

tar -xzvf db2exc_952_MAC_x86_64.tar.gz

enter the exp directory and start the installation wizard as root

cd exp
sudo ./db2setup

before continuing you need to create 2 users, one for administration purposes and another one as instance owner. For the second user name use no more than 8 characters and use just letters, otherwise the node name won't be accepted later on. Follow the installation wizard steps: enter the username for the DAS and for the instance owner. Once the installation is complete, you need to switch to the instance owner (dbuser in our case):

su dbuser

add the following line to your .bashrc file:

. ~/sqllib/db2profile

exit and relogin. If everything went well you should be able to start db2 (as a root) and create the SAMPLE database

sudo db2start

That's it!

share|improve this answer
You should accept your answer as the accepted answer once the system allows you to. – Chris Aldrich Jul 16 '12 at 15:04
I have to wait two more days :) – gcedo Jul 16 '12 at 16:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.