<?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>David Dietrich&#039;s Business Technology Blog &#187; DB2</title>
	<atom:link href="http://www.daviddietrich.com/topics/ibm/ibm-db2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.daviddietrich.com</link>
	<description>Business Technology Tips</description>
	<lastBuildDate>Fri, 20 Aug 2010 23:36:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Updating a database option in DB2</title>
		<link>http://www.daviddietrich.com/2009/05/20/updating-a-database-option-in-db2/</link>
		<comments>http://www.daviddietrich.com/2009/05/20/updating-a-database-option-in-db2/#comments</comments>
		<pubDate>Thu, 21 May 2009 02:58:40 +0000</pubDate>
		<dc:creator>David Dietrich</dc:creator>
				<category><![CDATA[DB2]]></category>
		<category><![CDATA[db2]]></category>
		<category><![CDATA[IBM]]></category>

		<guid isPermaLink="false">http://www.daviddietrich.com/?p=119</guid>
		<description><![CDATA[Sometimes after a database has been created, you may want to move where the default log path is. Or you may want to change  DB2 places the log path in the home directory, and you may want to have the logs stored on another storage device. Login as the DB2 adminstrative user, then type the [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes after a database has been created, you may want to move where the default log path is. Or you may want to change  DB2 places the log path in the home directory, and you may want to have the logs stored on another storage device.</p>
<p>Login as the DB2 adminstrative user, then type the following command to change your log path:</p>
<p><strong>&gt; db2 UPDATE DB CFG FOR MyDB USING &lt;OptionName &#8211; ex., </strong><strong>NEWLOGPATH</strong><strong>&gt; &lt;Value &#8211; ex., /db2data/AnyDirectory/NODE0000/logdir&gt;</strong></p>
<p>Stop and restart DB2 (<strong>db2stop force</strong> and <strong>db2start</strong>). Your new log path is now active.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daviddietrich.com/2009/05/20/updating-a-database-option-in-db2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updating the log path in DB2</title>
		<link>http://www.daviddietrich.com/2009/05/20/updating-the-log-path-in-db2/</link>
		<comments>http://www.daviddietrich.com/2009/05/20/updating-the-log-path-in-db2/#comments</comments>
		<pubDate>Wed, 20 May 2009 23:25:07 +0000</pubDate>
		<dc:creator>David Dietrich</dc:creator>
				<category><![CDATA[DB2]]></category>
		<category><![CDATA[db2]]></category>
		<category><![CDATA[IBM]]></category>

		<guid isPermaLink="false">http://www.daviddietrich.com/?p=114</guid>
		<description><![CDATA[Sometimes after a database has been created, you may want to move where the default log path is. DB2 places the log path in the home directory, and you may want to have the logs stored on another storage device. Login as the DB2 adminstrative user, then type the following command to change your log [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes after a database has been created, you may want to move where the default log path is. DB2 places the log path in the home directory, and you may want to have the logs stored on another storage device.</p>
<p>Login as the DB2 adminstrative user, then type the following command to change your log path:</p>
<p><strong>&gt; db2 UPDATE DB CFG FOR MyDB USING NEWLOGPATH /db2data/AnyDirectory/NODE0000/logdir</strong></p>
<p>Stop and restart DB2 (<strong>db2stop force</strong> and <strong>db2start</strong>) and the your new log path will now be active.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daviddietrich.com/2009/05/20/updating-the-log-path-in-db2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dropping a DB2 database</title>
		<link>http://www.daviddietrich.com/2009/02/12/dropping-a-db2-database/</link>
		<comments>http://www.daviddietrich.com/2009/02/12/dropping-a-db2-database/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 21:39:26 +0000</pubDate>
		<dc:creator>David Dietrich</dc:creator>
				<category><![CDATA[DB2]]></category>
		<category><![CDATA[db2]]></category>
		<category><![CDATA[IBM]]></category>

		<guid isPermaLink="false">http://www.daviddietrich.com/?p=75</guid>
		<description><![CDATA[Normally, to drop a database in DB2, you run the following command: &#62;db2 drop db YourDb If you run into errors trying to drop the database, you may need to recatalog the database. You can run the following series of commands: &#62;db2 uncatalog db YourDb &#62;db2 catalog database Restart DB2. Then run: &#62;db2 drop db [...]]]></description>
			<content:encoded><![CDATA[<p>Normally, to drop a database in DB2, you run the following command:</p>
<p><strong>&gt;db2 drop db YourDb</strong></p>
<p>If you run into errors trying to drop the database, you may need to recatalog the database. You can run the following series of commands:</p>
<p><strong>&gt;db2 uncatalog db YourDb<br />
&gt;db2 catalog database</strong></p>
<p>Restart DB2.</p>
<p>Then run:</p>
<p><strong>&gt;db2 drop db YourDb</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.daviddietrich.com/2009/02/12/dropping-a-db2-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing a DB2 server name</title>
		<link>http://www.daviddietrich.com/2009/02/11/changing-db2-server-name/</link>
		<comments>http://www.daviddietrich.com/2009/02/11/changing-db2-server-name/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 23:57:51 +0000</pubDate>
		<dc:creator>David Dietrich</dc:creator>
				<category><![CDATA[DB2]]></category>
		<category><![CDATA[db2]]></category>
		<category><![CDATA[IBM]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.daviddietrich.com/?p=68</guid>
		<description><![CDATA[If you find DB2 not being able to start because of a server name problem, it most likely is caused by moving a virtual machine and not renaming the DB2 database. To update DB2 to the proper name: Stop DB2 as administrator (db2inst user). &#62;su &#8211; db2inst &#62;db2stop If there are open database connections, then [...]]]></description>
			<content:encoded><![CDATA[<p>If you find DB2 not being able to start because of a server name problem, it most likely is caused by moving a virtual machine and not renaming the DB2 database.</p>
<p>To update DB2 to the proper name:</p>
<ol>
<li>Stop DB2 as administrator (db2inst user).<br />
<strong>&gt;su &#8211; db2inst<br />
&gt;db2stop<br />
</strong>If there are open database connections, then force them off.<br />
<strong>&gt;db2stop force</strong></li>
<li>Go to the <strong>sqllib</strong> directory.</li>
<li>Edit the <strong>db2nodes.cfg</strong> file. The file is usually read-only, so make enable writing first.<br />
<strong>&gt;chmod u+w db2nodes.cfg<br />
&gt;vi db2nodes.cfg</strong></li>
<li>In the db2nodes.cfg file, rename the existing computer name to that of the new computer name.</li>
<li>Save the file.</li>
<li>Reset the permissions to read-only.<br />
<strong>&gt;chmod u-w db2nodes.cfg</strong></li>
<li>Start DB2.<br />
<strong>&gt;db2start</strong></li>
</ol>
<p>You should no longer see any error messages about finding the database.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daviddietrich.com/2009/02/11/changing-db2-server-name/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
