well, you wrote, that you can't connect do DB2 with your Java application ... Same for me here, too.
Did you already find a solution for that (I know, that this thread is already a couple of months old, but I just came to get my MacBook and I'm doing my first steps).
I can connect to my DB2 10.1 with db2 command line tool but I can't use for instance the Database Explorer that is shipped with (My)Eclipse - which a Java application. Also - after setting the Oracle Compatibility - I cannot connect with clpplus (which in turn uses Java as well).
Here's the information I have on uninstalling DB2 Express-C on Mac. It assumes a slightly older version, but the steps should still be the same:
The db2_deinstall script is usually the recommended method for uninstalling DB2, however there are some outstanding issues with the db2_deinstall script on Mac OS X. Until these issues are fixed, you can uninstall DB2 manually by deleting the directories where DB2 is installed. If you performed an Admin user install, you need to remove the DB2 install dir as an Admin user by running sudo rm -rf <DB2 installdir> from the Terminal command line.
Delete the following directories.
DB2 install dir (eg /opt/ibm/db2/V10.1 for Admin user installs, ~/sqllib for Standard User installs)
Now that Apple and IBM have declared themselves partners, when will an official DB2 Express-C installation package be made available for OS X 10.10.x? It only makes senses for IBM to officially support it so Mac users can develop databases off-line that run natively on Apple hardware. Oracle gave up on Macs years ago but it looks like there might be a future for IBM databases running on Macs without virtualization or from the cloud.
Restart your Mac after creating the file to make the values take effect.
2. Open a terminal with a shell for the the user that will become instance owner.
3. Ensure that otool is in the path. Execute otool:
If the error is "command not found" then run the following
4. Extract the DB2 install image from the tar archive:
tar -xvf <imagename>
The image will be extracted into an expc directory.
5. Enter the expc directory and run the installer and perform a non-root install:
*** DO NOT RUN db2_install AS ROOT ***
This will install DB2 to the following default location: /Users/<userid>/sqllib
Execute step 6 if you need to enable connections for a userid other than the instance owner:
6. Enable OS authentication (You need to be an Admin user to run these commands):
sudo chown root /Users/<userid>/sqllib/security/db2chkpw
sudo chmod u+rxs o+rx /Users/<userid>/sqllib/security/db2chkpw
The instructions for starting DB2 and configuring remote access are the same.
Thank you for providing these instructions but my original request had more to do with the lack of a typical OSX installer than how to actually install this software. If Apple and IBM are going to work together, IBM needs to realize there's a much easier way for Mac users to install software than using the terminal to enter a consistent set of commands. This is what an installer is for and depending on how many things change in the installation due to hardware and software, a set of binaries could probably be provided with a proper installation app that adds the sysctl.conf file as well as asking which userID to run the server application under. I know most of you on this forum only use the terminal but this database software is not for the typical large system installation so you'll have more small system installations looking to make use of the applications Apple and IBM are currently releasing.