DB2 on Mac

Posted on 2011-03-17
Last Modified: 2012-06-27

I have a Macbook Air. I wanted to create a java application on my machine using a DB2 database. Is there any way I can install DB2 on my Mac.

I read up somewhere and I learnt that IBM has DB2 -C Express for Mac. I tried installing that but I have no idea if the installation worked correctly. The installation did not show any error but I dont see DB2 anywhere on my system :). Any pointers?

Thanks in advance for any assistance.

Question by:bhagatali
  • 2
  • 2
LVL 45

Expert Comment

ID: 35161945
Hi bhaqatali,

DB2 for the Mac is pretty new.  Think of yourself as a pioneer.  :)

Check to see if there are any tasks running with 'db2' or 'DB2' as part of the name.  There should be several.

If so, sign on with the same user that you used to install db2.  (Other users can use this installation of db2, but that user should have it's profile set up from the install process.)

Run the command 'db2'.  If it works, you're good to go.


Author Comment

ID: 35162193
Hi Kent,

I had installed db2 using the root profile. I am pretty new at Mac so having a little trouble following some of the installation instruction. The instruction asked me to use db2fs after the installation completes. Any idea how I do that? Also, when you say run the command "db2", do you mean run it from the "Terminal". If yes, from which folder/directory do I run that from.

Thanks for your help.

LVL 45

Accepted Solution

Kdo earned 250 total points
ID: 35164872
Hi Ali,

It's a little unusual to install DB2 from root on unix based operating systems.  MAC/OS may be different, I don't know.

db2fs is the program that initializes a lot of the DB2 environment/installation.  The name, like almost all db2 programs, starts with 'db2' and continues with the rest of the name consisting of the first letter of the program's real name.  In this case, 'db2fs' is the program name for 'db2 first steps'.

You should run that from root.  On other systems it requires that a GUI environment be present.  It generally requires the Java Runtime Engine and specific shared libraries, too.  

Try to run db2fs from root.  If any of the prerequisites are missing, an error message should point you in the right direction.


Author Closing Comment

ID: 35185873
Thanks for your help.

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Python Install On Mac Yosemite 8 149
MAC Book Pro Keyboard/Trackpad 3 79
Upgrading Mac Mini Server to Sierra 5 541
Q-See QT View from the Apple Store or ..,.. ? 2 112
Recursive SQL in UDB/LUW (you can use 'recursive' and 'SQL' in the same sentence) A growing number of database queries lend themselves to recursive solutions.  It's not always easy to spot when recursion is called for, especially for people una…
Set up iPhone and iPad email signatures to always send in high-quality HTML with this step-by step guide.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
CodeTwo Sync for iCloud ( automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question