<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Clearview Informatics &#187; Databases</title>
	<atom:link href="http://www.clearviewinformatics.com/category/databases/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.clearviewinformatics.com</link>
	<description>Business Productivity Solutions in the Cloud.</description>
	<lastBuildDate>Thu, 28 Jan 2010 02:26:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installing DB2 Express-C on Windows</title>
		<link>http://www.clearviewinformatics.com/2008/04/23/installing-db2-express-c-on-windows/</link>
		<comments>http://www.clearviewinformatics.com/2008/04/23/installing-db2-express-c-on-windows/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 17:24:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Databases]]></category>

		<guid isPermaLink="false">http://www.clearviewinformatics.com/?p=54</guid>
		<description><![CDATA[IBM makes available a free version of their flagship DB2 database called DB2 Express-C. It is a competitor to Oracle Express, Microsoft SQL Server Express and MySQL. It is ideal for a development environment or a small pilot project, and it can be updated to a fully supported licensed version at any time. Cognos 8 [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><a href="http://www.ibm.com/">IBM</a> makes available a free version of their <a href="http://www-306.ibm.com/software/data/db2/9/edition-enterprise.html">flagship DB2 database</a> called <a href="http://www-306.ibm.com/software/data/db2/express/">DB2 Express-C</a>. It is a competitor to <a href="http://www.oracle.com/technology/products/database/xe/index.html">Oracle Express</a>, <a href="http://www.microsoft.com/sql/editions/express/default.mspx">Microsoft SQL Server Express</a> and <a href="http://www.mysql.com/">MySQL</a>. It is ideal for a development environment or a small pilot project, and it can be updated to a fully supported licensed version at any time. <a href="http://www.cognos.com/products/cognos8businessintelligence/index.html">Cognos 8 Business Intelligence</a> supports reporting off this database and using it as the content store. This tutorial will step through the installation of DB2 Express-C on Windows.</p>
<p>Download DB2 Express-C from the IBM website:  <a href="http://www-306.ibm.com/software/data/db2/express/download.html">http://www-306.ibm.com/software/data/db2/express/download.html</a></p>
<p>Extract the files, and double click setup.exe to get started. On Windows Vista or Windows 2008 Server, right click the setup.exe and select &#8216;Run as Administrator&#8217;.</p>
<p><span id="more-54"></span></p>
<p><img src="http://www.clearviewinformatics.com/wp-content/uploads/2008/04/042308-1724-installingd1.png" alt="" width="599" height="351" /></p>
<p>On the left hand sidebar menu, click Install a Product.</p>
<p><img src="http://www.clearviewinformatics.com/wp-content/uploads/2008/04/042308-1724-installingd2.png" alt="" /></p>
<p>Click Install New. The installer program will start. Click next.</p>
<p><img src="http://www.clearviewinformatics.com/wp-content/uploads/2008/04/042308-1724-installingd3.png" alt="" /></p>
<p>Accept the license agreement and click Next.</p>
<p><img src="http://www.clearviewinformatics.com/wp-content/uploads/2008/04/042308-1724-installingd4.png" alt="" /></p>
<p>Choose the installation type.</p>
<p><img src="http://www.clearviewinformatics.com/wp-content/uploads/2008/04/042308-1724-installingd5.png" alt="" /></p>
<p>Click the View Features button to see what features will be installed with the Typical or Compact installation. For this tutorial, I will be installing the typical installation.</p>
<p><img src="http://www.clearviewinformatics.com/wp-content/uploads/2008/04/042308-1724-installingd6.png" alt="" /></p>
<p>Choose a location for the database. By default, it will install to c:\program files\IBM\SQLLIB.</p>
<p><img src="http://www.clearviewinformatics.com/wp-content/uploads/2008/04/042308-1724-installingd7.png" alt="" /></p>
<p>Provide a user account or select LocalSystem account. For this tutorial, I will use an account I created for the DB2 database called db2admin.</p>
<p><img src="http://www.clearviewinformatics.com/wp-content/uploads/2008/04/042308-1724-installingd8.png" alt="" /></p>
<p>The name of the DB2 instance that will be created appears.</p>
<p><img src="http://www.clearviewinformatics.com/wp-content/uploads/2008/04/042308-1724-installingd9.png" alt="" /></p>
<p>Click the configure button to see options for this instance.</p>
<p style="padding-left: 120px;"><img src="http://www.clearviewinformatics.com/wp-content/uploads/2008/04/042308-1724-installingd12.png" alt="" /></p>
<p style="padding-left: 90px;">
<p style="padding-left: 120px;"><img src="http://www.clearviewinformatics.com/wp-content/uploads/2008/04/042308-1724-installingd11.png" alt="" /></p>
<p style="padding-left: 90px;">
<p>A summary page will appear. Click the Finish button to continue the installation.</p>
<p><img src="http://www.clearviewinformatics.com/wp-content/uploads/2008/04/042308-1724-installingd13.png" alt="" /></p>
<p>The installation starts by copying over the files. If you are running Vista, you will be prompted to allow the installer to continue.</p>
<p><img src="http://www.clearviewinformatics.com/wp-content/uploads/2008/04/042308-1724-installingd14.png" alt="" /></p>
<p>After the files have been copied over, the post installation page appears. Click the Finish button to continue.</p>
<p><img src="http://www.clearviewinformatics.com/wp-content/uploads/2008/04/042308-1724-installingd15.png" alt="" /></p>
<p>The DB2 first steps menu comes up.</p>
<p><img src="http://www.clearviewinformatics.com/wp-content/uploads/2008/04/042308-1724-installingd16.png" alt="" /></p>
<p>Select Database Creation on the left hand sidebar menu. Click Create SAMPLE Database to test your installation and to install the sample database.</p>
<p><img src="http://www.clearviewinformatics.com/wp-content/uploads/2008/04/042308-1724-installingd17.png" alt="" /></p>
<p>Once complete, open up the DB2 Control Center. Click on Database Administration, Start DB2 Control Center. It can also be launched from the Windows Start menu, Programs, IBM DB2, instance name, General Administration tools.</p>
<p><img src="http://www.clearviewinformatics.com/wp-content/uploads/2008/04/042308-1724-installingd18.png" alt="" /></p>
<p>The sample database will be visible in the DB2 Control Center.</p>
<p><img src="http://www.clearviewinformatics.com/wp-content/uploads/2008/04/042308-1724-installingd19.png" alt="" /></p>
<p>DB2 installs six services. In this screen capture, DB2COPY1 is the instance name.</p>
<p><img src="http://www.clearviewinformatics.com/wp-content/uploads/2008/04/042308-1724-installingd20.png" alt="" /></p>
<p>If you need to return to the First Steps menu, there is a short cut placed in the Windows Start Menu, under Programs, IBM DB2, &lt;instance name&gt;, Setup Tools.</p>
<p><strong>Test connectivity to DB2</strong></p>
<p>Once installed, test connectivity to the database with the following steps:</p>
<p>Open up a command prompt and run db2cwadmin.bat</p>
<p>A new window will open. Enter &#8216;DB2&#8242; at the prompt. This will start the DB2 command line client (CLI).</p>
<p>Connect to the database with this command:</p>
<p><span style="font-size: 10pt; font-family: Courier New;">CONNECT TO sample USER &lt;userid&gt; USING &lt;password&gt;</span></p>
<p style="padding-left: 90px;"><img src="http://www.clearviewinformatics.com/wp-content/uploads/2008/04/042308-1724-installingd22.png" alt="" /></p>
<p>Run a simple SQL command as another test: <span style="font-family: Courier New;">select * from curried.sales where region = &#8216;Quebec&#8217;</span></p>
<p style="padding-left: 90px;"><img src="http://www.clearviewinformatics.com/wp-content/uploads/2008/04/042308-1724-installingd23.png" alt="" /></p>
<p><strong>Troubleshooting<br />
</strong></p>
<p><img class="alignleft" style="float: left;" src="http://www.clearviewinformatics.com/wp-content/uploads/2008/04/042308-1724-installingd24.png" alt="" /></p>
<p>On Windows Vista, the following error occurs when DB2 starts if the installer was run with administrator priveleges: DB2JAVIT : RC = 9505.</p>
<p>This forum posting has some details: <a href="http://www.ibm.com/developerworks/forums/thread.jspa?threadID=165035">http://www.ibm.com/developerworks/forums/thread.jspa?threadID=165035</a></p>
<p>Upon reboot and logging in after the installation, this error might appear: SQL5005C System Error.</p>
<p><img class="alignright" style="float: right;" src="http://www.clearviewinformatics.com/wp-content/uploads/2008/04/042308-1724-installingd25.png" alt="" /></p>
<p>To resolve this problem, add your user to the DB2ADMNS or the DB2USERS group. This is done through the Computer Management console, under Users and Groups.  Note that this console does not exist on all editions of Windows Vista, but users and groups can be managed using the NET command on all Windows editions.</p>
<p>NET LOCALGROUP – retrieve a listing of all local groups</p>
<p>NET USERS – returns a list of all local users</p>
<p>NET LOCALGROUP db2admns curried /add – add user &#8216;curried&#8217; to the local group &#8216;db2admns&#8217;</p>
<p>NET LOCALGROUP db2admns – returns a list of users who belong to the group &#8216;db2admns&#8217;</p>
<p><strong>Additional DB2 Resources:<br />
</strong></p>
<p>DB2 Express-C home page: <a href="http://www-306.ibm.com/software/data/db2/express/">http://www-306.ibm.com/software/data/db2/express/</a></p>
<p>DB2 Express-C download page:  <a href="http://www-306.ibm.com/software/data/db2/express/download.html">http://www-306.ibm.com/software/data/db2/express/download.html</a></p>
<p>DB2 Express-C developer handbook:  <a href="http://www.redbooks.ibm.com/abstracts/sg247301.html">http://www.redbooks.ibm.com/abstracts/sg247301.html</a></p>
<p>Directory of IBM and 3<sup>rd</sup> party resources:  <a href="http://www.db2express.com/">http://www.db2express.com/</a></p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Installing+DB2+Express-C+on+Windows+http://sf3fg.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.clearviewinformatics.com/wp-content/plugins/tweet-this/icons/tt-twitter-micro3.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.clearviewinformatics.com/2008/04/23/installing-db2-express-c-on-windows/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
