<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Install DB2 on Mac OS X and give us feedback</title>
	<atom:link href="http://programmingzen.com/2009/01/20/installing-db2-on-mac-os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://programmingzen.com/2009/01/20/installing-db2-on-mac-os-x/</link>
	<description>By Antonio Cangiano, Software Engineer &#38; Technical Evangelist at IBM</description>
	<lastBuildDate>Sat, 31 Jul 2010 03:23:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Balazs</title>
		<link>http://programmingzen.com/2009/01/20/installing-db2-on-mac-os-x/#comment-8652</link>
		<dc:creator>Balazs</dc:creator>
		<pubDate>Thu, 21 Jan 2010 14:00:06 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/?p=544#comment-8652</guid>
		<description>Danny and Alexey: you may be experiencing the 32bit/64bit mixture &quot;feature&quot; of Snow Leopard.  Apparently 10.6 still boots with 32bit kernel by default.  The first thing to do is checking to see if your Mac has a 64-bit-capable EFI. If the output of the following command is EFI64, you’re in business. If not, you can&#039;t run 64bit apps.

    ioreg -l -p IODeviceTree &#124; awk -F&#039;&quot;&#039; &#039;/firmware-abi/{print $4}&#039;

I have put together a page with some pointers I fund useful to get DB2 running on OS X.  Some of the items are similar to recommendations above.  Hope it helps:
http://www.wdream.com/2010/01/installing-db2-express-c-9-5-on-mac-os-x-10-6/</description>
		<content:encoded><![CDATA[<p>Danny and Alexey: you may be experiencing the 32bit/64bit mixture &#8220;feature&#8221; of Snow Leopard.  Apparently 10.6 still boots with 32bit kernel by default.  The first thing to do is checking to see if your Mac has a 64-bit-capable EFI. If the output of the following command is EFI64, you’re in business. If not, you can&#8217;t run 64bit apps.</p>
<p>    ioreg -l -p IODeviceTree | awk -F&#8217;&#8221;&#8216; &#8216;/firmware-abi/{print $4}&#8217;</p>
<p>I have put together a page with some pointers I fund useful to get DB2 running on OS X.  Some of the items are similar to recommendations above.  Hope it helps:<br />
<a href="http://www.wdream.com/2010/01/installing-db2-express-c-9-5-on-mac-os-x-10-6/" rel="nofollow">http://www.wdream.com/2010/01/installing-db2-express-c-9-5-on-mac-os-x-10-6/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Installing DB2 Express C 9.5 on Mac OS X 10.6 &#171; W dream</title>
		<link>http://programmingzen.com/2009/01/20/installing-db2-on-mac-os-x/#comment-8651</link>
		<dc:creator>Installing DB2 Express C 9.5 on Mac OS X 10.6 &#171; W dream</dc:creator>
		<pubDate>Thu, 21 Jan 2010 13:59:46 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/?p=544#comment-8651</guid>
		<description>[...] Install DB2 on Mac OS X and give us feedback by Antonio Cangiano [...]</description>
		<content:encoded><![CDATA[<p>[...] Install DB2 on Mac OS X and give us feedback by Antonio Cangiano [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexey</title>
		<link>http://programmingzen.com/2009/01/20/installing-db2-on-mac-os-x/#comment-8648</link>
		<dc:creator>Alexey</dc:creator>
		<pubDate>Mon, 18 Jan 2010 20:13:55 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/?p=544#comment-8648</guid>
		<description>Hi, I have the same problem as danny. Does anyone know the solution to the problem?
Have the same hardware and software as danny.

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi, I have the same problem as danny. Does anyone know the solution to the problem?<br />
Have the same hardware and software as danny.</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: danny</title>
		<link>http://programmingzen.com/2009/01/20/installing-db2-on-mac-os-x/#comment-8511</link>
		<dc:creator>danny</dc:creator>
		<pubDate>Wed, 09 Dec 2009 14:43:12 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/?p=544#comment-8511</guid>
		<description>Hi, actually for installation part it runs smoothly, but when I try to run db2start it says error with library not loaded. Here is the error &quot;dyld: Library not loaded: /opt/IBM/db2/V9.5/lib32/libdb2dascmn.dylib
  Referenced from: /opt/IBM/db2/V9.5/lib64/libdb2e.dylib
  Reason: no suitable image found.  Did find:
	/opt/IBM/db2/V9.5/lib32/libdb2dascmn.dylib: mach-o, but wrong architecture&quot;

I got Macbook Pro with snow leopard installed. 

Thanks</description>
		<content:encoded><![CDATA[<p>Hi, actually for installation part it runs smoothly, but when I try to run db2start it says error with library not loaded. Here is the error &#8220;dyld: Library not loaded: /opt/IBM/db2/V9.5/lib32/libdb2dascmn.dylib<br />
  Referenced from: /opt/IBM/db2/V9.5/lib64/libdb2e.dylib<br />
  Reason: no suitable image found.  Did find:<br />
	/opt/IBM/db2/V9.5/lib32/libdb2dascmn.dylib: mach-o, but wrong architecture&#8221;</p>
<p>I got Macbook Pro with snow leopard installed. </p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wheeler Chu</title>
		<link>http://programmingzen.com/2009/01/20/installing-db2-on-mac-os-x/#comment-8178</link>
		<dc:creator>Wheeler Chu</dc:creator>
		<pubDate>Sat, 24 Oct 2009 11:11:22 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/?p=544#comment-8178</guid>
		<description>Hi Antonio, I did as you told Michael:

$ sudo -s
# . /Users/db2inst1/sqllib/db2profile
# db2start
# exit
$ su – db2inst1
# db2sampl -force

but got those messages exactly the same as not with root, though the sample database seems to work well..</description>
		<content:encoded><![CDATA[<p>Hi Antonio, I did as you told Michael:</p>
<p>$ sudo -s<br />
# . /Users/db2inst1/sqllib/db2profile<br />
# db2start<br />
# exit<br />
$ su – db2inst1<br />
# db2sampl -force</p>
<p>but got those messages exactly the same as not with root, though the sample database seems to work well..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Allan</title>
		<link>http://programmingzen.com/2009/01/20/installing-db2-on-mac-os-x/#comment-8109</link>
		<dc:creator>Scott Allan</dc:creator>
		<pubDate>Mon, 19 Oct 2009 11:38:54 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/?p=544#comment-8109</guid>
		<description>Just in case someone else is interested, I set up a new user account &quot;db2admin&quot; on the mac and installed the DB2 instance there under sudo ./db2icrt -p 50001 -u db2admin db2admin.   Although I could connect to a database under another administrator user account, I was unable to run certain commands such as &quot;db2start&quot;.  I didn&#039;t want to have to be logged on to both accounts every time I used the database. There didn&#039;t seem to be a way to create groups on the Mac so I tried this and it worked: db2 update dbm cfg using sysadm_group Admin.  Now all administrator accounts have access to db2 commands.   I did have to move the &quot;. /Users/db2admin/sqllib/db2profile&quot;  from .profile to .bash_profile in the non-DB2 account to get the terminal to find the path.</description>
		<content:encoded><![CDATA[<p>Just in case someone else is interested, I set up a new user account &#8220;db2admin&#8221; on the mac and installed the DB2 instance there under sudo ./db2icrt -p 50001 -u db2admin db2admin.   Although I could connect to a database under another administrator user account, I was unable to run certain commands such as &#8220;db2start&#8221;.  I didn&#8217;t want to have to be logged on to both accounts every time I used the database. There didn&#8217;t seem to be a way to create groups on the Mac so I tried this and it worked: db2 update dbm cfg using sysadm_group Admin.  Now all administrator accounts have access to db2 commands.   I did have to move the &#8220;. /Users/db2admin/sqllib/db2profile&#8221;  from .profile to .bash_profile in the non-DB2 account to get the terminal to find the path.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Timo Ruohomäki</title>
		<link>http://programmingzen.com/2009/01/20/installing-db2-on-mac-os-x/#comment-8104</link>
		<dc:creator>Timo Ruohomäki</dc:creator>
		<pubDate>Sun, 18 Oct 2009 16:39:43 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/?p=544#comment-8104</guid>
		<description>Hi Antonio,

The client-side support is more important for us than the server side where it doesn&#039;t matter that it supports only 64 bit processors. Anyway, while waiting for DB2 Client for OSX the best alternative seems to be Openlink Software&#039;s UDA drivers. Do you know if they are missing any vital parts on the functionality when compared to DB2 Client?</description>
		<content:encoded><![CDATA[<p>Hi Antonio,</p>
<p>The client-side support is more important for us than the server side where it doesn&#8217;t matter that it supports only 64 bit processors. Anyway, while waiting for DB2 Client for OSX the best alternative seems to be Openlink Software&#8217;s UDA drivers. Do you know if they are missing any vital parts on the functionality when compared to DB2 Client?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Allan</title>
		<link>http://programmingzen.com/2009/01/20/installing-db2-on-mac-os-x/#comment-8100</link>
		<dc:creator>Scott Allan</dc:creator>
		<pubDate>Sat, 17 Oct 2009 03:33:11 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/?p=544#comment-8100</guid>
		<description>OK I figured it out from this blog: http://blog.springenwerk.com/2009/01/ibm-db2-on-mac-with-ruby-rails-and.html

I needed to install as root but skip the step creating the DB2 instance.    Then I later created the instance using /opt/IBM/db2/instance/db2icrt

sudo ./db2icrt -p 50001 -u scott scott

I did get this error the first time:
----------------------------------
DB2 has failed to modify the .profile file or the .login file of this user. These files may not exist, or you may not have write permission to them. Without the modification you need to set your environment manually each time when you log in as this user to use DB2.

User response: 

Add the following line to the .profile file or the .login file:

 . /Users/scott/sqllib/db2profile   to the .profile file, or
 source /Users/scott/sqllib/db2cshrc to the .login file
--------------------------------
I couldn&#039;t find a .profile file on my machine and couldn&#039;t really figure out where it belonged after searching the internet so I just created one in $HOME and it seemed to work.  I deleted sqllib and reran db2icrt again.  After that I ran db2sampl to create the SAMPLE database. Then I was able to connect using jdbc:db2://localhost:50001/SAMPLE  the userid was my user account name &quot;scott&quot; and the password was the OS password on my Mac.

I hope this helps out others that may have this problem.</description>
		<content:encoded><![CDATA[<p>OK I figured it out from this blog: <a href="http://blog.springenwerk.com/2009/01/ibm-db2-on-mac-with-ruby-rails-and.html" rel="nofollow">http://blog.springenwerk.com/2009/01/ibm-db2-on-mac-with-ruby-rails-and.html</a></p>
<p>I needed to install as root but skip the step creating the DB2 instance.    Then I later created the instance using /opt/IBM/db2/instance/db2icrt</p>
<p>sudo ./db2icrt -p 50001 -u scott scott</p>
<p>I did get this error the first time:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
DB2 has failed to modify the .profile file or the .login file of this user. These files may not exist, or you may not have write permission to them. Without the modification you need to set your environment manually each time when you log in as this user to use DB2.</p>
<p>User response: </p>
<p>Add the following line to the .profile file or the .login file:</p>
<p> . /Users/scott/sqllib/db2profile   to the .profile file, or<br />
 source /Users/scott/sqllib/db2cshrc to the .login file<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
I couldn&#8217;t find a .profile file on my machine and couldn&#8217;t really figure out where it belonged after searching the internet so I just created one in $HOME and it seemed to work.  I deleted sqllib and reran db2icrt again.  After that I ran db2sampl to create the SAMPLE database. Then I was able to connect using jdbc:db2://localhost:50001/SAMPLE  the userid was my user account name &#8220;scott&#8221; and the password was the OS password on my Mac.</p>
<p>I hope this helps out others that may have this problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Allan</title>
		<link>http://programmingzen.com/2009/01/20/installing-db2-on-mac-os-x/#comment-8095</link>
		<dc:creator>Scott Allan</dc:creator>
		<pubDate>Fri, 16 Oct 2009 15:52:13 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/?p=544#comment-8095</guid>
		<description>sorry I had a typo.  password = ibmdb2</description>
		<content:encoded><![CDATA[<p>sorry I had a typo.  password = ibmdb2</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Allan</title>
		<link>http://programmingzen.com/2009/01/20/installing-db2-on-mac-os-x/#comment-8094</link>
		<dc:creator>Scott Allan</dc:creator>
		<pubDate>Fri, 16 Oct 2009 15:44:01 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/?p=544#comment-8094</guid>
		<description>I am able to install DB2 and the SAMPLE db following your video.  I can see the data using the command line. However, when I try to access the db from a client such as eclipse or SQLWorkbenchJ, I get an error, SQLCODE=-30082...etc  ROOT CAPABILITY REQUIRED

so I tried to start DB2 as root and got this:

$ sudo -s
Password:
bash-3.2# /Users/scott/sqllib/db2profile
bash-3.2# db2start
SQL1092N  &quot;ROOT&quot; does not have the authority to perform the requested command.

I am using Snow Leopard.   In Directory Utility, I set Enable Root User.  

Also what is the default userid and password I should be using to test it and how would I change that?  I&#039;m trying jdbc:db2://localhost:50001/SAMPLE  userid=db2inst1, password=ibmdb.  I need this to connect to the db from a client or application.

Even installing as root user, I cannot seem to be able to connect from a client.   

Thanks for your help and that very useful video.</description>
		<content:encoded><![CDATA[<p>I am able to install DB2 and the SAMPLE db following your video.  I can see the data using the command line. However, when I try to access the db from a client such as eclipse or SQLWorkbenchJ, I get an error, SQLCODE=-30082&#8230;etc  ROOT CAPABILITY REQUIRED</p>
<p>so I tried to start DB2 as root and got this:</p>
<p>$ sudo -s<br />
Password:<br />
bash-3.2# /Users/scott/sqllib/db2profile<br />
bash-3.2# db2start<br />
SQL1092N  &#8220;ROOT&#8221; does not have the authority to perform the requested command.</p>
<p>I am using Snow Leopard.   In Directory Utility, I set Enable Root User.  </p>
<p>Also what is the default userid and password I should be using to test it and how would I change that?  I&#8217;m trying jdbc:db2://localhost:50001/SAMPLE  userid=db2inst1, password=ibmdb.  I need this to connect to the db from a client or application.</p>
<p>Even installing as root user, I cannot seem to be able to connect from a client.   </p>
<p>Thanks for your help and that very useful video.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
