<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2277672312650284960</id><updated>2012-02-18T13:42:44.300Z</updated><title type='text'>DB2 v9.1, DB2 v9.5 and DB2 v9.7 Learning</title><subtitle type='html'>This blog present all my DB2 practice work that i have performed till date. Most of my work is based on DB2 on Linux. In this blog i will be presenting topic from DB2 9.5, DB2 9.7 and higher version of DB2. 

I use my blog as a bookmark and reference document for all my work and i wish to share the same with the DB2 community.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://gilroygonsalves.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://gilroygonsalves.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Gilroy N. Gonsalves</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://4.bp.blogspot.com/_1y3JEK7a9rA/SwVA9dHzK_I/AAAAAAAABDA/9ilTxBQTEB0/S220/DSC00140.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>24</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2277672312650284960.post-4837705988448217384</id><published>2011-08-21T22:00:00.000+01:00</published><updated>2011-11-26T18:30:23.993Z</updated><title type='text'>DB2 Backup and Recovery (BAR) - Part 03 - Introduction to DB2 Logging Mechanism</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;Part 00 - &lt;a href="http://gilroygonsalves.blogspot.com/2011/05/db2-backup-and-recovery-bar-part-00.html"&gt;Introduction to DB2 Backup and Recovery artical &lt;/a&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;Part 01 - &lt;a href="http://gilroygonsalves.blogspot.com/2011/05/db2-backup-and-recovery-bar-part-01.html"&gt;Introduction to DB2 Transaction Log files&lt;/a&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;Part 02 - &lt;a href="http://gilroygonsalves.blogspot.com/2011/08/db2-backup-and-recovery-bar-part-02.html"&gt;Introduction to DB2 Log Manger&lt;/a&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;/div&gt;&lt;br /&gt;&lt;u&gt;&lt;span style="color: blue; font-family: 'Courier New', Courier, monospace; font-size: large;"&gt;&lt;b&gt;Introduction&lt;/b&gt;&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In this artical i will discuss the the DB2 logging mechanism. Depending upon the type of DB2 Logging Mechanism, different type of recovery is possible for DB2 database.&lt;br /&gt;&lt;br /&gt;Each new version of DB2 come with great backup and recovery functionality which ease DB2 DBA task.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;&lt;span style="color: blue; font-family: 'Courier New', Courier, monospace; font-size: large;"&gt;Type of Logging Mechanism&lt;/span&gt;&lt;/b&gt;&lt;/u&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span id="internal-source-marker_0.6439916421780849" style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;There are two type of logging mechanism&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;1) &lt;/span&gt;&lt;span style="background-color: transparent; color: #9900ff; font-family: Arial; font-size: 11pt; font-style: italic; font-variant: normal; font-weight: bold; text-decoration: underline; vertical-align: baseline;"&gt;Circular logging&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Good Starting point in understanding circular logging mechanism is DB2 information center&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;a href="http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.db2.luw.admin.ha.doc/doc/c0051343.html"&gt;&lt;span style="background-color: transparent; color: #000099; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline;"&gt;http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.db2.luw.admin.ha.doc/doc/c0051343.html&lt;/span&gt;&lt;/a&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;This is the default DB2 logging mechanism when a new database is created and no configuration is needed. It provide following feature&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ol&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Only full offline backup of the database is possible&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Crash and version recovery is possible in circular logging&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;No Point in time recovery possible&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;ul&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;As the name implies this type of logging reuses the logs in a circular mode. For example, if you had 3 primary log files, then it would be used in following order LOG#1, LOG#2, LOG#3, LOG#1,LOG#2,LOG#3,LOG#1,LOG#2,LOG#3&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;A log file can be reused in circular logging only when it contain information about transaction that have being committed and its corresponding data pages are externalised to disk.&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;In case where a single transaction consume all the available PRIMARY log file (Primary) and then DB2 start adding dynamically the SECONDARY log files.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;2) &lt;/span&gt;&lt;span style="background-color: transparent; color: #9900ff; font-family: Arial; font-size: 11pt; font-style: italic; font-variant: normal; font-weight: bold; text-decoration: underline; vertical-align: baseline;"&gt;Archival logging (Roll forward recovery logging)&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;In Archive logging when enabled at DB2, it allows for more flexible recovery options. It allow us to recover the database to a particular point in time or recover the database to a point before failure.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;ie. It allows&lt;/span&gt;&lt;br /&gt;&lt;ol style="color: blue; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;li style="background-color: transparent; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"&gt;&lt;b&gt;&lt;span style="background-color: transparent; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Crash Recovery&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;&lt;li style="background-color: transparent; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"&gt;&lt;b&gt;&lt;span style="background-color: transparent; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Version Recovery&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;&lt;li style="background-color: transparent; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"&gt;&lt;b&gt;&lt;span style="background-color: transparent; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Roll forward recovery&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;&lt;/ol&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;In a 24x7 environment when downtime is not an option, this logging mechanism allows for performing the online backup of the database.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;DB2 information Center provide more info to this&lt;/span&gt;&lt;br /&gt;&lt;a href="http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.db2.luw.admin.ha.doc/doc/c0051344.html"&gt;&lt;span style="background-color: transparent; color: #000099; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline;"&gt;http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.db2.luw.admin.ha.doc/doc/c0051344.html&lt;/span&gt;&lt;/a&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;    &lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;In this, the transaction log files are archived so that when recovery is needed, the archived log file are used along with backup image to restore the database to point before the failure.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Hear, DB2 archives the log file in following manner. For exmaple, if DB2 is configured to use five logs, then the order in which they are used is&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;LOG#1, LOG#2, LOG#3, LOG#4, LOG#5&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;When the LOG#5 becomes full and new log file need to be added, then DB2 will archive the LOG#1 to “Archive Location” only if LOG#1 has all transaction that are committed and data pages externalised to disk and then will rename the LOG#1 to LOG#5 and truncate its content. This is done to minimize the overhead of creating new files.&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;If LOG#1 is still having transaction that are not committed or data pages not externalised, then DB2 will allocated Secondary log file to record the transacion information.&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Likewise, when LOG#5 is full, then LOG#2 is archived and renamed to LOG#6 and so on.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; font-size: large;"&gt;&lt;u&gt;&lt;b&gt;&lt;i&gt;&lt;span style="color: blue;"&gt;Enabling Archive Logging&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;To enable archive logging, one parameter needs to be set &lt;/span&gt;&lt;span style="background-color: transparent; color: blue; font-family: Arial; font-size: 11pt; font-style: italic; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;"&gt;logarchmeth1 &lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;which tell where the archived log files are stored. This parameter decides following things&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;1) Archive media type (DISK, TAPE,etc)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;2) Archive Location&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;3) Archive type (Archival Logging, Infinite Logging, Log retention Logging)&lt;/span&gt;&lt;br /&gt;&lt;a href="http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.db2.luw.admin.config.doc/doc/r0011448.html"&gt;&lt;span style="background-color: transparent; color: #000099; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline;"&gt;http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.db2.lu.admin.config.doc/doc/r0011448.html&lt;/span&gt;&lt;/a&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="color: blue; font-family: Georgia, 'Times New Roman', serif; font-size: large;"&gt;&lt;i&gt;&lt;u&gt;&lt;b&gt;Types of Archival Logging&lt;/b&gt;&lt;/u&gt;&lt;/i&gt;&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Depending on the value set for DB CFG parameter &lt;/span&gt;&lt;span style="background-color: transparent; color: blue; font-family: Arial; font-size: 11pt; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;logarchmeth1 &lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;following logging mechanism are used.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: underline; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: underline; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;i&gt;&lt;span style="color: black; font-size: large;"&gt;&lt;span style="background-color: transparent; font-family: 'Courier New', Courier, monospace; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: underline; vertical-align: baseline;"&gt;Archival Logging&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;logarchmeth1&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; is set to value which describe the “&lt;/span&gt;&lt;span style="background-color: transparent; color: magenta; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Archive Media type&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;” and it &lt;/span&gt;&lt;span style="background-color: transparent; color: magenta; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Archive Locations&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;.&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;For Example,&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;pre&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;    &lt;/span&gt;&lt;span style="background-color: transparent; color: blue; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;logarchmeth1 &lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;=  DISK:/u21/db2inst1/sample/archived_logs&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;        Where &lt;b&gt;Archive Media Type &lt;/b&gt;      = DISK &lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;b&gt;Archive path &lt;/b&gt;         = u21/db2inst1/sample/archived_logs&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;In this, when the log files are filled up they are archived to the mentioned destination. This is done through DB2 log manager which copies the file from “Active Log Path” to “Archived log path”&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: underline; vertical-align: baseline;"&gt;Infinite Logging&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Infinite logging can be called as a subset of the archive logging. The only difference is how the transaction log files are archived. &lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;In Infinite logging mechanism, the log file are moved to the archived location as soon as they fills up and does not wait for all the transaction to commit and externalise to disk.&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;In case of archival logging the log file are move to the archived location only when the transaction log file does not include any transaction needed for crash recovery. This mean log file only contains COMMITED transaction and it associated data pages are externalised to disk.&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Infinite logging is not a recommended approach because it may prolong the crash recovery because it may have to retrieved the active logs from the Archive location.&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Enabling Infinite logging is two step process&lt;/span&gt;&lt;/li&gt;&lt;ol&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: lower-alpha; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Enable the archival logging on the database using “&lt;/span&gt;&lt;span style="background-color: transparent; color: blue; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;logarchmeth1&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;” parameter&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: lower-alpha; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Setting the &lt;/span&gt;&lt;span style="background-color: transparent; color: blue; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;LOGSECOND &lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;database configuration parameter to -1.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: underline; vertical-align: baseline;"&gt;Log Retention Logging&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt; &lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;In this logging mechanism the log files are not archived to the “Archive Location” using the DB2 program. This needs manual interventions for archiving of the log files.&lt;/span&gt;&lt;ul&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Hear, when the log file contains committed transaction and all it associated data pages externalised to disk, it still resides in the “Active Log path” and becomes “Online Archive Logs”.&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;It needs a manual movement if the LOG DISK full happens.&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;The log file needed for Roll forward recovery will be retrived from the “Active Log Path”&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Enabling of Log Retention logging is done as follows&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ol&gt;&lt;ol&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: lower-alpha; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Enable archive logging using “&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;logarchmeth1” &lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;parameter and set its values to “&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;logretain”&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;div dir="ltr" style="margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;"&gt;&lt;span style="background-color: transparent; color: blue; font-family: 'Courier New'; font-size: 10pt; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;update db cfg for sample using logarchmeth1 logretain immediate&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;/ul&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Additional References&lt;br /&gt;&lt;br /&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;h1&gt;&lt;a href="http://www.ibm.com/developerworks/data/library/techarticle/0301kline/0301kline.html"&gt;&lt;span style="font-size: small;"&gt;An Overview of Transactional Logging in DB2 UniversalDatabase&lt;/span&gt;&lt;/a&gt;&lt;/h1&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2277672312650284960-4837705988448217384?l=gilroygonsalves.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2277672312650284960&amp;postID=4837705988448217384' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/4837705988448217384'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/4837705988448217384'/><link rel='alternate' type='text/html' href='http://gilroygonsalves.blogspot.com/2011/08/db2-backup-and-recovery-bar-part-03.html' title='DB2 Backup and Recovery (BAR) - Part 03 - Introduction to DB2 Logging Mechanism'/><author><name>Gilroy N. Gonsalves</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://4.bp.blogspot.com/_1y3JEK7a9rA/SwVA9dHzK_I/AAAAAAAABDA/9ilTxBQTEB0/S220/DSC00140.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2277672312650284960.post-4254566486246782011</id><published>2011-08-21T20:28:00.000+01:00</published><updated>2011-08-21T20:31:22.286+01:00</updated><title type='text'>DB2 Backup and Recovery (BAR) - Part 02 - Introduction to DB2 Log Manger</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;Part 00 - &lt;a href="http://gilroygonsalves.blogspot.com/2011/05/db2-backup-and-recovery-bar-part-00.html"&gt;Introduction to DB2 Backup and Recovery artical &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Part 01 - &lt;a href="http://gilroygonsalves.blogspot.com/2011/05/db2-backup-and-recovery-bar-part-01.html"&gt;Introduction to DB2 Transaction Log files&lt;/a&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="color: blue; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;u&gt;&lt;b&gt;&lt;span style="font-size: large;"&gt;Introduction&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;br /&gt;DB2 Log manager is the central component in the DB2 Log file management. It is used when the database is enable for archival logging and allows moving DB2 log files from Primary location (Active Log Location) to Archive location.&lt;br /&gt;&lt;br /&gt;In this artical I will discuss the DB2 log manger.&lt;br /&gt;&lt;br /&gt;&lt;u style="color: blue;"&gt;&lt;b&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: large;"&gt;Details&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul style="text-align: left;"&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;DB2 log manager is integrated with DB2 kernel.&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;It is responsible for archiving log files and retrieving log files during rollforward recovery&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;It is started when the database is enable for archival logging.&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;The DB2 log manager process/thread is called “&lt;span style="color: magenta;"&gt;db2logmgr&lt;/span&gt;"&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;It supports following archiving media&lt;/span&gt;&lt;/li&gt;&lt;ul&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="color: magenta;"&gt;DISK &lt;/span&gt;- Log file are archived to DISK location&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="color: magenta;"&gt;TSM &lt;/span&gt;- DB2 is closely integrated with IBM TSM and allow archiving log to TSM storage&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="color: magenta;"&gt;USEREXIT &lt;/span&gt;- Avaiable for backward compatibility.&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="color: magenta;"&gt;VENDOR  &lt;/span&gt;- Support for third party storage to store the archive log files&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;It can be configured using DB CFG parameters. &lt;a href="http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/index.jsp?topic=/com.ibm.db2.luw.admin.ha.doc/doc/r0006082.html"&gt;Click hear for more details on DB2 Logging Parameters.&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Following command can be used to find the DB2 log manager process&lt;pre&gt;db2pd -edus | grep -i db2log&lt;/pre&gt;&amp;nbsp; &lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;When DB2 Log Manager retrieves the log files from archive storage, it puts the archive log to DB2 Active Log Path needed for recovery process. The “Active Log Path” is identified by “&lt;span style="color: magenta;"&gt;logpath&lt;/span&gt;” DB CFG parameter.&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;If &lt;span style="color: magenta;"&gt;OVERFLOWLOGPATH &lt;/span&gt;parameter is set then the Archive Log files are moved to OVERFLOWLOGPATH during the Rollforward recovery instead of Active Log path&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="color: magenta;"&gt;LOGARCHMETH1  &lt;/span&gt;DB CFG parameter tell DB2 log manager where to move the offline archive log&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;When the Primary log archive is unavailable, then &lt;span style="color: magenta;"&gt;FAILARCHPATH &lt;/span&gt;DB CFG can be defined which tell the temporary local directory where the archive log file will be stored.&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;FAILARCHPATH  help to avoid the log full condition when the Active Log path is full&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;When the connectivity to Primary log archive destination is established, DB2 log manager moves the archive log files from FAILARCHPATH to LOGARCHMETH1 destination&lt;/span&gt;.&lt;br /&gt;&amp;nbsp;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2277672312650284960-4254566486246782011?l=gilroygonsalves.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2277672312650284960&amp;postID=4254566486246782011' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/4254566486246782011'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/4254566486246782011'/><link rel='alternate' type='text/html' href='http://gilroygonsalves.blogspot.com/2011/08/db2-backup-and-recovery-bar-part-02.html' title='DB2 Backup and Recovery (BAR) - Part 02 - Introduction to DB2 Log Manger'/><author><name>Gilroy N. Gonsalves</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://4.bp.blogspot.com/_1y3JEK7a9rA/SwVA9dHzK_I/AAAAAAAABDA/9ilTxBQTEB0/S220/DSC00140.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2277672312650284960.post-1811855295799941899</id><published>2011-05-17T22:50:00.000+01:00</published><updated>2011-08-21T20:31:48.744+01:00</updated><title type='text'>DB2 Backup and Recovery (BAR) - Part 01 - Introduction to DB2 Transaction Log files</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;Part 00 - &lt;a href="http://gilroygonsalves.blogspot.com/2011/05/db2-backup-and-recovery-bar-part-00.html"&gt;Introduction to DB2 Backup and Recovery artical&amp;nbsp; &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-family: Times,'Times New Roman',serif;"&gt;&lt;span style="color: blue; font-size: x-large;"&gt;&lt;b&gt;&lt;u&gt;Introduction&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: Times,'Times New Roman',serif; font-size: large;"&gt;In any RDBMS software every changes made to the database needs to be logged. DB2 is no different to any other RDBMS product. Every transaction (insert, update, delete) performed on the data is logged in the log files. Log files are one of the important component of any RDBMS products&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: Times,'Times New Roman',serif;"&gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: Times,'Times New Roman',serif; font-size: large;"&gt;"&lt;span style="color: magenta;"&gt;&lt;b&gt;DB2 log file&lt;/b&gt;&lt;/span&gt;" are sometimes called as "&lt;b&gt;&lt;span style="color: magenta;"&gt;DB2 Transaction log Files&lt;/span&gt;&lt;/b&gt;". It records all the changes so that in the event of failure, the DB2 server refers the log records which help in recovering the database to the consistent state.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: Times,'Times New Roman',serif;"&gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: Times,'Times New Roman',serif; font-size: large;"&gt;The information or changes stored in the DB2 log file are called as "&lt;span style="color: magenta;"&gt;&lt;b&gt;Log Record&lt;/b&gt;&lt;/span&gt;". Each log record is associated with "&lt;span style="color: magenta;"&gt;&lt;b&gt;Log Sequence Number (LSN)&lt;/b&gt;&lt;/span&gt;" which in simple terms can be referred as a unique identifer for the record in the file. When recovery is needed DB2 server uses the LSN to recover the database to consistent point in time.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;br /&gt;&lt;span style="color: blue; font-family: Times,'Times New Roman',serif; font-size: x-large;"&gt;&lt;b&gt;&lt;u&gt;DB2 Log Files&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Times,'Times New Roman',serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span id="internal-source-marker_0.18277568368630337" style="background-color: transparent; color: black; font-family: Times,'Times New Roman',serif; font-size: large; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;DB2 maintains &lt;u&gt;&lt;i&gt;&lt;b&gt;two sets&lt;/b&gt;&lt;/i&gt;&lt;/u&gt; of log file namely &amp;nbsp;PRIMARY and SECONDARY log files.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Times,'Times New Roman',serif;"&gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span id="internal-source-marker_0.18277568368630337" style="background-color: transparent; color: black; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="font-family: Times,'Times New Roman',serif;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;&lt;span style="color: magenta;"&gt;PRIMARY&lt;/span&gt;&lt;/b&gt; set of log file are pre-allocated when the database is activated.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;table&gt;&lt;tbody&gt;&lt;/tbody&gt;&lt;tbody&gt;&lt;tr&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th align="center" bgcolor="#ffff66"&gt;Item #&lt;/th&gt;&lt;th align="center" bgcolor="#ffff66"&gt;Description&lt;/th&gt;&lt;th align="center" bgcolor="#ffff66" colspan="2"&gt;Parameter&lt;/th&gt; &lt;/tr&gt;&lt;tr&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;1&lt;/td&gt;&lt;td&gt;&lt;b&gt;The number of primary log file is determined by LOGPRIMARY DB CFG parmaeter&lt;b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;pre&gt;db2 get db cfg | grep -i logprimary&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;  &lt;/table&gt;&lt;span style="font-family: Times,'Times New Roman',serif; font-size: large;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Times,'Times New Roman',serif; font-size: large; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="font-family: Times,'Times New Roman',serif;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;&lt;span style="color: magenta;"&gt;SECONDARY&lt;/span&gt;&lt;/b&gt;  set of log file are allocated dynamically&amp;nbsp;only when a transaction has used all the  PRIMARY log files and no new PRIMARY log file can be allocated.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;table&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;table&gt;&lt;tbody&gt;&lt;/tbody&gt;&lt;tbody&gt;&lt;tr&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th align="center" bgcolor="#ffff66"&gt;Item #&lt;/th&gt;&lt;th align="center" bgcolor="#ffff66"&gt;Description&lt;/th&gt;&lt;th align="center" bgcolor="#ffff66" colspan="2"&gt;Parameter&lt;/th&gt; &lt;/tr&gt;&lt;tr&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;1&lt;/td&gt;&lt;td&gt;&lt;b&gt;The number of secondary log file is determined by LOGSECOND DB CFG parmaeter&lt;b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;pre&gt;db2 get db cfg | grep -i logsecond&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;  &lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Times,'Times New Roman',serif; font-size: large;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Times,'Times New Roman',serif; font-size: large;"&gt;Based on the type of transaction data the DB2 log file stores, they&amp;nbsp;are classified as&lt;/span&gt;&lt;/div&gt;&lt;ul style="color: magenta; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; text-align: left;"&gt;&lt;li&gt;&lt;span style="font-family: Times,'Times New Roman',serif; font-size: large;"&gt;Active Log files&lt;/span&gt;&lt;/li&gt;&lt;span style="font-family: Times,'Times New Roman',serif; font-size: large;"&gt; &lt;/span&gt;&lt;li&gt;&lt;span style="font-family: Times,'Times New Roman',serif; font-size: large;"&gt;Archive Log files&lt;/span&gt;&lt;/li&gt;&lt;span style="font-family: Times,'Times New Roman',serif;"&gt; &lt;/span&gt;&lt;/ul&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: Times,'Times New Roman',serif; font-size: x-large;"&gt;1) &lt;u style="color: blue;"&gt;&lt;b&gt;Active Log files&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: Times,'Times New Roman',serif; font-size: large;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul id="internal-source-marker_0.7288119618093194" style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;li style="background-color: transparent; color: black; font-style: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Times,'Times New Roman',serif; font-size: large; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;In  this transaction log files, all the transaction (COMMITED and  UNCOMMITTED) that are currently executing into the DB2 system are logged  under this files. This is simply the record of what new data &amp;nbsp;is  INSERTed, UPDATEed and DELETEed. &amp;nbsp; &lt;/span&gt;&lt;/li&gt;&lt;span style="font-family: Times,'Times New Roman',serif; font-size: large;"&gt; &lt;/span&gt;&lt;li style="background-color: transparent; color: black; font-style: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Times,'Times New Roman',serif; font-size: large; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;It store both the COMMITED and UNCOMMITED transaction executing into the DB2 systems.&lt;/span&gt;&lt;/li&gt;&lt;span style="font-family: Times,'Times New Roman',serif; font-size: large;"&gt; &lt;/span&gt;&lt;li style="background-color: transparent; color: black; font-style: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Times,'Times New Roman',serif; font-size: large; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;It also hold information about the transaction that are committed but its data pages are not externalised to the disk.&lt;/span&gt;&lt;/li&gt;&lt;span style="font-family: Times,'Times New Roman',serif; font-size: large;"&gt; &lt;/span&gt;&lt;li style="background-color: transparent; color: black; font-style: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Times,'Times New Roman',serif; font-size: large; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;While  the Transaction is executing and there is a DB2 failure, in such case DB2  will use the active log file for Crash Recovery which will rollback all  the UNCOMMITTED transactions and start the database in consistent  state.&lt;/span&gt;&lt;/li&gt;&lt;span style="font-family: Times,'Times New Roman',serif; font-size: large;"&gt; &lt;/span&gt;&lt;li style="background-color: transparent; color: black; font-style: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Times,'Times New Roman',serif; font-size: large; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Every DB2 database created has the Active Log files&lt;/span&gt;&lt;/li&gt;&lt;span style="font-family: Times,'Times New Roman',serif; font-size: large;"&gt; &lt;/span&gt;&lt;li style="background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-style: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="font-family: Times,'Times New Roman',serif;"&gt;&lt;span style="font-size: large;"&gt;&lt;span style="background-color: transparent; color: black; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;Location of the actvie log file is called as &lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-style: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;"&gt;“&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-style: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="color: blue;"&gt;Active log Path&lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-style: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;"&gt;”&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-style: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="font-family: Times; font-size: large;"&gt;Following command can be used to find the location of Active log path.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th align="center" bgcolor="#ffff66"&gt;Item #&lt;/th&gt;&lt;th align="center" bgcolor="#ffff66"&gt;Description&lt;/th&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;1&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;SELECT &lt;br /&gt;&amp;nbsp;VARCHAR(NAME,30) AS NAME&lt;br /&gt;&amp;nbsp;, VARCHAR(VALUE,70) AS VALUE &lt;br /&gt;FROM &lt;br /&gt;&amp;nbsp;&lt;b&gt;SYSIBMADM.DBCFG &lt;/b&gt;&lt;br /&gt;WHERE &lt;br /&gt;&amp;nbsp;NAME = 'logpath'&lt;br /&gt;WITH UR&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;2&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;b&gt;db2pd -db sample -dbcfg | grep -i "Path to log files (memory)" &lt;/b&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;3&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;b&gt;db2 get db cfg for sample | grep -i "Path to log files" &lt;/b&gt;&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt; &lt;/table&gt;&lt;span style="font-family: Times,'Times New Roman',serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Times,'Times New Roman',serif; font-size: x-large;"&gt;2) &lt;u style="color: blue;"&gt;&lt;b&gt;Archive Log files&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Times,'Times New Roman',serif; font-size: large;"&gt;-- &amp;nbsp;Archive log files are available only when the database is enable for “Archival logging”&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Times,'Times New Roman',serif; font-size: large;"&gt;-- Archived log file are classified into two parts&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Times,'Times New Roman',serif; font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #6aa84f; font-family: Times,'Times New Roman',serif; font-size: large;"&gt;a) Online Archive log files&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Times,'Times New Roman',serif; font-size: large;"&gt;-- This log file contain all the information about the transaction that are committed for the data pages externalised to disk&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Times,'Times New Roman',serif; font-size: large;"&gt;-- They are located in the “&lt;span class="Apple-style-span" style="color: magenta;"&gt;&lt;b&gt;Active Log Path&lt;/b&gt;&lt;/span&gt;” along with the “&lt;span class="Apple-style-span" style="color: magenta;"&gt;&lt;b&gt;Active Log file&lt;/b&gt;&lt;/span&gt;”.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Times,'Times New Roman',serif; font-size: large;"&gt;-- When the database is enable for archival logging, the “&lt;span class="Apple-style-span" style="color: magenta;"&gt;&lt;b&gt;Online Archive Log file&lt;/b&gt;&lt;/span&gt;” can be identified using the two step process&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Times,'Times New Roman',serif; font-size: large;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; i) F&lt;span id="internal-source-marker_0.18277568368630337" style="background-color: transparent; color: black; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;ind the &lt;/span&gt;&lt;span style="background-color: transparent; color: blue; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;“&lt;/span&gt;&lt;span style="background-color: transparent; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: magenta;"&gt;Log head&lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: transparent; color: blue; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;”&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; for the DB2 database. This find the current active log file that is used by the database&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"&gt;&lt;/span&gt;&lt;br /&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th align="center" bgcolor="#ffff66"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Item #&lt;/div&gt;&lt;/th&gt;&lt;th align="center" bgcolor="#ffff66"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Description&lt;/div&gt;&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;1&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;SELECT &lt;br /&gt;&amp;nbsp;VARCHAR(NAME,30) AS NAME&lt;br /&gt;&amp;nbsp;, VARCHAR(VALUE,70) AS VALUE &lt;br /&gt;FROM &lt;br /&gt;&amp;nbsp;&lt;b&gt;SYSIBMADM.DBCFG &lt;/b&gt;&lt;br /&gt;WHERE &lt;br /&gt;&amp;nbsp;NAME = 'loghead'&lt;br /&gt;WITH UR&lt;br /&gt;&lt;/pre&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Times,'Times New Roman',serif; font-size: large;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Times,'Times New Roman',serif; font-size: large;"&gt;ii) Check the “&lt;span class="Apple-style-span" style="color: magenta;"&gt;&lt;b&gt;Active log Path&lt;/b&gt;&lt;/span&gt;” for the DB2 database&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"&gt;&lt;/span&gt;&lt;br /&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th align="center" bgcolor="#ffff66"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Item #&lt;/div&gt;&lt;/th&gt;&lt;th align="center" bgcolor="#ffff66"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Description&lt;/div&gt;&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;1&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;SELECT &lt;br /&gt;&amp;nbsp;VARCHAR(NAME,30) AS NAME&lt;br /&gt;&amp;nbsp;, VARCHAR(VALUE,70) AS VALUE &lt;br /&gt;FROM &lt;br /&gt;&amp;nbsp;&lt;b&gt;SYSIBMADM.DBCFG &lt;/b&gt;&lt;br /&gt;WHERE &lt;br /&gt;&amp;nbsp;NAME = 'logpath'&lt;br /&gt;WITH UR&lt;br /&gt;&lt;/pre&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Times,'Times New Roman',serif; font-size: large;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Times,'Times New Roman',serif; font-size: large;"&gt;iii) U&lt;span id="internal-source-marker_0.18277568368630337" style="background-color: transparent; color: black; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;nder the &lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;"&gt;“&lt;/span&gt;&lt;span style="background-color: transparent; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: magenta;"&gt;Active log Path&lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;"&gt;” &lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt;all files below the &lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;"&gt;“&lt;/span&gt;&lt;span style="background-color: transparent; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: magenta;"&gt;LOG HEAD&lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;"&gt;”&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; are the &lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;"&gt;“&lt;/span&gt;&lt;span style="background-color: transparent; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: magenta;"&gt;Online Archive Log&lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;"&gt;”&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"&gt; files&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Times,'Times New Roman',serif; font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #6aa84f; font-family: Times,'Times New Roman',serif; font-size: large;"&gt;b) Offline Archive log files&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Times,'Times New Roman',serif; font-size: large;"&gt;-- When the “&lt;span class="Apple-style-span" style="color: magenta;"&gt;&lt;b&gt;Online Archive Log&lt;/b&gt;&lt;/span&gt;” file are moved from “&lt;span class="Apple-style-span" style="color: magenta;"&gt;&lt;b&gt;Active Log Path&lt;/b&gt;&lt;/span&gt;” to the “&lt;span class="Apple-style-span" style="color: magenta;"&gt;&lt;b&gt;Archived Log path&lt;/b&gt;&lt;/span&gt;” they are then termed as “&lt;span class="Apple-style-span" style="color: magenta;"&gt;&lt;b&gt;Offline Archive Log files&lt;/b&gt;&lt;/span&gt;”&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Times,'Times New Roman',serif; font-size: large;"&gt;-- The location of the “&lt;span class="Apple-style-span" style="color: magenta;"&gt;&lt;b&gt;Offline Archive Log&lt;/b&gt;&lt;/span&gt;” file depends on the value set for “&lt;span class="Apple-style-span" style="color: magenta;"&gt;&lt;b&gt;LOGARCHMETH1&lt;/b&gt;&lt;/span&gt;” parameter.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Times,'Times New Roman',serif; font-size: large;"&gt;--&amp;nbsp;&lt;a href="http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.db2.luw.admin.config.doc/doc/r0011448.html"&gt;Click here to find more details about the “LOGARCHMETH1”&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Times,'Times New Roman',serif; font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Times,'Times New Roman',serif; font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2277672312650284960-1811855295799941899?l=gilroygonsalves.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2277672312650284960&amp;postID=1811855295799941899' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/1811855295799941899'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/1811855295799941899'/><link rel='alternate' type='text/html' href='http://gilroygonsalves.blogspot.com/2011/05/db2-backup-and-recovery-bar-part-01.html' title='DB2 Backup and Recovery (BAR) - Part 01 - Introduction to DB2 Transaction Log files'/><author><name>Gilroy N. Gonsalves</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://4.bp.blogspot.com/_1y3JEK7a9rA/SwVA9dHzK_I/AAAAAAAABDA/9ilTxBQTEB0/S220/DSC00140.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2277672312650284960.post-4177254869343011153</id><published>2011-05-17T22:17:00.000+01:00</published><updated>2011-08-21T22:02:31.482+01:00</updated><title type='text'>DB2 Backup and Recovery (BAR) - Part 00</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;In this blog series i will present the DB2 backup and recovery topic for DB2 in a single partition environment. I will break the series into following sections&lt;br /&gt;&lt;br /&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;Part 01 - &lt;a href="http://gilroygonsalves.blogspot.com/2011/05/db2-backup-and-recovery-bar-part-01.html"&gt;Introduction to DB2 Transaction Log files&lt;/a&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;Part 02 - &lt;a href="http://gilroygonsalves.blogspot.com/2011/08/db2-backup-and-recovery-bar-part-02.html"&gt;Introduction to DB2 Log Manger &lt;/a&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;Part 03 - &lt;a href="http://gilroygonsalves.blogspot.com/2011/08/db2-backup-and-recovery-bar-part-03.html"&gt;Introduction to DB2 Logging Mechanism&lt;/a&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;Part 04 - DB2 Backup with example&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;Part 05 - DB2 Recovery with examples&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;Part 06 - DB2 dropped table recovery&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;Part 07 - DB2 inplace upgrade using Backup and Recovery mechanism&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2277672312650284960-4177254869343011153?l=gilroygonsalves.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2277672312650284960&amp;postID=4177254869343011153' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/4177254869343011153'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/4177254869343011153'/><link rel='alternate' type='text/html' href='http://gilroygonsalves.blogspot.com/2011/05/db2-backup-and-recovery-bar-part-00.html' title='DB2 Backup and Recovery (BAR) - Part 00'/><author><name>Gilroy N. Gonsalves</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://4.bp.blogspot.com/_1y3JEK7a9rA/SwVA9dHzK_I/AAAAAAAABDA/9ilTxBQTEB0/S220/DSC00140.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2277672312650284960.post-431223698649724824</id><published>2011-04-10T23:30:00.000+01:00</published><updated>2012-02-11T22:11:54.110Z</updated><title type='text'>DB2 9.7 HADR with TSA - Part11 - DB2 HADR useful references</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;In this artical, I will provide all useful reference i had refered for DB2 HADR configuration. You may also look at my twitter account for some useful DB2 links. My twitter reference&lt;br /&gt;&lt;a href="http://twitter.com/gilroygonsalves"&gt;http://twitter.com/gilroygonsalves&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2010/11/db2-97-hadr-with-tsa-part-00.html"&gt;Part 0 : DB2 9.7 HADR with TSA Part 00 - Introduction&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2010/11/db2-97-hadr-with-tsa-part-01-installing.html"&gt;Part 1 : Installing and configuring VMWare environment&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-02-installing.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;2 : Installing IBM tools for querying and monitoring purpose&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-03-installing.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;3 : Installing IBM DB2 9.7 database&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-04-installing.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;4 : Installing DB2 9.7 Fix-pack&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-05-creating.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;5 : Creating Instance and database&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-06.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;6 : Configuring DB2 9.7 HADR between Primary and Standby&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/04/db2-97-hadr-with-tsa-part-07.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;7 : Configuring DB2 9.7 HADR to work with TSA&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/04/db2-97-hadr-with-tsa-part-08-performing.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;8 : Performing some DB2 9.7 HADR failover and failback test&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/04/db2-97-hadr-with-tsa-part-09-converting.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;9 : Converting DB2 9.7 HADR no-read-access standby to DB2 9.7 HADR read-only standby database&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/04/db2-97-hadr-with-tsa-part10-configuring.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;10 : Configuring DB2 9.7 Automatic Client re-route &amp;nbsp;(ACR)&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Below are some of my reference which i used for writing this artical. You may also look at my twitter account for more useful DB2 links.&lt;br /&gt;&lt;br /&gt;My twitter references&lt;br /&gt;&lt;br /&gt;&lt;a href="http://twitter.com/gilroygonsalves"&gt;http://twitter.com/gilroygonsalves&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;--&amp;nbsp; &lt;a href="https://www-304.ibm.com/support/docview.wss?uid=swg21391346" style="color: blue;"&gt;Cleaning up failed DB2 HADR with TSA configuration&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;Option 1 =&amp;gt; &lt;b&gt;db2haicu -delete&lt;/b&gt;&lt;br /&gt;Option 2 =&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a) On any node, login as "root" user&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b) Drop the domain by force&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;rmrpdomain -f &lt;domain_name&gt;&lt;/domain_name&gt;&lt;/b&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c) Unset the DBM CFG parameter &lt;b&gt;CLUSTER_MGR&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;1) &lt;a href="http://www.blogger.com/"&gt;HADR with DB2 Express 9.5 and DB2 Control Center&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2) &lt;a href="http://www.ibm.com/developerworks/wikis/label/hadr"&gt;HADR Wiki (Best Practice)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;3) &lt;a href="http://download.boulder.ibm.com/ibmdl/pub/software/dw/data/dm-0908hadrdb2haicu/HADR_db2haicu.pdf" target="_blank"&gt;HADR using db2haicu in DB2 9.5&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;4) &lt;a href="http://www.ibm.com/developerworks/data/tutorials/dm-1003optimhadr/index.html?ca=drs-"&gt;Configure HADR using IBM Data Studio&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;5) &lt;a href="http://www.ibm.com/developerworks/wikis/display/data/HADR_sim"&gt;HADR Simulator&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;6) &lt;a href="http://www.ibm.com/developerworks/websphere/techjournal/0705_lee/0705_lee.html#appendix"&gt;HA database environment using WebSphere Middleware&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;7) &lt;a href="http://download.boulder.ibm.com/ibmdl/pub/software/dw/wes/pdf/0703_wang.pdf"&gt;Improving HA in WebSphere Commerce using DB2 HADR&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;8) &lt;a href="http://www.ibm.com/developerworks/data/library/techarticle/dm-0704sundaram/"&gt;Implement DB2 HADR in a TSA domain&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;9) &lt;a href="http://www-01.ibm.com/support/docview.wss?uid=swg21439218"&gt;DB2 HADR setup with TSA using db2haicu and Virtual IP&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;10) &lt;a href="http://www.ibm.com/developerworks/data/library/techarticle/dm-0506finnie/"&gt;Configure DB2 Universal Database for UNIX to use OpenSSH&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.redbooks.ibm.com/abstracts/sg247363.html"&gt;11) Redbook - HADR option for DB2 on LUW (pg 259)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;12) &lt;a href="http://homepage.mac.com/wyuen/hpc/Passwordless_SSH.html"&gt;Password less SSH configuration &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;12) &lt;a href="http://www.ibm.com/developerworks/wikis/display/LinuxP/TSA"&gt;IBM TSA for DB2 HA (Blog)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;13) &lt;a href="http://www.ibm.com/developerworks/data/library/long/dm-0708ha/"&gt;Enable database high availability using DB2 HADR and Tivoli SA MP in an SAP environment&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;14) &lt;a href="http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0f384d0-b8bf-2b10-3f9b-d7f7b70d06a2"&gt;IBM DB2 High Availability Solution: IBM Tivoli System Automation for Multiplatforms (03/2008)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;15) &lt;a href="http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0f384d0-b8bf-2b10-3f9b-d7f7b70d06a2?QuickLink=index&amp;amp;overridelayout=true"&gt;IBM DB2 High Availability Solution: IBM Tivoli System Automation for Multiplatforms&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;16)&amp;nbsp; &lt;a href="http://www.idug.org/conferences/NA2008/data/NA08D09.pdf"&gt;DB2 HADR - Case Study of Implementation&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;17) &lt;a href="http://www.ibm.com/developerworks/java/tutorials/i-hiavail5/i-hiavail5-pdf.pdf"&gt;Build a highly available application platform for J2EE Part 5: Set up DB2 for HA using TSA&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;18) &lt;a href="http://public.dhe.ibm.com/software/dw/data/dm-1003contentmanagerha-db2/ContentManagerHA-DB2.pdf"&gt;HA Configuration using IBM TSA with DB2 9.5 FP3 on IBM AIX v5.3&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;19) &lt;a href="http://www-01.ibm.com/support/docview.wss?uid=swg27016774"&gt;Integrating TSAMP with DB2 HADR v9.5&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;20) &lt;a href="http://www-01.ibm.com/support/docview.wss?uid=swg21293703"&gt;Restoring DB in a TSAMP automated DB2 HADR environment&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;21) &lt;a href="http://www.redbooks.ibm.com/redbooks/pdfs/sg247184.pdf"&gt;DB2 HA configuration using TSA command - Page 113 - 118, Page 137 - 148&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;22) &lt;a href="http://www.ibm.com/developerworks/tivoli/library/t-hadbtsa/"&gt;HA DB2 (Partitioned Database) using Tivoli System Automation&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;23)&lt;a href="http://www.ibm.com/developerworks/wikis/display/LinuxP/TSA"&gt; Introduction to Tivoli System Automation&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;24) &lt;a href="http://www.blogger.com/"&gt;DB2 Integrated Cluster Environment Deployment Guide Page 359 - 370&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;25)&lt;span style="font-size: small;"&gt; &lt;a href="http://www-01.ibm.com/support/docview.wss?uid=swg21444848"&gt;Clearing out IBM.RecoveryRM.log file&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;26)&amp;nbsp;&lt;/span&gt;&lt;a href="https://www-304.ibm.com/support/docview.wss?uid=swg21394466&amp;amp;aid=1&amp;amp;wv=1"&gt; Startup/Shutdown Procedure for DB2 9.5/9.7 HADR in TSAMP environment for maintenenace reason&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;27) &lt;a href="https://www-304.ibm.com/support/docview.wss?uid=swg21425435&amp;amp;wv=1"&gt;DB2 HADR Performance Issue Monitoring&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;28) &lt;a href="https://www-304.ibm.com/support/docview.wss?mynp=OCSSRM2X&amp;amp;mync=R&amp;amp;uid=swg21461354&amp;amp;myns=swgtiv"&gt;Setting up TSAMP cluster for maintenance, including node reboot&amp;nbsp;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;29) &lt;a href="https://www-304.ibm.com/support/docview.wss?mynp=OCSSRM2X&amp;amp;mync=R&amp;amp;uid=swg21508981&amp;amp;myns=swgtiv"&gt;db2stop but no failover in DB2 HADR in TSAMP environment&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;30) &lt;a href="https://www-304.ibm.com/support/docview.wss?mynp=OCSSRM2X&amp;amp;mync=R&amp;amp;uid=swg21512426&amp;amp;myns=swgtiv"&gt;No failover after db2_kill issued in DB2 HADR in TSAMP environment&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;31) &lt;a href="https://www-304.ibm.com/support/docview.wss?mynp=OCSSRM2X&amp;amp;mync=R&amp;amp;uid=swg21499379&amp;amp;myns=swgtiv"&gt;DB2 HADR resource group remains locked after successful takeover&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;32) &lt;a href="https://www-304.ibm.com/support/docview.wss?mynp=OCSSRM2X&amp;amp;mync=R&amp;amp;uid=swg21469579&amp;amp;myns=swgtiv"&gt;SuspendedPropagated fro HADR group in TSAMP environment&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;33) &lt;a href="https://www-304.ibm.com/support/docview.wss?mynp=OCSSRM2X&amp;amp;mync=R&amp;amp;uid=swg21469574&amp;amp;myns=swgtiv"&gt;ExcludedList for HADR resource group in TSAMP environment&lt;/a&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;34) &lt;a href="https://www-304.ibm.com/support/docview.wss?uid=swg21294035"&gt;How to stop RSCT (TSAMP) from rebooting a node&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;35) &lt;a href="https://www-304.ibm.com/support/docview.wss?uid=swg21211104"&gt;Nominal State (Desired State) vs Operational State&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;36) &lt;a href="https://www-304.ibm.com/support/docview.wss?uid=swg21458938"&gt;The "resetrsrc" command - A brief how to guide&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;37) &lt;a href="https://www-304.ibm.com/support/docview.wss?uid=swg21439386"&gt;Service IP shows "Failed Offline" state when failover attempted&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;38) &lt;a href="https://www-304.ibm.com/support/docview.wss?uid=swg21446229"&gt;"2612-023" error code when attempting "resetrsrc" on "Failed Offline" standby resource&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;39) &lt;a href="http://www.ibm.com/developerworks/data/tutorials/dm-1009db2hadr/section3.html"&gt;Using DB2 HADR with TSAMP&lt;/a&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2277672312650284960-431223698649724824?l=gilroygonsalves.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2277672312650284960&amp;postID=431223698649724824' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/431223698649724824'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/431223698649724824'/><link rel='alternate' type='text/html' href='http://gilroygonsalves.blogspot.com/2011/04/db2-97-hadr-with-tsa-part11-db2-hadr.html' title='DB2 9.7 HADR with TSA - Part11 - DB2 HADR useful references'/><author><name>Gilroy N. Gonsalves</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://4.bp.blogspot.com/_1y3JEK7a9rA/SwVA9dHzK_I/AAAAAAAABDA/9ilTxBQTEB0/S220/DSC00140.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2277672312650284960.post-2426621090425819071</id><published>2011-04-10T23:10:00.000+01:00</published><updated>2011-04-10T23:10:29.261+01:00</updated><title type='text'>DB2 9.7 HADR with TSA - Part10 - Configuring DB2 9.7 Automatic Client re-route  (ACR)</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;In this artical i will provide reference to the document which describe the DB2 9.7 Automatic Client Reroute (ACR) configuration and Limitation&lt;br /&gt;&lt;br /&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2010/11/db2-97-hadr-with-tsa-part-00.html"&gt;Part 0 : DB2 9.7 HADR with TSA Part 00 - Introduction&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2010/11/db2-97-hadr-with-tsa-part-01-installing.html"&gt;Part 1 : Installing and configuring VMWare environment&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-02-installing.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;2 : Installing IBM tools for querying and monitoring purpose&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-03-installing.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;3 : Installing IBM DB2 9.7 database&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-04-installing.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;4 : Installing DB2 9.7 Fix-pack&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-05-creating.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;5 : Creating Instance and database&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-06.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;6 : Configuring DB2 9.7 HADR between Primary and Standby&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/04/db2-97-hadr-with-tsa-part-07.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;7 : Configuring DB2 9.7 HADR to work with TSA&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/04/db2-97-hadr-with-tsa-part-08-performing.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;8 : Performing some DB2 9.7 HADR failover and failback test&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/04/db2-97-hadr-with-tsa-part-09-converting.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;9 : Converting DB2 9.7 HADR no-read-access standby to DB2 9.7 HADR read-only standby database&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: blue;"&gt;&lt;b&gt;&lt;span style="font-size: large;"&gt;A) Automatic Client Reroute (ACR) Configuration&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;&lt;a href="http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.db2.luw.admin.ha.doc/doc/c0011976.html"&gt;http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.db2.luw.admin.ha.doc/doc/c0011976.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: blue;"&gt;&lt;b&gt;&lt;span style="font-size: large;"&gt;B) Automatic Client Reroute (ACR) Limitation&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;&lt;a href="http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.db2.luw.admin.ha.doc/doc/c0011977.html"&gt;http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.db2.luw.admin.ha.doc/doc/c0011977.html&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2277672312650284960-2426621090425819071?l=gilroygonsalves.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2277672312650284960&amp;postID=2426621090425819071' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/2426621090425819071'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/2426621090425819071'/><link rel='alternate' type='text/html' href='http://gilroygonsalves.blogspot.com/2011/04/db2-97-hadr-with-tsa-part10-configuring.html' title='DB2 9.7 HADR with TSA - Part10 - Configuring DB2 9.7 Automatic Client re-route  (ACR)'/><author><name>Gilroy N. Gonsalves</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://4.bp.blogspot.com/_1y3JEK7a9rA/SwVA9dHzK_I/AAAAAAAABDA/9ilTxBQTEB0/S220/DSC00140.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2277672312650284960.post-790735478654745877</id><published>2011-04-10T22:54:00.000+01:00</published><updated>2011-04-10T23:05:25.936+01:00</updated><title type='text'>DB2 9.7 HADR with TSA - Part 09 - Converting DB2 9.7 HADR no-read-access standby to DB2 9.7 HADR read-only standby database</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;In this artical i will provide reference to document that describe the DB2 9.7 Read only Standby HADR configuration.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2010/11/db2-97-hadr-with-tsa-part-00.html"&gt;Part 0 : DB2 9.7 HADR with TSA Part 00 - Introduction&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2010/11/db2-97-hadr-with-tsa-part-01-installing.html"&gt;Part 1 : Installing and configuring VMWare environment&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-02-installing.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;2 : Installing IBM tools for querying and monitoring purpose&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-03-installing.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;3 : Installing IBM DB2 9.7 database&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-04-installing.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;4 : Installing DB2 9.7 Fix-pack&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-05-creating.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;5 : Creating Instance and database&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-06.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;6 : Configuring DB2 9.7 HADR between Primary and Standby&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/04/db2-97-hadr-with-tsa-part-07.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;7 : Configuring DB2 9.7 HADR to work with TSA&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/04/db2-97-hadr-with-tsa-part-08-performing.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;8 : Performing some DB2 9.7 HADR failover and failback test&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: blue; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;Complete step by step implementation is provided at following link to the topic&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&amp;nbsp;&lt;span style="font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;a href="https://www-304.ibm.com/support/docview.wss?uid=swg27020912"&gt;&lt;span style="font-size: small;"&gt;Enabling continuous access to read on standby databases using Virtual IP addresses&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2277672312650284960-790735478654745877?l=gilroygonsalves.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2277672312650284960&amp;postID=790735478654745877' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/790735478654745877'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/790735478654745877'/><link rel='alternate' type='text/html' href='http://gilroygonsalves.blogspot.com/2011/04/db2-97-hadr-with-tsa-part-09-converting.html' title='DB2 9.7 HADR with TSA - Part 09 - Converting DB2 9.7 HADR no-read-access standby to DB2 9.7 HADR read-only standby database'/><author><name>Gilroy N. Gonsalves</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://4.bp.blogspot.com/_1y3JEK7a9rA/SwVA9dHzK_I/AAAAAAAABDA/9ilTxBQTEB0/S220/DSC00140.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2277672312650284960.post-1914055805890374418</id><published>2011-04-10T22:28:00.000+01:00</published><updated>2011-04-10T22:32:45.855+01:00</updated><title type='text'>DB2 9.7 HADR with TSA - Part 08 - Performing some DB2 9.7 HADR failover and failback test</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;In this artical i will provide failover and failback command for DB2 HADR with TSA and provide DB2 HADR test cases. I will also provide HADR step that i followed for testing.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2010/11/db2-97-hadr-with-tsa-part-00.html"&gt;Part 0 : DB2 9.7 HADR with TSA Part 00 - Introduction&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2010/11/db2-97-hadr-with-tsa-part-01-installing.html"&gt;Part 1 : Installing and configuring VMWare environment&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-02-installing.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;2 : Installing IBM tools for querying and monitoring purpose&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-03-installing.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;3 : Installing IBM DB2 9.7 database&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-04-installing.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;4 : Installing DB2 9.7 Fix-pack&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-05-creating.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;5 : Creating Instance and database&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-06.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;6 : Configuring DB2 9.7 HADR between Primary and Standby&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/04/db2-97-hadr-with-tsa-part-07.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;7 : Configuring DB2 9.7 HADR to work with TSA&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div style="color: blue;"&gt;&lt;b&gt;&lt;span style="font-size: large;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;A) Normal Operation&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt; When DB2 HADR is configured under TSA clustering, under normal operation below is status of TSA resources and resource group&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;lssam -top&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-S-NsF6nQu1w/TaGzjX3oIRI/AAAAAAAAB4w/_EtEZRk_QQA/s1600/01.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="330" src="http://2.bp.blogspot.com/-S-NsF6nQu1w/TaGzjX3oIRI/AAAAAAAAB4w/_EtEZRk_QQA/s640/01.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style="color: blue;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;B) Controlled Failover&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;b&gt;1. Current Primary Node =&amp;gt; &lt;/b&gt; &lt;i&gt;mumbai&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;b&gt;2. Current Standby Node =&amp;gt; &lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;i&gt;london&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;b&gt;3. Node on which failover command is executed =&amp;gt; &lt;/b&gt; &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;i&gt;mumbai&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;u&gt;Note: &lt;/u&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;For failover operation, the TSA command must be executed as "root" user on the existing primary node.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-XDwadLl6ZJE/TaG0BmhQS1I/AAAAAAAAB48/__Gmw10NP58/s1600/04.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-mAeqq39Sc8s/TaG0AyHgCOI/AAAAAAAAB40/FSO-Zf--kUA/s1600/02.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="426" src="http://3.bp.blogspot.com/-mAeqq39Sc8s/TaG0AyHgCOI/AAAAAAAAB40/FSO-Zf--kUA/s640/02.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-jiO2mBkbyfo/TaG0BSAkaPI/AAAAAAAAB44/_bRgvneyYLY/s1600/03.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="364" src="http://1.bp.blogspot.com/-jiO2mBkbyfo/TaG0BSAkaPI/AAAAAAAAB44/_bRgvneyYLY/s640/03.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-XDwadLl6ZJE/TaG0BmhQS1I/AAAAAAAAB48/__Gmw10NP58/s1600/04.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="390" src="http://3.bp.blogspot.com/-XDwadLl6ZJE/TaG0BmhQS1I/AAAAAAAAB48/__Gmw10NP58/s640/04.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: blue;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;C) Controlled Failback&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;b&gt;1. Current Primary Node =&amp;gt; &lt;/b&gt; &lt;i&gt;london&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;b&gt;2. Current Standby Node =&amp;gt; &lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;i&gt;mumbai&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;b&gt;3. Node on which failover command is executed =&amp;gt; &lt;/b&gt; &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;i&gt;london&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;u&gt;Note: &lt;/u&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;For failover operation, the TSA command must be executed as "root" user on the existing primary node.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-RdEnZ4qZtTw/TaG9gfts3XI/AAAAAAAAB5A/nQzRjd7iSrU/s1600/05.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="466" src="http://3.bp.blogspot.com/-RdEnZ4qZtTw/TaG9gfts3XI/AAAAAAAAB5A/nQzRjd7iSrU/s640/05.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-WE-syyEZ8_Q/TaG9hL8XEKI/AAAAAAAAB5E/dGyBA4tJtzI/s1600/06.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="346" src="http://2.bp.blogspot.com/-WE-syyEZ8_Q/TaG9hL8XEKI/AAAAAAAAB5E/dGyBA4tJtzI/s640/06.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-r_9z1Iy6r6A/TaG9hwk2dhI/AAAAAAAAB5I/aTY3DOdI4S0/s1600/07.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="382" src="http://2.bp.blogspot.com/-r_9z1Iy6r6A/TaG9hwk2dhI/AAAAAAAAB5I/aTY3DOdI4S0/s640/07.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style="color: blue;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;D) Primary Instance Failure&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;In this case, TSA will try to start the Primary Instance Automatically.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-LRlhK8HsWU4/TaG-7e796mI/AAAAAAAAB5M/P1fsQuwVzns/s1600/08.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="432" src="http://1.bp.blogspot.com/-LRlhK8HsWU4/TaG-7e796mI/AAAAAAAAB5M/P1fsQuwVzns/s640/08.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-EuDsLHXda34/TaG-8ZgAW-I/AAAAAAAAB5U/U0PWwe3Skvk/s1600/10.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-cyRL7mz2hFs/TaG-7zg-36I/AAAAAAAAB5Q/yqgCQFaAWoY/s1600/09.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="352" src="http://1.bp.blogspot.com/-cyRL7mz2hFs/TaG-7zg-36I/AAAAAAAAB5Q/yqgCQFaAWoY/s640/09.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-EuDsLHXda34/TaG-8ZgAW-I/AAAAAAAAB5U/U0PWwe3Skvk/s1600/10.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="358" src="http://1.bp.blogspot.com/-EuDsLHXda34/TaG-8ZgAW-I/AAAAAAAAB5U/U0PWwe3Skvk/s640/10.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: blue;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;E) Stanby Instance Failure&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;In this case, TSA will try to start the Standby Instance Automatically.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-ZnrgbvTVwTg/TaG_vXTU3KI/AAAAAAAAB5Y/iQfxteJVdeY/s1600/11.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="460" src="http://4.bp.blogspot.com/-ZnrgbvTVwTg/TaG_vXTU3KI/AAAAAAAAB5Y/iQfxteJVdeY/s640/11.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-D3sr8v8KLrs/TaG_wKYX2iI/AAAAAAAAB5c/lEYUVJvx4C4/s1600/12.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="338" src="http://4.bp.blogspot.com/-D3sr8v8KLrs/TaG_wKYX2iI/AAAAAAAAB5c/lEYUVJvx4C4/s640/12.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-KiDwknTVQqc/TaG_xECl1AI/AAAAAAAAB5g/FW3rXoOkp8M/s1600/13.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="336" src="http://4.bp.blogspot.com/-KiDwknTVQqc/TaG_xECl1AI/AAAAAAAAB5g/FW3rXoOkp8M/s640/13.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style="color: blue;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;F) Primary Node failure&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;In this test scenario, you need a third node which behave as a Tie-breaker when the communication between each of the HADR node is lost. i.e. when the communication link between HADR node is lost, then the Network Tie-breaker node is used to decide which node will be the owning the cluster resource and will reboot the remaining node.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;In order to test this scenario,&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;1) Create the TSA domain with network quoum which refer to the IP address of third non-HADR node.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;2) Then bring down the eth0 card of primary node.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;3) Bringing the eth0 card on primary node will force hard boot of Primary Node and TSA will perform a force takeover of HADR on Standby node&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;4) Following the Primary node restart the DB take the new role as STANDBY node.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: blue;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;G) Stopping TSA monitoring for Database&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;This will stop the TSA monitoring of the HADR Databases. But, the DB2 HADR is not terminated by this operation. DB2 HADR configuration continue to work as normal. Only, automatic failover of the DB2 HADR is disabled.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-MEAKl5-vUbE/TaIZCGPliDI/AAAAAAAAB5w/8_jOU3HnurM/s1600/17.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="438" src="http://2.bp.blogspot.com/-MEAKl5-vUbE/TaIZCGPliDI/AAAAAAAAB5w/8_jOU3HnurM/s640/17.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-J39Ecw-hjOQ/TaIZCTODJYI/AAAAAAAAB50/WuKwIWerLko/s1600/18.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="336" src="http://4.bp.blogspot.com/-J39Ecw-hjOQ/TaIZCTODJYI/AAAAAAAAB50/WuKwIWerLko/s640/18.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-ssWlrx8Ch9s/TaIZC66uFUI/AAAAAAAAB54/P5vil0E3Et8/s1600/19.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="328" src="http://2.bp.blogspot.com/-ssWlrx8Ch9s/TaIZC66uFUI/AAAAAAAAB54/P5vil0E3Et8/s640/19.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: blue;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;H) Starting TSA Monitoring for Database&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;This operation will start the TSA monitoring of the DB2 HADR database and provide operation of automatic failover following the primay node failure.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-t7g-CH23Oeg/TaIZnAQmkaI/AAAAAAAAB58/T6IcAz1e8BA/s1600/20.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="436" src="http://4.bp.blogspot.com/-t7g-CH23Oeg/TaIZnAQmkaI/AAAAAAAAB58/T6IcAz1e8BA/s640/20.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-sKOdDx___6I/TaIZndXr8QI/AAAAAAAAB6A/KMLNbxOhY04/s1600/21.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="312" src="http://4.bp.blogspot.com/-sKOdDx___6I/TaIZndXr8QI/AAAAAAAAB6A/KMLNbxOhY04/s640/21.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-zQHtQuPfjyw/TaIZnwe8FdI/AAAAAAAAB6E/7VOhRB3MKRU/s1600/22.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="332" src="http://1.bp.blogspot.com/-zQHtQuPfjyw/TaIZnwe8FdI/AAAAAAAAB6E/7VOhRB3MKRU/s640/22.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: blue;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;I) Standby instance TSA Resource Group failure&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-LCdjbulND9E/TaIaXTrMIrI/AAAAAAAAB6I/rXGHFD7L_S8/s1600/23.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="432" src="http://4.bp.blogspot.com/-LCdjbulND9E/TaIaXTrMIrI/AAAAAAAAB6I/rXGHFD7L_S8/s640/23.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-Uqly7C892go/TaIaXthqZeI/AAAAAAAAB6M/l6igwEMQLEw/s1600/24.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="328" src="http://4.bp.blogspot.com/-Uqly7C892go/TaIaXthqZeI/AAAAAAAAB6M/l6igwEMQLEw/s640/24.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-nsNS22MNXZo/TaIaYCC7LhI/AAAAAAAAB6Q/MFuF05-B8gE/s1600/25.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="296" src="http://2.bp.blogspot.com/-nsNS22MNXZo/TaIaYCC7LhI/AAAAAAAAB6Q/MFuF05-B8gE/s640/25.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="color: red; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: small;"&gt;&lt;u&gt;&lt;b&gt;&lt;span style="line-height: 115%;"&gt;Primary Enters into disconnected state&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-AGMA-m_spkE/TaIa3P02nrI/AAAAAAAAB6U/KjhNVkk2ORg/s1600/26.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="480" src="http://4.bp.blogspot.com/-AGMA-m_spkE/TaIa3P02nrI/AAAAAAAAB6U/KjhNVkk2ORg/s640/26.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="color: red; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: small;"&gt;&lt;u&gt;&lt;b&gt;&lt;span style="line-height: 115%;"&gt;Standby Instance Resource Group restored&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;At this stage, if the Standby Resource is stopped because of some error, then TSA will try to start it. If the Standby resource is manually stopped then TSA will not try to start it.&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-tA5kLaWmg4M/TaIbkQl5mGI/AAAAAAAAB6Y/vc9ctCQD0v4/s1600/27.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="432" src="http://4.bp.blogspot.com/-tA5kLaWmg4M/TaIbkQl5mGI/AAAAAAAAB6Y/vc9ctCQD0v4/s640/27.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-ewfTlaeVQHA/TaIbkzUyp0I/AAAAAAAAB6c/4QNuIbHuuPk/s1600/28.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="302" src="http://1.bp.blogspot.com/-ewfTlaeVQHA/TaIbkzUyp0I/AAAAAAAAB6c/4QNuIbHuuPk/s640/28.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-zKAxy0RjSWY/TaIblKnv4rI/AAAAAAAAB6g/4vq8G-JSkKs/s1600/29.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://3.bp.blogspot.com/-zKAxy0RjSWY/TaIblKnv4rI/AAAAAAAAB6g/4vq8G-JSkKs/s640/29.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-6lUjoJ2TuCA/TaIblWVCZhI/AAAAAAAAB6k/dAGvkx-TpjU/s1600/30.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="496" src="http://1.bp.blogspot.com/-6lUjoJ2TuCA/TaIblWVCZhI/AAAAAAAAB6k/dAGvkx-TpjU/s640/30.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style="color: blue;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;J) Primary Instance TSA Resource Group Failure&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-TPTGzLUbk3U/TaIcIXDQFxI/AAAAAAAAB6o/9AqZV-a0SXk/s1600/31.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="434" src="http://1.bp.blogspot.com/-TPTGzLUbk3U/TaIcIXDQFxI/AAAAAAAAB6o/9AqZV-a0SXk/s640/31.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-qiRIZquituE/TaIcI-LkQNI/AAAAAAAAB6s/rTjQlNWOcJI/s1600/32.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="334" src="http://3.bp.blogspot.com/-qiRIZquituE/TaIcI-LkQNI/AAAAAAAAB6s/rTjQlNWOcJI/s640/32.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-9b-G50iqNFI/TaIcKq73fbI/AAAAAAAAB6w/Z7R7VqzxClQ/s1600/33.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="330" src="http://1.bp.blogspot.com/-9b-G50iqNFI/TaIcKq73fbI/AAAAAAAAB6w/Z7R7VqzxClQ/s640/33.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="color: red; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;u&gt;&lt;b&gt;&lt;span style="font-size: 11pt; line-height: 115%;"&gt;Standby Enters into DISCONNECTEDPEER State because HADR_PEER_WINDOW=300 (seconds)&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-E2ZiOYjOVjs/TaIcqqbJA0I/AAAAAAAAB60/v5yhxCNaSXw/s1600/34.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="538" src="http://2.bp.blogspot.com/-E2ZiOYjOVjs/TaIcqqbJA0I/AAAAAAAAB60/v5yhxCNaSXw/s640/34.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-9cgkWJJ_pmU/TaIcrB-hr9I/AAAAAAAAB64/uCjrr_zuw3s/s1600/35.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://3.bp.blogspot.com/-9cgkWJJ_pmU/TaIcrB-hr9I/AAAAAAAAB64/uCjrr_zuw3s/s640/35.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="color: red; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;u&gt;&lt;b&gt;&lt;span style="font-size: 11pt; line-height: 115%;"&gt;Standby enters into REMOTECATCHPENDING state after HADR_PEER_WINDOW expires&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-7y3K69MZ7ws/TaIdEd4CwVI/AAAAAAAAB68/xM8CXrdcGys/s1600/36.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="530" src="http://4.bp.blogspot.com/-7y3K69MZ7ws/TaIdEd4CwVI/AAAAAAAAB68/xM8CXrdcGys/s640/36.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-blwpo0raVAo/TaIdE0jj9II/AAAAAAAAB7A/HzHr5pxzKhU/s1600/37.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="310" src="http://3.bp.blogspot.com/-blwpo0raVAo/TaIdE0jj9II/AAAAAAAAB7A/HzHr5pxzKhU/s640/37.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="color: red; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;u&gt;&lt;b&gt;&lt;span style="font-size: 11pt; line-height: 115%;"&gt;Standby continue to stay in REMOTECATCHPENDING STATE&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-ra9n5e7WKDU/TaIdXrv8R2I/AAAAAAAAB7E/NxnXwzSvSTA/s1600/38.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="570" src="http://3.bp.blogspot.com/-ra9n5e7WKDU/TaIdXrv8R2I/AAAAAAAAB7E/NxnXwzSvSTA/s640/38.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;div style="color: red; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;u&gt;&lt;b&gt;&lt;span style="font-size: 11pt; line-height: 115%;"&gt;Restore the PRIMARY instance RESOURCE group&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-H0GZtrt3IDc/TaIdwbH6UEI/AAAAAAAAB7I/EhPk9VF8aFE/s1600/39.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="432" src="http://1.bp.blogspot.com/-H0GZtrt3IDc/TaIdwbH6UEI/AAAAAAAAB7I/EhPk9VF8aFE/s640/39.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-j_A78MyqSNE/TaIdw45tf0I/AAAAAAAAB7M/d2h3uOzQsJM/s1600/40.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="330" src="http://2.bp.blogspot.com/-j_A78MyqSNE/TaIdw45tf0I/AAAAAAAAB7M/d2h3uOzQsJM/s640/40.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-c3ev8TvZFhA/TaIdzBQy0cI/AAAAAAAAB7Q/btGAEvf-1YE/s1600/41.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="330" src="http://1.bp.blogspot.com/-c3ev8TvZFhA/TaIdzBQy0cI/AAAAAAAAB7Q/btGAEvf-1YE/s640/41.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style="color: blue;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;K) Failover using DB2 TAKEOVER command&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-haPUKJK5vq8/TaIeTj_7arI/AAAAAAAAB7U/icUV39tsC2Q/s1600/42.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://1.bp.blogspot.com/-haPUKJK5vq8/TaIeTj_7arI/AAAAAAAAB7U/icUV39tsC2Q/s640/42.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-8pNvxhnxwRU/TaIeT2MpBFI/AAAAAAAAB7Y/II4BzGsYXYo/s1600/43.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="346" src="http://2.bp.blogspot.com/-8pNvxhnxwRU/TaIeT2MpBFI/AAAAAAAAB7Y/II4BzGsYXYo/s640/43.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-GtNXrZCQk6I/TaIeUlXZzaI/AAAAAAAAB7c/S7YIBlJOaFY/s1600/44.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://2.bp.blogspot.com/-GtNXrZCQk6I/TaIeUlXZzaI/AAAAAAAAB7c/S7YIBlJOaFY/s640/44.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-kBU4LZNu08U/TaIeVXtJP8I/AAAAAAAAB7g/F30lIBmzCUs/s1600/45.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="150" src="http://4.bp.blogspot.com/-kBU4LZNu08U/TaIeVXtJP8I/AAAAAAAAB7g/F30lIBmzCUs/s640/45.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: blue;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;L) Failback using DB2 TAKEOVER command&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-neTpw3jQMrw/TaIe7FWMS6I/AAAAAAAAB7k/kNShLWPd1Dw/s1600/46.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="180" src="http://2.bp.blogspot.com/-neTpw3jQMrw/TaIe7FWMS6I/AAAAAAAAB7k/kNShLWPd1Dw/s640/46.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-omNh22AraiE/TaIe7citqoI/AAAAAAAAB7o/S_brjXWBl3g/s1600/47.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="304" src="http://4.bp.blogspot.com/-omNh22AraiE/TaIe7citqoI/AAAAAAAAB7o/S_brjXWBl3g/s640/47.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-Islohjb9FUU/TaIe8AGvYPI/AAAAAAAAB7s/ZHb8iqVtlb4/s1600/48.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="334" src="http://3.bp.blogspot.com/-Islohjb9FUU/TaIe8AGvYPI/AAAAAAAAB7s/ZHb8iqVtlb4/s640/48.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-mclf4ih5EsY/TaIe8aK1ruI/AAAAAAAAB7w/9x9umVWONLw/s1600/49.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="138" src="http://4.bp.blogspot.com/-mclf4ih5EsY/TaIe8aK1ruI/AAAAAAAAB7w/9x9umVWONLw/s640/49.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2277672312650284960-1914055805890374418?l=gilroygonsalves.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2277672312650284960&amp;postID=1914055805890374418' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/1914055805890374418'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/1914055805890374418'/><link rel='alternate' type='text/html' href='http://gilroygonsalves.blogspot.com/2011/04/db2-97-hadr-with-tsa-part-08-performing.html' title='DB2 9.7 HADR with TSA - Part 08 - Performing some DB2 9.7 HADR failover and failback test'/><author><name>Gilroy N. Gonsalves</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://4.bp.blogspot.com/_1y3JEK7a9rA/SwVA9dHzK_I/AAAAAAAABDA/9ilTxBQTEB0/S220/DSC00140.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-S-NsF6nQu1w/TaGzjX3oIRI/AAAAAAAAB4w/_EtEZRk_QQA/s72-c/01.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2277672312650284960.post-7687607591245039738</id><published>2011-04-04T00:44:00.000+01:00</published><updated>2011-10-07T22:22:27.381+01:00</updated><title type='text'>DB2 9.7 HADR with TSA - Part 07 : Configuring DB2 9.7 HADR to work with TSA</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;In this artical i will discuss some of the pre-req needed to configure DB2 HADR with TSA and provide some useful references.&lt;br /&gt;a) Pre-Configuration Details&lt;br /&gt;b) Configuring DB2 HADR with TSA&lt;br /&gt;c) Monitoring DB2 HADR with TSA configuration&lt;br /&gt;&lt;br /&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2010/11/db2-97-hadr-with-tsa-part-00.html"&gt;Part 0 : DB2 9.7 HADR with TSA Part 00 - Introduction&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2010/11/db2-97-hadr-with-tsa-part-01-installing.html"&gt;Part 1 : Installing and configuring VMWare environment&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-02-installing.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;2 : Installing IBM tools for querying and monitoring purpose&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-03-installing.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;3 : Installing IBM DB2 9.7 database&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-04-installing.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;4 : Installing DB2 9.7 Fix-pack&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-05-creating.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;5 : Creating Instance and database&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-06.html"&gt;Part 6 : Configuring DB2 9.7 HADR between Primary and Standby&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="color: blue;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;A) Pre-Configuration Details&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th align="center" bgcolor="#FFFF66"&gt;Item #&lt;/th&gt; &lt;th align="center" bgcolor="#FFFF66"&gt;Description&lt;/th&gt;&lt;th align="center" bgcolor="#FFFF66" colspan="2"&gt;Command&lt;/th&gt;   &lt;/tr&gt;&lt;tr&gt;&lt;td colspan="4"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt; &lt;th colspan="2"&gt;System On which command will be executed =&amp;gt; &lt;/th&gt;&lt;th align="center" bgcolor="#8A87C7"&gt;Primary&lt;/th&gt;&lt;th align="center" bgcolor="#8A87C7"&gt;Standby&lt;/th&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;1&lt;/td&gt; &lt;td&gt;Archive the Current &lt;b&gt;db2diag.log&lt;/b&gt; file&lt;/td&gt;  &lt;td&gt;&lt;br /&gt;&lt;pre&gt;db2diag -A&lt;/pre&gt;&lt;/td&gt;  &lt;td&gt;&lt;br /&gt;&lt;pre&gt;db2diag -A&lt;/pre&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;2&lt;/td&gt; &lt;td&gt;Set the database &lt;b&gt;HADR_PEER_WINDOW&lt;/b&gt; configuration parameter to non-zero value&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;pre&gt;db2 get db cfg for sample | grep -i hadr&lt;/pre&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;pre&gt;db2 get db cfg for sample | grep -i hadr &lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;3&lt;/td&gt; &lt;td&gt;Prepare the Environment for TSA configuration&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;pre&gt;a) Login as &lt;b&gt;root&lt;/b&gt;&lt;br /&gt;&lt;b&gt;su -&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;b) Execute the TSA command&lt;br /&gt;preprpnode {node1} {node2}&lt;br /&gt;&lt;br /&gt;For Example,&lt;br /&gt;&lt;b&gt;preprpnode mumbai london&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;pre&gt;a) Login as &lt;b&gt;root&lt;/b&gt;&lt;br /&gt;&lt;b&gt;su -&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;b) Execute the TSA command&lt;br /&gt;preprpnode {node1} {node2}&lt;br /&gt;&lt;br /&gt;For Example,&lt;br /&gt;&lt;b&gt;preprpnode mumbai london&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;4&lt;/td&gt; &lt;td&gt;Identify your Virutal IP(VIP)m DB2 Service Port and Network Quorum IP Address&lt;/td&gt; &lt;td colspan="2"&gt;&lt;br /&gt;a) Virtual IP =&amp;gt; &lt;b&gt;192.168.5.55&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;b) DB2 Service Port&lt;br /&gt;DBM CFG parameter &lt;b&gt;svcename = 60000&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;c) Network Quorum IP address&lt;br /&gt;&lt;b&gt;In production Environment this should be the address of third machine which becomes the tie breaker. For testing purpose i am using one of the DB2 HADR node IP address.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: blue;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;B) Configuring DB2 HADR with TSA&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th align="center" bgcolor="#FFFF66"&gt;Item #&lt;/th&gt; &lt;th align="center" bgcolor="#FFFF66"&gt;Description&lt;/th&gt;&lt;th align="center" bgcolor="#FFFF66" colspan="2"&gt;Command&lt;/th&gt;   &lt;/tr&gt;&lt;tr&gt;&lt;td colspan="4"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt; &lt;th colspan="2"&gt;System On which command will be executed =&amp;gt; &lt;/th&gt;&lt;th align="center" bgcolor="#8A87C7"&gt;Primary&lt;/th&gt;&lt;th align="center" bgcolor="#8A87C7"&gt;Standby&lt;/th&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;1&lt;/td&gt; &lt;td&gt;Login as &lt;b&gt;Instance owner&lt;/b&gt;&lt;/td&gt; &lt;td&gt;No Operation&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;pre&gt;su - db2inst1&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;2&lt;/td&gt; &lt;td&gt;Configure the DB2 HADR with TSA&lt;/td&gt; &lt;td&gt;No Operation&lt;/td&gt; &lt;td&gt;&lt;br /&gt;a) Start the &lt;b&gt;DB2 HA instance configuration Utility&lt;/b&gt;&lt;br /&gt;&lt;pre&gt;db2haicu&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;b) Refere the below link for further step by step details&lt;br /&gt;&lt;pre&gt;&lt;a href="ftp://ftp.software.ibm.com/software/data/pubs/papers/HADR_db2haicu.pdf"&gt;ftp://ftp.software.ibm.com/software/data/pubs/papers/HADR_db2haicu.pdf&lt;/a&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;3&lt;/td&gt; &lt;td&gt;Problem resoultion for the errors when using Virutal Machine&lt;/td&gt; &lt;td colspan="2"&gt;&lt;br /&gt;&lt;pre&gt;"If during the creation of Cluster domain following error is reported. This happen when the HADR node is cloned using OS copy command.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Error&lt;/b&gt;&lt;br /&gt;2632-044 The domain cannot be created due to the following errors that were detected while harvesting information from the target nodes:&lt;br /&gt;&lt;b&gt;london:&lt;/b&gt; 2632-068 This node has the same internal identifier as mumbai and cannot be included&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Action&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;1) Identify the node where it is failing in the db2diag.log file with the above message. &lt;b&gt;For example, from the above message we see "london" is the node name"&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;2) Login as ""root"" user on that node&lt;br /&gt;&lt;br /&gt;3) Execute the command&lt;br /&gt;&lt;b&gt;/usr/sbin/rsct/install/bin/recfgct&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;4) Prepare the nodes again on both PRIMARY and SECONDARY&lt;br /&gt;&lt;b&gt;preprpnode mumbai london&lt;/b&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;b&gt;If you get following errors on Standby&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;2011-10-06-17.53.36.820837-240 E11710207E627       LEVEL: Warning&lt;br /&gt;PID     : 15534                TID  : 47621153264496PROC : db2haicu&lt;br /&gt;INSTANCE: db2inst1             NODE : 000&lt;br /&gt;FUNCTION: DB2 Common, SQLHA APIs for DB2 HA Infrastructure, sqlhaUICreateHADR, probe:1000&lt;br /&gt;RETCODE : &lt;span class="Apple-style-span" style="color: red;"&gt;&lt;b&gt;ECF=0x9000056F=-1879046801=ECF_SQLHA_HADR_VALIDATION_FAILED&lt;br /&gt;          The HADR DB failed validation before being added to the cluster&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;&lt;b&gt;MESSAGE : Standby Node not configured for HADR.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;DATA #1 : String, 8 bytes&lt;br /&gt;db2inst1&lt;br /&gt;DATA #2 : String, 8 bytes&lt;br /&gt;db2inst1&lt;br /&gt;DATA #3 : String, 6 bytes&lt;br /&gt;sydney&lt;br /&gt;DATA #4 : String, 6 bytes&lt;br /&gt;london&lt;br /&gt;DATA #5 : String, 6 bytes&lt;br /&gt;SAMPLE&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;1) Refer link&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;a href="https://www-304.ibm.com/support/docview.wss?uid=swg21420060"&gt;https://www-304.ibm.com/support/docview.wss?uid=swg21420060&lt;/a&gt;&lt;br /&gt;&lt;a href="https://www-304.ibm.com/support/docview.wss?uid=swg21443643"&gt;https://www-304.ibm.com/support/docview.wss?uid=swg21443643&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.ibm.com/developerworks/data/tutorials/dm-1009db2hadr/section3.html"&gt;http://www.ibm.com/developerworks/data/tutorials/dm-1009db2hadr/section3.html&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;C) Monitoring DB2 HADR with TSA configuration&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th align="center" bgcolor="#FFFF66"&gt;Item #&lt;/th&gt; &lt;th align="center" bgcolor="#FFFF66"&gt;Description&lt;/th&gt;&lt;th align="center" bgcolor="#FFFF66" colspan="2"&gt;Command&lt;/th&gt;   &lt;/tr&gt;&lt;tr&gt;&lt;td colspan="4"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt; &lt;th colspan="2"&gt;System On which command will be executed =&amp;gt; &lt;/th&gt;&lt;th align="center" bgcolor="#8A87C7"&gt;Primary&lt;/th&gt;&lt;th align="center" bgcolor="#8A87C7"&gt;Standby&lt;/th&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;1&lt;/td&gt; &lt;td&gt;Listing the TSA resources and resource groups as "Instance Owner" user&lt;/td&gt; &lt;td colspan="2"&gt;&lt;br /&gt;&lt;pre&gt;a) Point in time Snapshot&lt;br /&gt;&lt;b&gt;lssam &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;b) Continues Snapshot&lt;br /&gt;&lt;b&gt; lssam -top&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;2&lt;/td&gt; &lt;td&gt;Check Network Equivalency&lt;/td&gt; &lt;td colspan="2"&gt;&lt;pre&gt;lsequ -Ab&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;3&lt;/td&gt; &lt;td&gt;Identify the Communication Group&lt;/td&gt; &lt;td colspan="2"&gt;&lt;pre&gt;lsrsrc -Ab IBM.NetworkInterface Name IPAddress CommGroup HeartbeatActive NodeNameList&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;4&lt;/td&gt; &lt;td&gt;Active TieBreaker&lt;/td&gt; &lt;td colspan="2"&gt;&lt;pre&gt;lsrsrc -c IBM.PeerNode OpQuorumTieBreaker&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;5&lt;/td&gt; &lt;td&gt;Service IP Resource&lt;/td&gt; &lt;td colspan="2"&gt;&lt;pre&gt;lsrsrc -Ab IBM.ServiceIP&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;6&lt;/td&gt; &lt;td&gt;Active TieBreaker&lt;/td&gt; &lt;td colspan="2"&gt;&lt;pre&gt;lsrsrc -c IBM.PeerNode OpQuorumTieBreaker&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: blue; font-size: x-large;"&gt;D) Some useful resolution&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: purple;"&gt;A) Error "2612-023" when attempting "resetrsrc" on "Failed Offline" standby resource&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: purple;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-qoKTtrZXbig/To9r0DK5TxI/AAAAAAAAB80/1f_817XSse0/s1600/failed+Offline.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="364" src="http://1.bp.blogspot.com/-qoKTtrZXbig/To9r0DK5TxI/AAAAAAAAB80/1f_817XSse0/s640/failed+Offline.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="font-size: 13px; text-align: center;"&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;&lt;i&gt;Action&lt;/i&gt;&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;1) Identify the Node on which the &lt;b&gt;resource &lt;/b&gt;is shown "Failed Offline".&lt;br /&gt;&lt;br /&gt;2) Login to node on which it is failing as "root" user&lt;br /&gt;&lt;br /&gt;3) Execute "export CT_MANAGEMENT_SCOPE=2"&lt;br /&gt;&lt;br /&gt;4) Execute the following command&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;resetrsrc -s "Name='db2_db2inst1_db2inst1_SAMPLE-rs' and NodeNameList={'sydney'}" IBM.Application&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5) The above command will take the resource out of "Failed Offline" mode.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: purple;"&gt;B) Sometime the "Resource Group" state is shown "Offline" even after all the resource under the resource group are Online.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;&lt;i&gt;Action&lt;/i&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;1) Change the &lt;b&gt;Nominal &lt;/b&gt;state of all the "Resource Group" to "Offline"&lt;br /&gt;chrg -o offline &lt;resource_group_name&gt;&lt;/resource_group_name&gt;&lt;br /&gt;&lt;br /&gt;2) Stop the HADR configuration on the database using below sequence&lt;br /&gt;Primary &amp;nbsp;=&amp;gt; &amp;nbsp;db2 stop hadr on database sample&lt;br /&gt;Primary &amp;nbsp;=&amp;gt; db2 deactivate db sample&lt;br /&gt;Primary &amp;nbsp;=&amp;gt; db2stop force&lt;br /&gt;Standby &amp;nbsp;=&amp;gt; &amp;nbsp;db2 deactivate db sample&lt;br /&gt;Standby &amp;nbsp;=&amp;gt; db2 stop hadr on db sample&lt;br /&gt;Standby &amp;nbsp;=&amp;gt; db2stop force&lt;br /&gt;&lt;br /&gt;3) Login as "root" user on any one of the node in the cluster and stop the cluster domain&lt;br /&gt;lsrpdomain&lt;br /&gt;stoprpdomain &lt;domain_name&gt;&lt;/domain_name&gt;&lt;br /&gt;&lt;br /&gt;4) Start the cluster domain as "root" user on any one node.&lt;br /&gt;startrpdomain &lt;domain_name&gt;&lt;/domain_name&gt;&lt;br /&gt;lsrpdomain&lt;br /&gt;lsrpnode&lt;br /&gt;&lt;br /&gt;&lt;u style="font-weight: bold;"&gt;Notes: &lt;/u&gt;&amp;nbsp; The domain take some time to bring all the services online so please be&amp;nbsp;patience&lt;br /&gt;&lt;br /&gt;5) Change the &lt;b&gt;Nominal &lt;/b&gt;state of instance "Resource Group" to "Online" using below sequence&lt;br /&gt;chrg -o online &lt;primary_node_instance_resource&gt;&lt;/primary_node_instance_resource&gt;&lt;br /&gt;chrg -o online &lt;standby_node_instance_resource&gt;&lt;/standby_node_instance_resource&gt;&lt;br /&gt;&lt;br /&gt;&lt;u style="font-weight: bold;"&gt;Notes: &lt;/u&gt;&amp;nbsp;After execution of the above command instance on both the server are started automatically&lt;br /&gt;&lt;br /&gt;6) Start the HADR on the database using below sequence&lt;br /&gt;Primary &amp;nbsp;=&amp;gt; &amp;nbsp;db2 activate db sample&lt;br /&gt;Standby &amp;nbsp;=&amp;gt; db2 start hadr on db sample as standby&lt;br /&gt;Primary &amp;nbsp;=&amp;gt; db2 start hadr on db sample as primary&lt;br /&gt;db2pd -db sample -hadr &amp;nbsp; &amp;nbsp;........... This show state as "Peer"&lt;br /&gt;&lt;br /&gt;7) Change the Nominal state of "HADR Resource group" to "Online" using below sequence&lt;br /&gt;chrg -o online &lt;hadr_reosurce_group&gt;&lt;/hadr_reosurce_group&gt;&lt;br /&gt;&lt;br /&gt;8) Check to see if all the resources are showing state as "Online"&lt;br /&gt;lssam&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2277672312650284960-7687607591245039738?l=gilroygonsalves.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2277672312650284960&amp;postID=7687607591245039738' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/7687607591245039738'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/7687607591245039738'/><link rel='alternate' type='text/html' href='http://gilroygonsalves.blogspot.com/2011/04/db2-97-hadr-with-tsa-part-07.html' title='DB2 9.7 HADR with TSA - Part 07 : Configuring DB2 9.7 HADR to work with TSA'/><author><name>Gilroy N. Gonsalves</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://4.bp.blogspot.com/_1y3JEK7a9rA/SwVA9dHzK_I/AAAAAAAABDA/9ilTxBQTEB0/S220/DSC00140.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-qoKTtrZXbig/To9r0DK5TxI/AAAAAAAAB80/1f_817XSse0/s72-c/failed+Offline.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2277672312650284960.post-5126046071371752264</id><published>2011-03-20T23:15:00.000Z</published><updated>2011-04-03T23:45:07.122+01:00</updated><title type='text'>DB2 9.7 HADR with TSA - Part 06 - Configuring DB2 9.7 HADR between Primary and Standby</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;In this blog i will present step to configure non-Cluster DB2 9.7 HADR configuration. Following topics are covered in this blog&lt;br /&gt;&amp;nbsp;a) Pre-Configuration Details&lt;br /&gt;b) Setting up non-cluster DB2 9.7 HADR&lt;br /&gt;c) Manual Starting/Stopping HADR steps&lt;br /&gt;d) Manul Failover/Failback Steps&lt;br /&gt;e) Force Failover/Failback Steps&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2010/11/db2-97-hadr-with-tsa-part-00.html"&gt;Part 0 : DB2 9.7 HADR with TSA Part 00 - Introduction&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2010/11/db2-97-hadr-with-tsa-part-01-installing.html"&gt;Part 1 : Installing and configuring VMWare environment&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-02-installing.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;2 : Installing IBM tools for querying and monitoring purpose&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-03-installing.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;3 : Installing IBM DB2 9.7 database&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-04-installing.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;4 : Installing DB2 9.7 Fix-pack&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-05-creating.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;5 : Creating Instance and database&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: blue;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;A) Pre-Configuation Details&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th align="center" bgcolor="#FFFF66"&gt;Item #&lt;/th&gt; &lt;th align="center" bgcolor="#FFFF66"&gt;Description&lt;/th&gt;&lt;th align="center" colspan="2" bgcolor="#FFFF66"&gt;Command&lt;/th&gt;   &lt;/tr&gt;&lt;tr&gt;&lt;td colspan=4&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt; &lt;th colspan="2"&gt;System On which command will be executed =&amp;gt; &lt;/th&gt;&lt;th align="center" bgcolor=#8A87C7&gt;Primary&lt;/th&gt;&lt;th align="center" bgcolor=#8A87C7&gt;Standby&lt;/th&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;1&lt;/td&gt; &lt;td&gt;IP Address and Hostname&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;b&gt;a) Public Network&lt;/b&gt;&lt;br /&gt;IP =&amp;gt; 192.168.5.22&lt;br /&gt;Hostname =&amp;gt; Mumbai&lt;br /&gt;&lt;br /&gt;&lt;b&gt;b) Private Network (Optional)&lt;/b&gt;&lt;br /&gt;IP =&amp;gt; 192.168.5.23&lt;br /&gt;Hostname =&amp;gt; priv01&lt;br /&gt;&lt;b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;/b&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;b&gt;a) Public Network&lt;/b&gt;&lt;br /&gt;IP =&amp;gt; 192.168.5.33&lt;br /&gt;Hostname =&amp;gt; London&lt;br /&gt;&lt;br /&gt;&lt;b&gt;b) Private Network (Optional)&lt;/b&gt;&lt;br /&gt;IP =&amp;gt; 192.168.5.34&lt;br /&gt;Hostname =&amp;gt; priv02&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;2&lt;/td&gt; &lt;td&gt;Virtual IP (Configured by TSA)&lt;/td&gt; &lt;td colspan="2"&gt;&lt;br /&gt;IP =&amp;gt; 192.168.5.55&lt;br /&gt;Virtual Hostname =&amp;gt; newyork&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;3&lt;/td&gt; &lt;td&gt;Create New Mount point &lt;br /&gt;&lt;b&gt;(Repet step a to Step i for each new hard disk added to the virtual machine)&lt;/b&gt;&lt;/td&gt; &lt;td colspan="2"&gt;&lt;br /&gt;&lt;b&gt;a) Add two hard disk to virtual machine and restart the virtual machine&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;b) Log on to the OS to see the hard disk is added&lt;/b&gt;&lt;br /&gt;&lt;pre&gt;ls /dev/sd*&lt;/pre&gt;-- All the hard disk which show /dev/sd&lt;b&gt;[alphabet]&lt;/b&gt; are newly added hard disk.&lt;br /&gt;-- All the hard disk which shows /dev/sd&lt;b&gt;[albhabet][number]&lt;/b&gt; are the existing hard disk on the server.&lt;br /&gt;&lt;b&gt;c) Partition the hard disk using FDISK. The sequence of command to FDISK are&lt;/b&gt;&lt;br /&gt;&lt;pre&gt;"n", "p", "1", "Return(Enter Button on Keyboard)", "Return(Enter Button on Keyboard)","p" and "w"&lt;/pre&gt;&lt;br /&gt;&lt;b&gt;d) New partition get added to the list&lt;/b&gt;&lt;br /&gt;&lt;pre&gt;ls /dev/sd*&lt;/pre&gt;&lt;br /&gt;&lt;b&gt;e) Create the physical Volumne&lt;/b&gt;&lt;br /&gt;pvcreate /dev/sd&lt;b&gt;[alphabet][number]&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;where :&lt;br /&gt;alphabet = Character of new added disk&lt;br /&gt;Number = Number of the newly formated disk&lt;br /&gt;&lt;br /&gt;For Example, &lt;br /&gt;&lt;pre&gt;&lt;b&gt;pvcreate /dev/sdc1 &lt;/b&gt;&lt;/pre&gt;&lt;br /&gt;&lt;b&gt;f) Create the file system on the volumne&lt;/b&gt;&lt;br /&gt;mkfs -t ext3 -m 1 -v /dev/sd&lt;b&gt;[alphabet][number]&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;For example:- &lt;br /&gt;&lt;pre&gt;&lt;b&gt;mkfs -t ext3 -m 1 -v /dev/sdc1&lt;/b&gt;&lt;/pre&gt;&lt;br /&gt;&lt;b&gt;g) Check the new FS created&lt;/b&gt;&lt;br /&gt;tune2fs -l /dev/sd&lt;b&gt;[alphabet][number]&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;For example;- &lt;br /&gt;&lt;pre&gt;&lt;b&gt;tune2fs -l /dev/sdc1&lt;/b&gt;&lt;/pre&gt;&lt;br /&gt;&lt;b&gt;h) Create the mount directory&lt;/b&gt;&lt;br /&gt;&lt;pre&gt;mkdir /db2fs01&lt;/pre&gt;&lt;br /&gt;&lt;b&gt;i) Modify the /etc/fstab file to include following line&lt;/b&gt;&lt;br /&gt;&lt;pre&gt;&lt;b&gt;/dev/sdc1   /db2fs01   ext3   defaults  1  1&lt;/b&gt;&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;4&lt;/td&gt; &lt;td&gt;Check OS details&lt;/td&gt; &lt;td colspan="2"&gt;&lt;b&gt;a) OS Version&lt;/b&gt;&lt;br /&gt;&lt;pre&gt;oslevel -a&lt;/pre&gt;&lt;br /&gt;&lt;b&gt;b) Patch details &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;c) Kernal Level &lt;/b&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;5&lt;/td&gt; &lt;td&gt;Check the Network Details&lt;/td&gt; &lt;td colspan="2"&gt;&lt;br /&gt;a) Public IP Address&lt;br /&gt;b) Private IP Address&lt;br /&gt;c) Virtual IP Address&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;6&lt;/td&gt; &lt;td&gt;Check DB2 details&lt;/td&gt; &lt;td colspan="2"&gt;&lt;br /&gt;a) Check DB2 version&lt;br /&gt;&lt;pre&gt;db2level&lt;/pre&gt;&lt;br /&gt;b) Mount point for DATA&lt;br /&gt;&lt;br /&gt;c) Mount point for Logs&lt;br /&gt;&lt;br /&gt;d) Mount point for archive logs&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;div style="color: blue;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;B) Setting up non-Cluster HADR&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th align="center" bgcolor="#FFFF66"&gt;Item #&lt;/th&gt; &lt;th align="center" bgcolor="#FFFF66"&gt;Description&lt;/th&gt;&lt;th align="center" colspan="2" bgcolor="#FFFF66"&gt;Command&lt;/th&gt;   &lt;/tr&gt;&lt;tr&gt; &lt;th colspan="2" bgcolor="#8A87C7"&gt;System On which command will be executed =&amp;gt; &lt;/th&gt;&lt;th align="center" bgcolor=#8A87C7&gt;Primary&lt;/th&gt;&lt;th align="center" bgcolor=#8A87C7&gt;Standby&lt;/th&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;1&lt;/td&gt; &lt;td&gt;Public Network and hostname&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;pre&gt;Network device : eth0&lt;br /&gt;&lt;br /&gt;Hostname : Mumbai&lt;br /&gt;&lt;br /&gt;IP =&amp;gt; 192.168.5.22&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;pre&gt;Network device : eth0&lt;br /&gt;&lt;br /&gt;Hostname : London&lt;br /&gt;&lt;br /&gt;IP =&amp;gt; 192.168.5.33&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;2&lt;/td&gt; &lt;td&gt;Virtual IP&lt;/td&gt; &lt;td colspan="2"&gt;&lt;br /&gt;&lt;pre&gt;Hostname =&amp;gt; newyork&lt;br /&gt;Virtual IP =&amp;gt; 192.168.5.55&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;3&lt;/td&gt; &lt;td&gt;Add the public/Virtual IP details to &lt;b&gt;/etc/hosts&lt;/b&gt; file&lt;/td&gt; &lt;td&gt;&lt;pre&gt;192.168.5.22   mumbai&lt;br /&gt;&lt;br /&gt;192.168.5.33   london&lt;br /&gt;&lt;br /&gt;192.168.5.55   newyork&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;td&gt;&lt;pre&gt;192.168.5.22   mumbai&lt;br /&gt;&lt;br /&gt;192.168.5.33   london&lt;br /&gt;&lt;br /&gt;192.168.5.55   newyork&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;4&lt;/td&gt; &lt;td&gt;Check the connectivity between nodes&lt;/td&gt; &lt;td&gt;&lt;pre&gt;ping mumbai&lt;br /&gt;&lt;br /&gt;ping london&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;td&gt;&lt;pre&gt;ping mumbai&lt;br /&gt;&lt;br /&gt;ping london&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;5&lt;/td&gt; &lt;td&gt;Create DB2 Instance Owner and DB2 Fence Owner Group&lt;br /&gt;&lt;b&gt; GID and GROUP name must be same on both node&lt;/b&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;pre&gt;groupadd -g 1003 db2iadm1&lt;br /&gt;groupadd -g 102 db2fadm1&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;pre&gt;groupadd -g 1003 db2iadm1&lt;br /&gt;&lt;br /&gt;groupadd -g 102 db2fadm1&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;6&lt;/td&gt; &lt;td&gt;Create DB2 Instance Owner user and DB2 fence owner user&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;pre&gt;useradd -u 21000 -g 1003 -d /home/db2inst1 -m -c "DB2 Instance Owner user" db2inst1&lt;br /&gt;&lt;br /&gt;useradd -u 108 -g 102 -d /home/db2fenc1 -m -c "DB2 Fence Owner user" db2fenc1&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;pre&gt;useradd -u 21000 -g 1003 -d /home/db2inst1 -m -c "DB2 Instance Owner user" db2inst1&lt;br /&gt;&lt;br /&gt;useradd -u 108 -g 102 -d /home/db2fenc1 -m -c "DB2 Fence Owner user" db2fenc1&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;7&lt;/td&gt; &lt;td&gt;Check DB2 ports in &lt;b&gt;/etc/services&lt;/b&gt; files.Must be same on each of the nodes&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;b&gt;a)DB2 TCPIP Communication port&lt;/b&gt;&lt;br /&gt;6000&lt;br /&gt;&lt;br /&gt;&lt;b&gt;b) DB2 HADR port&lt;/b&gt;&lt;br /&gt;DB2_HADR_MUM=50011/tcp&lt;br /&gt;DB2_HADR_LON=50012/tcp&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;b&gt;a)DB2 TCPIP Communication port&lt;/b&gt;&lt;br /&gt;6000&lt;br /&gt;&lt;br /&gt;&lt;b&gt;b) DB2 HADR port&lt;/b&gt;&lt;br /&gt;DB2_HADR_MUM=50011/tcp&lt;br /&gt;DB2_HADR_LON=50012/tcp&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;8&lt;/td&gt; &lt;td&gt;Check &lt;b&gt;~/sqllib/db2nodes.cfg&lt;/b&gt; under DB2 instance owner user&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;pre&gt;0 mumbai 0&lt;/pre&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;pre&gt;0 london 0&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;9&lt;/td&gt; &lt;td&gt;Create directory&lt;br /&gt;a) Backup&lt;br /&gt;b) Archive log&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;pre&gt;chmod 777 /db2fs&lt;br /&gt;mkdir /db2fs/db2bkp&lt;br /&gt;mkdir /db2fs/db2arch&lt;br /&gt;mkdir /db2fs/db2log&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;pre&gt;chmod 777 /db2fs&lt;br /&gt;mkdir /db2fs/db2bkp&lt;br /&gt;mkdir /db2fs/db2arch&lt;br /&gt;mkdir /db2fs/db2log&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;10&lt;/td&gt; &lt;td&gt;Update DB2 parameters&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;pre&gt;&lt;b&gt;a) DB2 TCPIP communication parameters&lt;/b&gt;&lt;br /&gt;db2set DB2COMM=tcpip&lt;br /&gt;db2 "update dbm cfg using svcename 60000"&lt;br /&gt;db2stop force;db2start&lt;br /&gt;&lt;br /&gt;&lt;b&gt;b) Enable DB2 to use SSH password less communication&lt;/b&gt;&lt;br /&gt;db2set -i db2inst1 DB2RSHCMD=/usr/bin/ssh&lt;br /&gt;db2stop force;db2start&lt;br /&gt;&lt;br /&gt;&lt;b&gt;c) Update DB2 HADR database parameters &lt;b&gt;Note Parameter values are differenct on each node&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;update db cfg for sample using logarchmeth1 'DISK:/db2fs/db2arch'&lt;br /&gt;update database configuration for sample using LOGINDEXBUILD ON&lt;br /&gt;update db cfg for Sample using hadr_local_host    &lt;b&gt;mumbai&lt;/b&gt;&lt;br /&gt;update db cfg for Sample using hadr_remote_host   &lt;b&gt;london&lt;/b&gt;&lt;br /&gt;update db cfg for Sample using hadr_local_svc     &lt;b&gt;DB2_HADR_MUM&lt;/b&gt;&lt;br /&gt;update db cfg for Sample using hadr_remote_svc    &lt;b&gt;DB2_HADR_LON&lt;/b&gt;&lt;br /&gt;update db cfg for Sample using hadr_remote_inst   db2inst1&lt;br /&gt;update db cfg for Sample using hadr_timeout       120&lt;br /&gt;update db cfg for Sample using hadr_peer_window       120&lt;br /&gt;update db cfg for Sample using hadr_syncmode      nearsync&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;pre&gt;&lt;b&gt;a) DB2 TCPIP communication parameters&lt;/b&gt;&lt;br /&gt;db2set DB2COMM=tcpip&lt;br /&gt;db2 "update dbm cfg using svcename 60000"&lt;br /&gt;db2stop force;db2start&lt;br /&gt;&lt;br /&gt;&lt;b&gt;b) Enable DB2 to use SSH password less communication&lt;/b&gt;&lt;br /&gt;db2set -i db2inst1 DB2RSHCMD=/usr/bin/ssh&lt;br /&gt;db2stop force;db2start&lt;br /&gt;&lt;br /&gt;&lt;b&gt;c) Update DB2 HADR database parameters &lt;b&gt;Note Parameter values are differenct on each node. This values are set after RESTORING the database on STANDYBY&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;update db cfg for Sample using hadr_local_host    &lt;b&gt;london&lt;/b&gt;&lt;br /&gt;update db cfg for Sample using hadr_remote_host   &lt;b&gt;mumbai&lt;/b&gt;&lt;br /&gt;update db cfg for Sample using hadr_local_svc     &lt;b&gt;DB2_HADR_LON&lt;/b&gt;&lt;br /&gt;update db cfg for Sample using hadr_remote_svc    &lt;b&gt;DB2_HADR_MUM&lt;/b&gt;&lt;br /&gt;update db cfg for Sample using hadr_remote_inst   db2inst1&lt;br /&gt;update db cfg for Sample using hadr_timeout       120&lt;br /&gt;update db cfg for Sample using hadr_peer_window       120&lt;br /&gt;update db cfg for Sample using hadr_syncmode      nearsync&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;11&lt;/td&gt; &lt;td&gt;Backup the database&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;pre&gt;backup database sample online to /db2fs01/db2bkp&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;td&gt;No Operation&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;12&lt;/td&gt; &lt;td&gt;Copy the backup image to Standby machine&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;pre&gt;scp SAMPLE.0.db2inst1.NODE0000.CATN0000.20101021100242.001 db2inst1@hadrtest2:/home/db2inst1/bkp&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;td&gt;No Operation&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;13&lt;/td&gt; &lt;td&gt;Create new database on standby from the offline backup&lt;/td&gt; &lt;td&gt;No Operation&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;pre&gt;&lt;b&gt;restore database sample replace history file&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;This will set the database in rollforward pedning state as we created the database from online full backup of primary database after enabling primary database for archival logging. It will be in ROLLFORWARD PENDING STATE. No changes needed.&lt;br /&gt;&lt;b&gt;DO NOT TAKE THE DATABASE OUT OF ROLL FORWARD PENDING STATE &lt;/b&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;14&lt;/td&gt; &lt;td&gt;Start HADR on Standby&lt;/td&gt; &lt;td&gt;No Operation&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;pre&gt;start hadr on database sample as standby&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;15&lt;/td&gt; &lt;td&gt;Start HADR on Primary&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;pre&gt;start hadr on database sample as primary&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;td&gt;No Operation&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;16&lt;/td&gt; &lt;td&gt;Check the HADR Status (must be same on both nodes)&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;pre&gt;db2pd -hadr -db sample&lt;br /&gt;&lt;br /&gt;&lt;b&gt;HADR State = Peer&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;pre&gt;db2pd -hadr -db sample&lt;br /&gt;&lt;br /&gt;&lt;b&gt;HADR State = Peer&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;17&lt;/td&gt; &lt;td&gt;Check if HADR is working&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;pre&gt;1) Archive current log&lt;br /&gt;archive log for db sample&lt;br /&gt;&lt;br /&gt;2) Check the first log sequence&lt;br /&gt;get db cfg for sample | grep -i first&lt;br /&gt;&lt;br /&gt;3) Check if the archive log file is shifted to Standby. (May take some time)&lt;br /&gt;db2pd -hadr -db sample&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;td&gt;&lt;pre&gt;1) Archive current log&lt;br /&gt;archive log for db sample&lt;br /&gt;&lt;br /&gt;2) Check the first log sequence&lt;br /&gt;get db cfg for sample | grep -i first&lt;br /&gt;&lt;br /&gt;3) Check if the archive log file is shifted to Standby. (May take some time)&lt;br /&gt;db2pd -hadr -db sample&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt; &lt;/table&gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;C) Manual Starting/Stopping HADR Steps&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th align="center" bgcolor="#FFFF66"&gt;Item #&lt;/th&gt; &lt;th align="center" bgcolor="#FFFF66"&gt;Description&lt;/th&gt;&lt;th align="center" colspan="2" bgcolor="#FFFF66"&gt;Command&lt;/th&gt;   &lt;/tr&gt;&lt;tr&gt;&lt;td colspan="4"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt; &lt;th colspan="2" bgcolor="#8A87C7"&gt;Starting HADR steps&lt;/th&gt;&lt;th align="center" bgcolor="#8A87C7"&gt;Primary&lt;/th&gt;&lt;th align="center" bgcolor="#8A87C7"&gt;Standby&lt;/th&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;1&lt;/td&gt; &lt;td&gt;Start Instance on Primary/Standby&lt;/td&gt; &lt;td&gt;&lt;pre&gt;db2start&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;td&gt;&lt;pre&gt;db2start&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;2&lt;/td&gt; &lt;td&gt;Start HADR on Standby machine&lt;/td&gt; &lt;td&gt;No Operation&lt;/td&gt; &lt;td&gt;&lt;pre&gt;start hadr on database sample as standby&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;3&lt;/td&gt; &lt;td&gt;Start HADR on Primary Machine&lt;/td&gt; &lt;td&gt;&lt;pre&gt;start hadr on database sample as primary&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;td&gt;No Operation&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;4&lt;/td&gt; &lt;td&gt;Check if DB2 HADR is running&lt;/td&gt; &lt;td&gt;&lt;pre&gt;db2pd -hadr -db sample&lt;/pre&gt;&lt;/td&gt; &lt;td&gt;&lt;pre&gt;db2pd -hadr -db sample&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td colspan="4"&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;th colspan="2" bgcolor="#8A87C7"&gt;Stopping HADR steps&lt;/th&gt;&lt;th align="center" bgcolor="#8A87C7"&gt;Primary&lt;/th&gt;&lt;th align="center" bgcolor="#8A87C7"&gt;Standby&lt;/th&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;1&lt;/td&gt; &lt;td&gt;Stop HADR on database&lt;/td&gt; &lt;td&gt;&lt;pre&gt;stop hadr on database sample&lt;/pre&gt;&lt;/td&gt; &lt;td&gt;No Operation&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;2&lt;/td&gt; &lt;td&gt;Deactivate Database&lt;/td&gt; &lt;td&gt;&lt;pre&gt;deactivate database sample&lt;/pre&gt;&lt;/td&gt; &lt;td&gt;No Operation&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;3&lt;/td&gt; &lt;td&gt;Stop instance&lt;/td&gt; &lt;td&gt;&lt;pre&gt;db2stop force&lt;/pre&gt;&lt;/td&gt; &lt;td&gt;No Operation&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;4&lt;/td&gt; &lt;td&gt;Deactivate the standby database&lt;/td&gt; &lt;td&gt;No Operation &lt;/td&gt; &lt;td&gt;&lt;pre&gt;deactivate database sample&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;5&lt;/td&gt; &lt;td&gt;Stop HADR on database&lt;/td&gt; &lt;td&gt;No Operation&lt;/td&gt; &lt;td&gt;&lt;pre&gt;stop hadr on database sample&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;6&lt;/td&gt; &lt;td&gt;Stop Instance&lt;/td&gt; &lt;td&gt;No Operation&lt;/td&gt; &lt;td&gt;&lt;pre&gt;db2stop force&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt; &lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;D) Manul Failover/Failback Steps&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th align="center"bgcolor="#FFFF66"&gt;Item #&lt;/th&gt; &lt;th align="center" bgcolor="#FFFF66"&gt;Description&lt;/th&gt;&lt;th align="center" colspan="2" bgcolor="#FFFF66"&gt;Command&lt;/th&gt;   &lt;/tr&gt;&lt;tr&gt;&lt;td colspan="4"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt; &lt;th colspan="2" bgcolor="#8A87C7"&gt;Failover Operation&lt;/th&gt;&lt;th align="center" bgcolor="#8A87C7"&gt;Primary&lt;/th&gt;&lt;th align="center" bgcolor="#8A87C7"&gt;Standby&lt;/th&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;1&lt;/td&gt; &lt;td&gt;Identify the Standby node&lt;/td&gt; &lt;td&gt;&lt;pre&gt;db2pd -db sample -hadr&lt;/pre&gt;&lt;/td&gt; &lt;td&gt;&lt;pre&gt;db2pd -db sample -hadr&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;2&lt;/td&gt; &lt;td&gt;Execute takeover command on standby&lt;/td&gt; &lt;td&gt;No Operation&lt;/td&gt; &lt;td&gt;&lt;pre&gt;takeover hadr on database sample&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td colspan="4"&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;th colspan="2"&gt;Failback Operation&lt;/th&gt;&lt;th align="center"&gt;Primary&lt;/th&gt;&lt;th align="center"&gt;Standby&lt;/th&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;1&lt;/td&gt; &lt;td&gt;Identify the new Standby node&lt;/td&gt; &lt;td&gt;&lt;pre&gt;db2pd -db sample -hadr&lt;/pre&gt;&lt;/td&gt; &lt;td&gt;&lt;pre&gt;db2pd -db sample -hadr&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;2&lt;/td&gt; &lt;td&gt;Execute takeover command on old Primary which is now new Standby after failover&lt;/td&gt; &lt;td&gt;&lt;pre&gt;takeover hadr on database sample&lt;/pre&gt;&lt;/td&gt; &lt;td&gt;No Operation&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt; &lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: blue;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;E) Force Failover&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th align="center" bgcolor="#FFFF66"&gt;Item #&lt;/th&gt; &lt;th align="center" bgcolor="#FFFF66"&gt;Description&lt;/th&gt;&lt;th align="center" colspan="2" bgcolor="#FFFF66"&gt;Command&lt;/th&gt;   &lt;/tr&gt;&lt;tr&gt; &lt;th colspan="2" bgcolor="#8A87C7"&gt;Force Failover (Test Scenario) &lt;/th&gt;&lt;th align="center" bgcolor="#8A87C7"&gt;Primary&lt;/th&gt;&lt;th align="center" bgcolor="#8A87C7"&gt;Standby&lt;/th&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;1&lt;/td&gt; &lt;td&gt;Kill the DB2 instance procee to simulate Test Scenario&lt;/td&gt; &lt;td&gt;&lt;pre&gt;ps -eaf | grep -i db2sysc&lt;br /&gt;&lt;br /&gt;kill -9 &lt;pid&gt;&lt;br /&gt;&lt;br /&gt;where PID = Second Column&lt;br /&gt;&lt;/pid&gt;&lt;/pre&gt;&lt;/td&gt; &lt;td&gt;No Operation&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;2&lt;/td&gt; &lt;td&gt;Check the status of the standby&lt;/td&gt; &lt;td&gt;No Operation&lt;/td&gt; &lt;td&gt;&lt;pre&gt;db2pd -hadr -db sample&lt;br /&gt;&lt;br /&gt;&lt;b&gt;HADR State will be in Disconnected state&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;3&lt;/td&gt; &lt;td&gt;Execute the force failover on Standby&lt;/td&gt; &lt;td&gt;No Operation&lt;/td&gt; &lt;td&gt;&lt;pre&gt;takeover hadr on database sample by force&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;4&lt;/td&gt; &lt;td&gt;Bring the primary Server online&lt;/td&gt; &lt;td&gt;&lt;pre&gt;db2start&lt;br /&gt;&lt;br /&gt;start hadr on database sample as standby&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;td&gt;No Operation&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;5&lt;/td&gt; &lt;td&gt;Failback to Primary machine&lt;/td&gt; &lt;td&gt;&lt;pre&gt;takeover hadr on database sample&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;td&gt;No Operation&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;6&lt;/td&gt; &lt;td&gt;Check HADR status&lt;/td&gt; &lt;td&gt;&lt;pre&gt;db2pd -hadr -db sample&lt;/pre&gt;&lt;/td&gt; &lt;td&gt;&lt;pre&gt;db2pd -hadr -db sample&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt; &lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2277672312650284960-5126046071371752264?l=gilroygonsalves.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2277672312650284960&amp;postID=5126046071371752264' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/5126046071371752264'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/5126046071371752264'/><link rel='alternate' type='text/html' href='http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-06.html' title='DB2 9.7 HADR with TSA - Part 06 - Configuring DB2 9.7 HADR between Primary and Standby'/><author><name>Gilroy N. Gonsalves</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://4.bp.blogspot.com/_1y3JEK7a9rA/SwVA9dHzK_I/AAAAAAAABDA/9ilTxBQTEB0/S220/DSC00140.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2277672312650284960.post-7910315363284148050</id><published>2011-03-13T16:03:00.000Z</published><updated>2011-03-18T00:13:10.023Z</updated><title type='text'>DB2 9.7 HADR with TSA - Part 05 - Creating Instance and Database</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;In this post i will give steps to create DB2 Instance and DB2 database.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2010/11/db2-97-hadr-with-tsa-part-00.html"&gt;DB2 9.7 HADR with TSA Part 00 - Introduction&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2010/11/db2-97-hadr-with-tsa-part-01-installing.html"&gt;DB2 9.7 HADR with TSA Part 1 : Installing and configuring VMWare environment&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-02-installing.html"&gt;DB2 9.7 HADR with TSA &lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;2 : Installing IBM tools for querying and monitoring purpose&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-03-installing.html"&gt;DB2 9.7 HADR with TSA &lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;3 : Installing IBM DB2 9.7 database&lt;/span&gt;&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-04-installing.html"&gt;DB2 9.7 HADR with TSA Part 4: Installing DB2 9.7 Fixpack&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: blue;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;A) Steps to Create DB2 Instance &lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;table border="1" bordercolor="GREEN" cellpadding="2" cellspacing="2"&gt;&lt;tbody&gt;&lt;tr&gt;  &lt;th bgcolor="#FFFF66"&gt;Item#&lt;/th&gt; &lt;th bgcolor="#FFFF66"&gt;Description&lt;/th&gt; &lt;th bgcolor="#FFFF66"&gt;Command&lt;/th&gt; &lt;/tr&gt;&lt;tr&gt;   &lt;td&gt;1&lt;/td&gt;   &lt;td &gt;Create new DB2 OS group&lt;/td&gt;  &lt;td&gt;&lt;br /&gt;1) Instance Owner Group&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;groupadd -g 110 db2iadm1&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;2) Fence User Group&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;groupadd -g 112 db2grp1&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td&gt;2&lt;/td&gt;   &lt;td&gt;Create DB2 instance ownere user&lt;/td&gt;  &lt;td&gt;&lt;br /&gt;1) DB2 Instance Owner user&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;useradd -u 550 -g 110 -d /home/db2inst1 -m -c "DB2 Instance Owner"  db2inst1&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;2) Set the instance owner password&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;passwd db2inst1&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td&gt;3&lt;/td&gt;   &lt;td&gt;Create new DB2 fence user&lt;/td&gt;  &lt;td&gt;&lt;br /&gt;1) DB2 Fence user&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;useradd -u 551 -g 112 -d /home/db2fenc1 -m -c "DB2 Fence User"  db2fenc1&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;2) Set Fence user password&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;passwd db2fenc1&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td&gt;4&lt;/td&gt;   &lt;td&gt;Create DB2 Instance&lt;/td&gt;  &lt;td&gt;&lt;br /&gt;1) Login as "root" user&lt;br /&gt;&lt;br /&gt;2) Change directory to db2 install path&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;cd /opt/ibm/db2/V9.7/instance&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;3) Create DB2 instance&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;./db2icrt -u db2fenc1 db2inst1&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td&gt;5&lt;/td&gt;   &lt;td&gt;Start the DB2 instance&lt;/td&gt;  &lt;td&gt;&lt;br /&gt;1) Login as DB2 Instance Owner&lt;br /&gt;&lt;br /&gt;2) Check the $DB2INSTANCE environment to reflect the instance name&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;echo $DB2INSTANCE&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;3) Start the DB2 database manager (DBM)&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;db2start&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;4) Check if DB2 database manager is started&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;db2pd -edus&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td&gt;6&lt;/td&gt;   &lt;td&gt;&lt;br /&gt;Check DB2 Database Manager Parameters &lt;/td&gt;  &lt;td&gt;&lt;br /&gt;&lt;b style="color: magenta;"&gt;db2 get dbm cfg&lt;/b&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: blue;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;B) Steps to Create DB2 database &lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;table border="1" bordercolor="GREEN" cellpadding="5" cellspacing="5"&gt;&lt;tbody&gt;&lt;tr&gt; &lt;th bgcolor="#FFFF66"&gt;Item#&lt;/th&gt; &lt;th bgcolor="#FFFF66"&gt;Description&lt;/th&gt; &lt;th bgcolor="#FFFF66"&gt;Command&lt;/th&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td width="5%"&gt;1&lt;/td&gt;  &lt;td width="20%"&gt;Create DB2 Database&lt;/td&gt;   &lt;td width="20%"&gt;&lt;br /&gt;1) Login as DB2 instance owner&lt;br /&gt;&lt;br /&gt;2) Create SAMPLE database&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;db2sampl&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;3) Activate the SAMPLE database&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;db2 activate db sample&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;4) Check if the database is activate successfully&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;db2pd -edus&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;5) Check the database parameters&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;db2 get db cfg for sample &lt;/b&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: blue;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;C) Connecting to remote database using JDBC&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;table border="1" bordercolor="GREEN" cellpadding="2" cellspacing="2"&gt;&lt;tbody&gt;&lt;tr&gt;  &lt;th bgcolor="#FFFF66"&gt;Item#&lt;/th&gt; &lt;th bgcolor="#FFFF66"&gt;Description&lt;/th&gt; &lt;th bgcolor="#FFFF66"&gt;Command&lt;/th&gt; &lt;/tr&gt;&lt;tr&gt;   &lt;td width="5%"&gt;1&lt;/td&gt;   &lt;td width="20%"&gt;Check the port number associate to instance&lt;/td&gt;  &lt;td width="20%"&gt;&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;more /etc/services | grep -i db2inst1&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td width="5%"&gt;2&lt;/td&gt;   &lt;td width="20%"&gt;Check if the required port is set in SVCENAME DBM parameter&lt;/td&gt;   &lt;td width="20%"&gt;&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;get dbm cfg | grep i svcename&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td width="5%"&gt;3&lt;/td&gt;   &lt;td width="20%"&gt;Check if the DB2COMM variable is set&lt;/td&gt;  &lt;td width="20%"&gt;&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;db2set -all&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td width="5%"&gt;4&lt;/td&gt;   &lt;td width="20%"&gt;Set DBM and registry variable variable and restart the instance&lt;/td&gt;   &lt;td width="20%"&gt;&lt;br /&gt;1)Set DBM parameter&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;update dbm cfg using svcename 60008&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;2) Set registry variable&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;db2set DB2COMM=tcpip&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;3) Restart the DB2 instance&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;db2stop force;db2start&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td width="5%"&gt;5&lt;/td&gt;   &lt;td width="20%"&gt;JDBC Connection Details&lt;/td&gt;   &lt;td width="20%"&gt;&lt;b&gt; &lt;span style="color: magenta;"&gt;1) Hostname&lt;/span&gt;&lt;br style="color: magenta;" /&gt;&lt;span style="color: magenta;"&gt; 2) Database Name&lt;/span&gt;&lt;br style="color: magenta;" /&gt;&lt;span style="color: magenta;"&gt; 3) Instance Port number&lt;/span&gt;&lt;br style="color: magenta;" /&gt;&lt;span style="color: magenta;"&gt; 4) Username&lt;/span&gt;&lt;br style="color: magenta;" /&gt;&lt;span style="color: magenta;"&gt; 5) Password&lt;/span&gt;&lt;br /&gt;&lt;/b&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;div style="color: blue;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: blue;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;D) Dropping the instance and database&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;table border="1" bordercolor="GREEN" cellpadding="2" cellspacing="2"&gt;&lt;tbody&gt;&lt;tr&gt;  &lt;th bgcolor="#FFFF66"&gt;Item#&lt;/th&gt; &lt;th bgcolor="#FFFF66"&gt;Description&lt;/th&gt; &lt;th bgcolor="#FFFF66"&gt;Command&lt;/th&gt; &lt;/tr&gt;&lt;tr&gt;   &lt;td width="5%"&gt;1&lt;/td&gt;   &lt;td width="20%"&gt;Drop the database&lt;/td&gt;   &lt;td width="20%"&gt;&lt;br /&gt;1) Login as instance owner user under which DB2 database is created&lt;br /&gt;&lt;br /&gt;2) Check if it is the correct instance&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;db2 get instance&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;3) Check the database that needs to be dropped&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;db2 list db directory&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;4) Deactivate the database&lt;br /&gt;&lt;b&gt; &lt;span style="color: magenta;"&gt;a) db2 force application all&lt;/span&gt;&lt;br style="color: magenta;" /&gt;&lt;span style="color: magenta;"&gt; b) db2 terminate&lt;/span&gt;&lt;br style="color: magenta;" /&gt;&lt;span style="color: magenta;"&gt; c) db2 deactivate db sample&lt;/span&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;5) Drop the appropriate database&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;db2 DROP DATABASE sample&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td width="5%"&gt;2&lt;/td&gt;   &lt;td width="20%"&gt;Drop the Instance&lt;/td&gt;   &lt;td width="20%"&gt;&lt;br /&gt;1) Login as instance owner&lt;br /&gt;&lt;br /&gt;2) Stop the instance&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;db2stop force&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;3) Check if instance is stopped&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;db2pd -edus&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;4) Login as "root" user&lt;br /&gt;&lt;br /&gt;5) Change to DB2 Install directory&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;/opt/ibm/db2/V9.7/instance&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;6) Drop the Instance&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;./db2idrop db2inst1&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td width="5%"&gt;3&lt;/td&gt;   &lt;td width="20%"&gt;Delete the instance user, fence user and DB user&lt;/td&gt;   &lt;td width="20%"&gt;&lt;br /&gt;1) Delete the instance owner user&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;userdel -f db2inst1&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;2) Delete the fence user&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;userdel -f db2inst1&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2277672312650284960-7910315363284148050?l=gilroygonsalves.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2277672312650284960&amp;postID=7910315363284148050' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/7910315363284148050'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/7910315363284148050'/><link rel='alternate' type='text/html' href='http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-05-creating.html' title='DB2 9.7 HADR with TSA - Part 05 - Creating Instance and Database'/><author><name>Gilroy N. Gonsalves</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://4.bp.blogspot.com/_1y3JEK7a9rA/SwVA9dHzK_I/AAAAAAAABDA/9ilTxBQTEB0/S220/DSC00140.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2277672312650284960.post-7422794606859001756</id><published>2011-03-13T14:37:00.000Z</published><updated>2011-03-17T11:10:54.074Z</updated><title type='text'>DB2 9.7 HADR with TSA - Part 04 - Installing DB2 9.7 Fix-pack</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;In this post i will give steps to upgrade DB2 9.7 GA to DB2 9.7 Fixpack 3a.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2010/11/db2-97-hadr-with-tsa-part-00.html"&gt;DB2 9.7 HADR with TSA Part 00 - Introduction&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2010/11/db2-97-hadr-with-tsa-part-01-installing.html"&gt;DB2 9.7 HADR with TSA Part 1 : Installing and configuring VMWare environment&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-02-installing.html"&gt;DB2 9.7 HADR with TSA &lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;2 : Installing IBM tools for querying and monitoring purpose&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-03-installing.html"&gt;DB2 9.7 HADR with TSA &lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;3 : Installing IBM DB2 9.7 database&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: blue;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;A) Introduction&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;DB2 fixpack are of two type. They are&lt;br /&gt;&lt;b&gt;&lt;u style="color: #38761d;"&gt;1) DB2 Universal Fixpack&amp;nbsp; &lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;In this, you need to have the GA of the product installed on the machine. In this setup, it include all the APAR until this fixpack level. It does not include the base code of the product. This is ideal in the PROD environment.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b style="color: #38761d;"&gt;2) DB2 Server Fixpack&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;In this, the fixpack include the base code + APAR until this fixpack level. This is just one single installation that include the Fixpack at the desired level. This is ideal for new installation.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;b style="color: blue;"&gt;B) Download Details&lt;/b&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;table border="1" bordercolor="GREEN" cellpadding="2" cellspacing="2"&gt;&lt;tbody&gt;&lt;tr&gt; &lt;th bgcolor="#ffff66"&gt;Item#&lt;/th&gt; &lt;th bgcolor="#ffff66"&gt;Description&lt;/th&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td width="20%"&gt;Download Source&lt;/td&gt; &lt;td&gt;&lt;a href="http://www-01.ibm.com/support/docview.wss?uid=swg27007053"&gt;http://www-01.ibm.com/support/docview.wss?uid=swg27007053&lt;/a&gt;&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: blue;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;C) Step to install fixpack&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;table border="1" bordercolor="GREEN" cellpadding="2" cellspacing="2"&gt;&lt;tbody&gt;&lt;tr&gt;  &lt;th bgcolor="#ffff66"&gt;Item#&lt;/th&gt;  &lt;th bgcolor="#ffff66"&gt;Description&lt;/th&gt;  &lt;th bgcolor="#ffff66"&gt;Command&lt;/th&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td width="5%"&gt;1&lt;/td&gt;  &lt;td width="20%"&gt;Downlaod the DB2 fixpack&lt;/td&gt; &lt;td width="20%"&gt;NA &lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td width="5%"&gt;2&lt;/td&gt;  &lt;td width="20%"&gt;Stop DAS instance&lt;/td&gt; &lt;td width="20%"&gt;db2admin stop &lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td width="5%"&gt;3&lt;/td&gt;  &lt;td width="20%"&gt;Stop all DB2 instance&lt;/td&gt; &lt;td width="20%"&gt;db2stop force &lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td width="5%"&gt;4&lt;/td&gt;  &lt;td width="20%"&gt;Get the current DB2 9.7 product install path&lt;/td&gt; &lt;td width="20%"&gt;db2ls &lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;   &lt;td width="5%"&gt;5 (a)&lt;/td&gt;   &lt;td width="20%"&gt;Execute the install Fixpack script to upgrade the already installed DB2 binary files&lt;/td&gt; &lt;td width="20%"&gt;./installFixpack -b &lt;b&gt;(DB2 product install path taken from db2ls command)&lt;/b&gt; &lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;  &lt;td width="5%"&gt;==OR== 5 (b)&lt;/td&gt;  &lt;td width="20%"&gt;Execute the install Fixpack script to install DB2 server fixpack to different location&lt;/td&gt; &lt;td width="20%"&gt;./installFixpack -b &lt;b&gt;(New location for DB2 installation)&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td width="5%"&gt;6&lt;/td&gt;  &lt;td width="20%"&gt;Check the DB2 installed location&lt;/td&gt; &lt;td width="20%"&gt;db2ls&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td width="5%"&gt;7&lt;/td&gt;  &lt;td width="20%"&gt;Validate the installation&lt;/td&gt; &lt;td width="20%"&gt;db2val&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt; &lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: blue;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;C) Steps to upgrade the instance to new Fixpack level&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;table border="1" bordercolor="GREEN" cellpadding="2" cellspacing="2"&gt;&lt;tbody&gt;&lt;tr&gt;  &lt;th bgcolor="#ffff66"&gt;Item#&lt;/th&gt;  &lt;th bgcolor="#ffff66"&gt;Description&lt;/th&gt;  &lt;th bgcolor="#ffff66"&gt;Command&lt;/th&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td width="5%"&gt;1&lt;/td&gt;  &lt;td width="20%"&gt;Check the DB2 installed location&lt;/td&gt; &lt;td width="20%"&gt;db2ls &lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td width="5%"&gt;2&lt;/td&gt;  &lt;td width="20%"&gt;Get the instance names&lt;/td&gt; &lt;td width="20%"&gt;db2ilist&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td width="5%"&gt;3&lt;/td&gt;  &lt;td width="20%"&gt;Get the db2fence user name&lt;/td&gt; &lt;td width="20%"&gt;cat sqllib/ctrl/.fencedID&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td width="5%"&gt;4&lt;/td&gt;  &lt;td width="20%"&gt;Upgrade the instance&lt;/td&gt;  &lt;td width="20%"&gt;&lt;br /&gt;&lt;br /&gt;1) Login as root&lt;br /&gt;&lt;br /&gt;2) cd &lt;b&gt;(New DB2 install location taken from output of db2ls command)&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;3) cd (db2_install_path)/instance&lt;br /&gt;&lt;br /&gt;4) &lt;b&gt;./db2iupdt -u (fence_user_name) (Instance_name)&lt;/b&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td width="5%"&gt;5&lt;/td&gt;   &lt;td width="20%"&gt;Upgrade DAS instance(DAS is Deprecated in Db2 9.7)&lt;/td&gt;  &lt;td width="20%"&gt;&lt;br /&gt;1) Login as root&lt;br /&gt;&lt;br /&gt;2) cd (new_db2_install_path)/instance&lt;br /&gt;&lt;br /&gt;3) &lt;b&gt;./dasupdt&lt;/b&gt;&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt; &lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2277672312650284960-7422794606859001756?l=gilroygonsalves.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2277672312650284960&amp;postID=7422794606859001756' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/7422794606859001756'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/7422794606859001756'/><link rel='alternate' type='text/html' href='http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-04-installing.html' title='DB2 9.7 HADR with TSA - Part 04 - Installing DB2 9.7 Fix-pack'/><author><name>Gilroy N. Gonsalves</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://4.bp.blogspot.com/_1y3JEK7a9rA/SwVA9dHzK_I/AAAAAAAABDA/9ilTxBQTEB0/S220/DSC00140.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2277672312650284960.post-5736114927655847539</id><published>2011-03-12T18:13:00.000Z</published><updated>2011-04-10T22:40:14.696+01:00</updated><title type='text'>DB2 9.7 HADR with TSA - Part 03 - Installing IBM DB2 9.7 database</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;In this blog i will provide links to the website contributed by the DB2 community which will demostrate the DB2 9.7 installation.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;a href="http://gilroygonsalves.blogspot.com/2010/11/db2-97-hadr-with-tsa-part-00.html"&gt;DB2 9.7 HADR with TSA Part 00 - Introduction&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2010/11/db2-97-hadr-with-tsa-part-01-installing.html"&gt;DB2 9.7 HADR with TSA &lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;Part 1 - Installing and configuring VMWare environment&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-02-installing.html"&gt;DB2 9.7 HADR with TSA &lt;span class="Apple-style-span"&gt;Part&lt;span class="Apple-style-span"&gt;&amp;nbsp;&lt;/span&gt;2 - Installing IBM tools for querying and monitoring purpose&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;A) Links to website demostrating DB2 installation.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.channeldb2.com/profiles/blogs/guide-on-installation-of-db2" target="_blank"&gt;1.a) DB2 9.7.2 Installation on Windows Steps&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="https://www-304.ibm.com/support/docview.wss?mynp=OCSSEPGG&amp;amp;mync=R&amp;amp;uid=swg27021333&amp;amp;myns=swgimgmt"&gt;1.b) &lt;span style="font-size: small;"&gt;Installation methods for DB2 LUW V9.1, V9.5, and V9.7&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.channeldb2.com/video/video/show?id=807741:Video:4442" target="_blank"&gt;2) DB2 Installation and different DB2 Edition&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.channeldb2.com/video/whats-new-since-v97-ga" target="_blank"&gt;3) What new in since DB2 9.7 GA&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Some helpful websites for DB2 begineers&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.channeldb2.com/video/807741:Video:4482" target="_blank"&gt;0) DB2 Architecture &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;1) The DB2 Environment - &lt;a href="http://www.channeldb2.com/video/807741:Video:4029" target="_blank"&gt;Part 01&lt;/a&gt;&amp;nbsp;&amp;nbsp; &amp;amp;&amp;nbsp; &lt;a href="http://www.channeldb2.com/video/807741:Video:4042" target="_blank"&gt;Part 02&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2) Tools and Scripting - &lt;a href="http://www.channeldb2.com/video/807741:Video:4202" target="_blank"&gt;Part 01&lt;/a&gt;&amp;nbsp;&amp;nbsp; &amp;amp;&amp;nbsp; &lt;a href="http://www.channeldb2.com/video/807741:Video:4182" target="_blank"&gt;Part 02&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;3) Client Connectivity  - &lt;a href="http://www.channeldb2.com/video/807741:Video:4222" target="_blank"&gt;Part 01&lt;/a&gt;&amp;nbsp;&amp;nbsp; &amp;amp;&amp;nbsp; &lt;a href="http://gilroygonsalves.blogspot.com/2010/06/db2-client-server-connectivity-and.html"&gt;Part 02&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.channeldb2.com/video/807741:Video:4242" target="_blank"&gt;4) Working with database objects&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.channeldb2.com/video/807741:Video:4262" target="_blank"&gt;5) Data Movement&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.channeldb2.com/video/807741:Video:4267" target="_blank"&gt;6) Security&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.channeldb2.com/video/807741:Video:4282" target="_blank"&gt;7) Backup and recovery&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.channeldb2.com/video/807741:Video:4302" target="_blank"&gt;8) Maintenance&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;9) Concurrency and Locking  -&lt;a href="http://www.channeldb2.com/video/807741:Video:4322" target="_blank"&gt; Part 01&lt;/a&gt;&amp;nbsp;&amp;nbsp; &amp;amp;&amp;nbsp; &lt;a href="http://gilroygonsalves.blogspot.com/2010/05/db2-v95-locking.html"&gt;Part 02&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.channeldb2.com/video/807741:Video:4343" target="_blank"&gt;10) SQL PL Stored Procedures&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.channeldb2.com/video/807741:Video:4362" target="_blank"&gt;11) User defined functions&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.channeldb2.com/video/807741:Video:4367" target="_blank"&gt;12) Triggers&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.channeldb2.com/video/807741:Video:4462" target="_blank"&gt;13) Troubleshooting &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2277672312650284960-5736114927655847539?l=gilroygonsalves.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2277672312650284960&amp;postID=5736114927655847539' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/5736114927655847539'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/5736114927655847539'/><link rel='alternate' type='text/html' href='http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-03-installing.html' title='DB2 9.7 HADR with TSA - Part 03 - Installing IBM DB2 9.7 database'/><author><name>Gilroy N. Gonsalves</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://4.bp.blogspot.com/_1y3JEK7a9rA/SwVA9dHzK_I/AAAAAAAABDA/9ilTxBQTEB0/S220/DSC00140.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2277672312650284960.post-461540742469438526</id><published>2011-03-12T17:37:00.000Z</published><updated>2011-03-12T21:13:18.402Z</updated><title type='text'>DB2 9.7 HADR with TSA - Part 02 - Installing IBM tools for querying and monitoring purpose</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;IBM provide excellent tools to work with DB2. Starting from DB2 9.7 DB2 control Center is deprecated and will be removed in future versions of DB2. The replacement tool for DB2 Control Center is IBM Data Studio.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2010/11/db2-97-hadr-with-tsa-part-00.html"&gt;&lt;span style="font-size: small;"&gt;DB2 9.7 HADR with TSA - Part00&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2010/11/db2-97-hadr-with-tsa-part-01-installing.html"&gt;&lt;span style="font-size: small;"&gt;DB2 9.7 HADR with TSA - Part 01 &lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span"&gt;Installing IBM tools for querying and monitoring purpose&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: blue;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;A) Introduction&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;IBM Data Studio is the replacement tool for DB2 Control Center. It provide most of the feature that were part of DB2 CC. It include additional functionality of PL/SQL development, Java programming, etc. other important extension. It is eclipse based and its shell is shared with other IBM Optim tools such as Optim Database Administrator.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: blue;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;B) Download Details&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: blue;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;table border="1" cellpadding="5" cellspacing="5"&gt;&lt;tbody&gt;&lt;tr&gt; &lt;th&gt;Item#&lt;/th&gt; &lt;th&gt;Description&lt;/th&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;Download Source&lt;/td&gt; &lt;td&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=2277672312650284960&amp;amp;postID=461540742469438526"&gt;&lt;/a&gt;&lt;a href="https://www-304.ibm.com/support/docview.wss?uid=swg24025984"&gt;https://www-304.ibm.com/support/docview.wss?uid=swg24025984&lt;/a&gt;&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;C) Installation&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #38761d;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;C.1) Data Studio Installation&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh4.googleusercontent.com/-8oHOLEt6cIs/TXuoDHm0ZvI/AAAAAAAAB20/A7ZOkChJ8jM/s1600/01.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="547" src="https://lh4.googleusercontent.com/-8oHOLEt6cIs/TXuoDHm0ZvI/AAAAAAAAB20/A7ZOkChJ8jM/s640/01.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh6.googleusercontent.com/-0gOpryVXLlU/TXuoDRF18CI/AAAAAAAAB24/BwTKNvU-F_M/s1600/02.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="451" src="https://lh6.googleusercontent.com/-0gOpryVXLlU/TXuoDRF18CI/AAAAAAAAB24/BwTKNvU-F_M/s640/02.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh6.googleusercontent.com/-vKhoqnL7Yto/TXuoD7rbAjI/AAAAAAAAB28/Ebm3ah-8nbI/s1600/03.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="480" src="https://lh6.googleusercontent.com/-vKhoqnL7Yto/TXuoD7rbAjI/AAAAAAAAB28/Ebm3ah-8nbI/s640/03.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh3.googleusercontent.com/-ZzKK-3IXEwc/TXurIUbqhII/AAAAAAAAB30/y9Rw9Ib8s6c/s1600/00.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="120" src="https://lh3.googleusercontent.com/-ZzKK-3IXEwc/TXurIUbqhII/AAAAAAAAB30/y9Rw9Ib8s6c/s320/00.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh4.googleusercontent.com/-M0iuuQXzmJA/TXuoEz2J-0I/AAAAAAAAB3A/zRJM5Wfe_Yk/s1600/04.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="480" src="https://lh4.googleusercontent.com/-M0iuuQXzmJA/TXuoEz2J-0I/AAAAAAAAB3A/zRJM5Wfe_Yk/s640/04.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh5.googleusercontent.com/-kFNJbypP3bg/TXuoFROcxYI/AAAAAAAAB3E/YRtM4sb_UM4/s1600/05.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="480" src="https://lh5.googleusercontent.com/-kFNJbypP3bg/TXuoFROcxYI/AAAAAAAAB3E/YRtM4sb_UM4/s640/05.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh6.googleusercontent.com/-RRRXnrlYRw4/TXuoFyFndWI/AAAAAAAAB3I/DCBNkxMry1M/s1600/06.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="480" src="https://lh6.googleusercontent.com/-RRRXnrlYRw4/TXuoFyFndWI/AAAAAAAAB3I/DCBNkxMry1M/s640/06.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh6.googleusercontent.com/-bgnWrXyMigo/TXuoGR6125I/AAAAAAAAB3M/BeQ6_CHT1iI/s1600/07.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="480" src="https://lh6.googleusercontent.com/-bgnWrXyMigo/TXuoGR6125I/AAAAAAAAB3M/BeQ6_CHT1iI/s640/07.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh4.googleusercontent.com/-xcmCuUgSGfM/TXuoG-ZdbcI/AAAAAAAAB3Q/SOIA5Eyo85E/s1600/08.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="480" src="https://lh4.googleusercontent.com/-xcmCuUgSGfM/TXuoG-ZdbcI/AAAAAAAAB3Q/SOIA5Eyo85E/s640/08.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh4.googleusercontent.com/-xcmCuUgSGfM/TXuoG-ZdbcI/AAAAAAAAB3Q/SOIA5Eyo85E/s1600/08.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="480" src="https://lh4.googleusercontent.com/-xcmCuUgSGfM/TXuoG-ZdbcI/AAAAAAAAB3Q/SOIA5Eyo85E/s640/08.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh4.googleusercontent.com/-pY_oKzTYzRE/TXuoHLBkKrI/AAAAAAAAB3U/aQg7p9hCzIk/s1600/09.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="480" src="https://lh4.googleusercontent.com/-pY_oKzTYzRE/TXuoHLBkKrI/AAAAAAAAB3U/aQg7p9hCzIk/s640/09.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh4.googleusercontent.com/-GpFvdzrYMBo/TXuoH88NeAI/AAAAAAAAB3Y/EZ397BMEBNM/s1600/10.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="480" src="https://lh4.googleusercontent.com/-GpFvdzrYMBo/TXuoH88NeAI/AAAAAAAAB3Y/EZ397BMEBNM/s640/10.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh4.googleusercontent.com/-ieVuSZtM4zE/TXuoIRnDmoI/AAAAAAAAB3c/mENDxyuFP1w/s1600/11.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="480" src="https://lh4.googleusercontent.com/-ieVuSZtM4zE/TXuoIRnDmoI/AAAAAAAAB3c/mENDxyuFP1w/s640/11.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh4.googleusercontent.com/-P64h-wcpW8g/TXuoIzRZ3pI/AAAAAAAAB3g/kIFSarex9MA/s1600/12.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="480" src="https://lh4.googleusercontent.com/-P64h-wcpW8g/TXuoIzRZ3pI/AAAAAAAAB3g/kIFSarex9MA/s640/12.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh4.googleusercontent.com/-ozHeppb-kFk/TXuoJKREUSI/AAAAAAAAB3k/aaEb7lF1rrE/s1600/13.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="480" src="https://lh4.googleusercontent.com/-ozHeppb-kFk/TXuoJKREUSI/AAAAAAAAB3k/aaEb7lF1rrE/s640/13.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh4.googleusercontent.com/-9gDHADaDT0E/TXuoJuX6U4I/AAAAAAAAB3o/rag9JlX6Ubw/s1600/14.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="548" src="https://lh4.googleusercontent.com/-9gDHADaDT0E/TXuoJuX6U4I/AAAAAAAAB3o/rag9JlX6Ubw/s640/14.jpg" width="640" /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="color: #38761d; font-size: large;"&gt;&lt;b&gt;C.2)&amp;nbsp; Data Studio Health Monitor&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt; line-height: 115%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh5.googleusercontent.com/-XyxoTSrssNo/TXusbalsEEI/AAAAAAAAB34/ei05oLSkreY/s1600/01.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="183" src="https://lh5.googleusercontent.com/-XyxoTSrssNo/TXusbalsEEI/AAAAAAAAB34/ei05oLSkreY/s400/01.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style="font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt; line-height: 115%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh6.googleusercontent.com/-tdGIIJXIKX4/TXuscBd2PGI/AAAAAAAAB38/e7ft1xlqQ70/s1600/02.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="504" src="https://lh6.googleusercontent.com/-tdGIIJXIKX4/TXuscBd2PGI/AAAAAAAAB38/e7ft1xlqQ70/s640/02.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh5.googleusercontent.com/-A0M3cw6lk9k/TXuscUXYz_I/AAAAAAAAB4A/6-vNDsPo2kw/s1600/03.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="504" src="https://lh5.googleusercontent.com/-A0M3cw6lk9k/TXuscUXYz_I/AAAAAAAAB4A/6-vNDsPo2kw/s640/03.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh6.googleusercontent.com/-qwj4PsTwFD4/TXusc1BTJvI/AAAAAAAAB4E/zCqk6elpx1U/s1600/04.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="458" src="https://lh6.googleusercontent.com/-qwj4PsTwFD4/TXusc1BTJvI/AAAAAAAAB4E/zCqk6elpx1U/s640/04.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh4.googleusercontent.com/-QCkYvz6RFw4/TXusdKhUSpI/AAAAAAAAB4I/NN5aT8vXnPI/s1600/05.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="458" src="https://lh4.googleusercontent.com/-QCkYvz6RFw4/TXusdKhUSpI/AAAAAAAAB4I/NN5aT8vXnPI/s640/05.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh5.googleusercontent.com/-A4YpLcaxCSY/TXusdqTft_I/AAAAAAAAB4M/VX4qqV-pDKc/s1600/06.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="458" src="https://lh5.googleusercontent.com/-A4YpLcaxCSY/TXusdqTft_I/AAAAAAAAB4M/VX4qqV-pDKc/s640/06.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh5.googleusercontent.com/-XBZB8_h37No/TXusecksVzI/AAAAAAAAB4Q/agO-4P6EdZA/s1600/07.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="458" src="https://lh5.googleusercontent.com/-XBZB8_h37No/TXusecksVzI/AAAAAAAAB4Q/agO-4P6EdZA/s640/07.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh5.googleusercontent.com/-mTPUQfZHidM/TXuserIzoGI/AAAAAAAAB4U/WYCuAsH3J3Y/s1600/08.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="458" src="https://lh5.googleusercontent.com/-mTPUQfZHidM/TXuserIzoGI/AAAAAAAAB4U/WYCuAsH3J3Y/s640/08.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh4.googleusercontent.com/-eTdKe9ybw6A/TXusfFOsMeI/AAAAAAAAB4Y/ZrsR_zER0RA/s1600/09.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="458" src="https://lh4.googleusercontent.com/-eTdKe9ybw6A/TXusfFOsMeI/AAAAAAAAB4Y/ZrsR_zER0RA/s640/09.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh4.googleusercontent.com/-sQyBR1XNoJM/TXusfkMaqCI/AAAAAAAAB4c/qEwU6meENHc/s1600/10.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="458" src="https://lh4.googleusercontent.com/-sQyBR1XNoJM/TXusfkMaqCI/AAAAAAAAB4c/qEwU6meENHc/s640/10.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh5.googleusercontent.com/-o8ds9QEBIlE/TXusfyDqfgI/AAAAAAAAB4g/DGgsy-p7Y7A/s1600/11.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="458" src="https://lh5.googleusercontent.com/-o8ds9QEBIlE/TXusfyDqfgI/AAAAAAAAB4g/DGgsy-p7Y7A/s640/11.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh3.googleusercontent.com/-GOrRVNs3-ws/TXusgN4jGNI/AAAAAAAAB4k/wOMz414KJqw/s1600/12.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="458" src="https://lh3.googleusercontent.com/-GOrRVNs3-ws/TXusgN4jGNI/AAAAAAAAB4k/wOMz414KJqw/s640/12.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2277672312650284960-461540742469438526?l=gilroygonsalves.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2277672312650284960&amp;postID=461540742469438526' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/461540742469438526'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/461540742469438526'/><link rel='alternate' type='text/html' href='http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-02-installing.html' title='DB2 9.7 HADR with TSA - Part 02 - Installing IBM tools for querying and monitoring purpose'/><author><name>Gilroy N. Gonsalves</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://4.bp.blogspot.com/_1y3JEK7a9rA/SwVA9dHzK_I/AAAAAAAABDA/9ilTxBQTEB0/S220/DSC00140.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='https://lh4.googleusercontent.com/-8oHOLEt6cIs/TXuoDHm0ZvI/AAAAAAAAB20/A7ZOkChJ8jM/s72-c/01.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2277672312650284960.post-3126279079389577259</id><published>2010-11-15T00:55:00.000Z</published><updated>2010-11-15T00:58:30.386Z</updated><title type='text'>DB2 9.7 HADR with TSA - Part 01 - Installing and configuring VMWare environment</title><content type='html'>In this blog i will explain the steps needed to install VMWare software.&lt;br /&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2010/11/db2-97-hadr-with-tsa-part-00.html"&gt;DB2 9.7 HADR with TSA Part 00 - Introduction&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;A) &lt;b&gt;Introduction&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;VMWare is the industry standard virtualization software company. VMWare Server is one of the virtualization software that allows to run multiple Guest OS on top of single Host OS. For example, a laptop having Microsoft Windows XP Operating System is termed as Host OS. VMWare Server software is then installed on this Host OS. VMWare Server then provides services that allows running multiple OS called as Guest OS under its runtime environment.&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;B) &lt;b&gt;Download Details&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Times New Roman', serif; font-size: 12pt; line-height: 115%;"&gt;The VMware software can be downloaded from VMWare website&lt;/span&gt;&lt;br /&gt;&lt;table border="1" bordercolor="#000000" cellpadding="3" cellspacing="0" id="lt45"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;Item#&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;Description&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Download Source&lt;/td&gt;&lt;td&gt;&lt;a href="http://www.vmware.com/products/server/"&gt;http://www.vmware.com/products/server/&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Documentation&lt;/td&gt;&lt;td&gt;&lt;a href="https://www.vmware.com/support/pubs/server_pubs.html"&gt;https://www.vmware.com/support/pubs/server_pubs.html&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;C) &lt;b&gt;Installation&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_1y3JEK7a9rA/TOB4KXk22ZI/AAAAAAAAB0Q/45gN2vWBf2M/s1600/00.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_1y3JEK7a9rA/TOB4KXk22ZI/AAAAAAAAB0Q/45gN2vWBf2M/s1600/00.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;a href="http://4.bp.blogspot.com/_1y3JEK7a9rA/TOB4z0xt6KI/AAAAAAAAB0c/U8aZ0d2MzQU/s1600/03.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_1y3JEK7a9rA/TOB4z0xt6KI/AAAAAAAAB0c/U8aZ0d2MzQU/s1600/03.JPG" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;a href="http://4.bp.blogspot.com/_1y3JEK7a9rA/TOB40RCjtAI/AAAAAAAAB0g/EiFyuCzMDxg/s1600/04.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_1y3JEK7a9rA/TOB40RCjtAI/AAAAAAAAB0g/EiFyuCzMDxg/s1600/04.JPG" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;a href="http://2.bp.blogspot.com/_1y3JEK7a9rA/TOB40wL93yI/AAAAAAAAB0k/VdW6yBhGK5Y/s1600/05.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_1y3JEK7a9rA/TOB40wL93yI/AAAAAAAAB0k/VdW6yBhGK5Y/s1600/05.JPG" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;a href="http://2.bp.blogspot.com/_1y3JEK7a9rA/TOB41UQCR9I/AAAAAAAAB0o/dXyiMvBi9gw/s1600/06.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_1y3JEK7a9rA/TOB41UQCR9I/AAAAAAAAB0o/dXyiMvBi9gw/s1600/06.JPG" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;a href="http://1.bp.blogspot.com/_1y3JEK7a9rA/TOB41zCWsEI/AAAAAAAAB0s/NplbmF3FaCM/s1600/07.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_1y3JEK7a9rA/TOB41zCWsEI/AAAAAAAAB0s/NplbmF3FaCM/s1600/07.JPG" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_1y3JEK7a9rA/TOB4yyhCpVI/AAAAAAAAB0U/vSgt8x5oQ5U/s1600/08.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_1y3JEK7a9rA/TOB4yyhCpVI/AAAAAAAAB0U/vSgt8x5oQ5U/s1600/08.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;D) &lt;b&gt;Configuration&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Start the VMWare Server from Windows XP Start Menu&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;b&gt;Start -&amp;gt; VMware -&amp;gt; VMware Server -&amp;gt; VMware Server Home Page &lt;/b&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Step 1: Login to VMware server using your Host OS Login crediantial&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_1y3JEK7a9rA/TOB6d6nSmuI/AAAAAAAAB0w/1_FBvt717yY/s1600/01.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_1y3JEK7a9rA/TOB6d6nSmuI/AAAAAAAAB0w/1_FBvt717yY/s1600/01.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Step 2:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Create Virtual Machine using the menu Virtual Machine -&amp;gt; Create Virtual Machine&lt;/li&gt;&lt;/ul&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_1y3JEK7a9rA/TOB7TfiW79I/AAAAAAAAB00/2UQwRdA4f2A/s1600/02.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_1y3JEK7a9rA/TOB7TfiW79I/AAAAAAAAB00/2UQwRdA4f2A/s1600/02.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;Provide name for your new virtual machine. In our case  the name of the Virtual Machine is &lt;b&gt;mumbai&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_1y3JEK7a9rA/TOB7tf3zZ3I/AAAAAAAAB04/dX7GfntXqmU/s1600/03.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_1y3JEK7a9rA/TOB7tf3zZ3I/AAAAAAAAB04/dX7GfntXqmU/s1600/03.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;Select the Guest OS that will be installed on Virtual Machine. In our case the guest OS is Red Hat Enterprise Linux 5.&lt;/li&gt;&lt;/ul&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_1y3JEK7a9rA/TOB8eoF0gvI/AAAAAAAAB08/cHCVELFjNPc/s1600/04.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_1y3JEK7a9rA/TOB8eoF0gvI/AAAAAAAAB08/cHCVELFjNPc/s1600/04.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;Select the Physical Memory for the Guest OS. This memory will the pulled from Host OS. In our case I specified 1024MB. Kindly select appropriate memory based on available memory on you machine. Giving more memory than what is available on laptop may result into paging.&lt;/li&gt;&lt;/ul&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_1y3JEK7a9rA/TOB8u_sr6jI/AAAAAAAAB1A/WLCttnrW1eA/s1600/05.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_1y3JEK7a9rA/TOB8u_sr6jI/AAAAAAAAB1A/WLCttnrW1eA/s1600/05.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;Create hard disk for virtual machine that will be used to install Guest OS. Select Create a New Virtual Disk&lt;/li&gt;&lt;/ul&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_1y3JEK7a9rA/TOB892veBtI/AAAAAAAAB1E/AmT7qU2PgOc/s1600/06.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_1y3JEK7a9rA/TOB892veBtI/AAAAAAAAB1E/AmT7qU2PgOc/s1600/06.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;Provide value for Hard disk properties&lt;/li&gt;&lt;/ul&gt;Capacity :- 10GB&lt;br /&gt;Location :-  [standard] chicago/chicago.vmdk&lt;br /&gt;File Option :- Make sure &lt;b&gt;“Allocate all disk space now”&lt;/b&gt;  is unchecked.&lt;br /&gt;Disk Mode :- Independent -&amp;gt; Persistent&lt;br /&gt;Virtual Device Node :-  Adapter =&amp;gt; SCSI 0   Device =&amp;gt; 0&lt;br /&gt;Policies :- &lt;b&gt;Optimize for safety&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_1y3JEK7a9rA/TOB9YR8UsVI/AAAAAAAAB1I/LMJN60V8Y04/s1600/07.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_1y3JEK7a9rA/TOB9YR8UsVI/AAAAAAAAB1I/LMJN60V8Y04/s1600/07.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman', serif; font-size: 16px; line-height: 18px;"&gt;Add network adapter for the virtual machine. Select &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman', serif; font-size: 16px; line-height: 18px;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;Add a Network Adapter&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_1y3JEK7a9rA/TOB9npSPqxI/AAAAAAAAB1M/PM9hlC4VErM/s1600/08.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_1y3JEK7a9rA/TOB9npSPqxI/AAAAAAAAB1M/PM9hlC4VErM/s1600/08.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman', serif; font-size: 16px; line-height: 18px;"&gt;Select &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman', serif; font-size: 16px; line-height: 18px;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;Bridged&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman', serif; font-size: 16px; line-height: 18px;"&gt; Network Connection&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_1y3JEK7a9rA/TOB98iob5HI/AAAAAAAAB1Q/FqVhEuchGtQ/s1600/09.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_1y3JEK7a9rA/TOB98iob5HI/AAAAAAAAB1Q/FqVhEuchGtQ/s1600/09.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman', serif; font-size: 16px; line-height: 18px;"&gt;Create Media drive for your Guest OS. Select “&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman', serif; font-size: 16px; line-height: 18px;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;Use a Physical Drive&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman', serif; font-size: 16px; line-height: 18px;"&gt;”&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_1y3JEK7a9rA/TOB-KujjfhI/AAAAAAAAB1U/V52OZeqsTYs/s1600/10.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_1y3JEK7a9rA/TOB-KujjfhI/AAAAAAAAB1U/V52OZeqsTYs/s1600/10.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;Give drive name  for the media drive&lt;/li&gt;&lt;/ul&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_1y3JEK7a9rA/TOB-aF0tW9I/AAAAAAAAB1Y/G9mqFEIkJ5g/s1600/11.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_1y3JEK7a9rA/TOB-aF0tW9I/AAAAAAAAB1Y/G9mqFEIkJ5g/s1600/11.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;Ignore creation of Floppy dirve for Guest OS&lt;/li&gt;&lt;/ul&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_1y3JEK7a9rA/TOB-46ltE9I/AAAAAAAAB1g/-C2aeRUfeBM/s1600/12.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_1y3JEK7a9rA/TOB-46ltE9I/AAAAAAAAB1g/-C2aeRUfeBM/s1600/12.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;Add USB controller for Guest OS&lt;/li&gt;&lt;/ul&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_1y3JEK7a9rA/TOB_kCMXseI/AAAAAAAAB1k/zdj7HYgnFPk/s1600/13.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_1y3JEK7a9rA/TOB_kCMXseI/AAAAAAAAB1k/zdj7HYgnFPk/s1600/13.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Summary of the new Virtual machine that will be created. Click Finish to create virtual machine&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_1y3JEK7a9rA/TOCAHIiwzfI/AAAAAAAAB1o/tTo7znDkG1Y/s1600/14.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_1y3JEK7a9rA/TOCAHIiwzfI/AAAAAAAAB1o/tTo7znDkG1Y/s1600/14.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;New virtual machine is created in is listed on Left Panel in VMware Home Page&lt;/li&gt;&lt;/ul&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_1y3JEK7a9rA/TOCAZofXi5I/AAAAAAAAB1s/w-1qV15P9fA/s1600/15.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_1y3JEK7a9rA/TOCAZofXi5I/AAAAAAAAB1s/w-1qV15P9fA/s1600/15.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-size: x-large;"&gt;Step 3 :&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue; font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman', serif; line-height: 21px;"&gt;Installing the Guest Operating System on Virtual Machine&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman', serif; font-size: 19px; line-height: 21px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman', serif; font-size: 19px; line-height: 21px;"&gt;&lt;span style="font-family: 'Times New Roman', serif; font-size: 12pt; line-height: 115%;"&gt;After creating the Virtual machine, next task is to install the Guest OS on the Virtual Machine. For this sample example we use CentOS 5.2 Linux Operating System. This is the same package that will is used to develop the RED HAT Enterprise Linux Operating System.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman', serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;Donwload Instruction&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;table border="1" bordercolor="#000000" cellpadding="3" cellspacing="0" id="lt45"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;Item#&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;Description&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Download Source&lt;/td&gt;&lt;td&gt;&lt;a href="http://mirror.ukhost4u.com/centos/5.4/isos/i386/"&gt;http://mirror.ukhost4u.com/centos/5.4/isos/i386/&lt;/a&gt;&lt;br /&gt;CentOS-5.4-i386-bin-1of6.iso&lt;br /&gt;CentOS-5.4-i386-bin-2of6.iso&lt;br /&gt;CentOS-5.4-i386-bin-3of6.iso&lt;br /&gt;CentOS-5.4-i386-bin-4of6.iso&lt;br /&gt;CentOS-5.4-i386-bin-5of6.iso&lt;br /&gt;CentOS-5.4-i386-bin-6of6.iso&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Documentation&lt;/td&gt;&lt;td&gt;&lt;a href="http://www.centos.org/docs/5/"&gt;http://www.centos.org/docs/5/&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family: 'Times New Roman', serif; font-size: 12pt; line-height: 115%;"&gt;Start the Virtual Machine by clicking the &lt;b style="mso-bidi-font-weight: normal;"&gt;Green Play&lt;/b&gt; button on top menu. Before starting the Virtual Machine make sure the CentOS CD is inserted into your CD Drive. VMware pick the detail and start the Linux Installation setup.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_1y3JEK7a9rA/TOCB8tkiJwI/AAAAAAAAB1w/JqOZw5fnsVI/s1600/01.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_1y3JEK7a9rA/TOCB8tkiJwI/AAAAAAAAB1w/JqOZw5fnsVI/s1600/01.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;Click the Console tab which will let you see the insall screen. Click the Window which will open a new VMware client window&lt;/li&gt;&lt;/ul&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_1y3JEK7a9rA/TOCCJ6m3SkI/AAAAAAAAB10/mbcjmVMAHLg/s1600/02.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_1y3JEK7a9rA/TOCCJ6m3SkI/AAAAAAAAB10/mbcjmVMAHLg/s1600/02.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;This will show the Linux OS install steps. Follow the Linux step to install Linux OS on Virtual Machine&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_1y3JEK7a9rA/TOCCYlPAHUI/AAAAAAAAB14/dbCSksBuQeE/s1600/03.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_1y3JEK7a9rA/TOCCYlPAHUI/AAAAAAAAB14/dbCSksBuQeE/s1600/03.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Install all the package to avoid problem of missing library files. Also provide following details&lt;/li&gt;&lt;/ul&gt;Hostname :  chicago.localdomain&lt;br /&gt;IP Address eth0 :  192.168.9.111 &lt;br /&gt;Default Gateway eth0: 192.168.9.1&lt;br /&gt;IP Address eth1 : 192.168.0.105&lt;br /&gt;Default Gateway eth1 : None&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;Step 4: &lt;b&gt;Starting the Viirtual Machine&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman', serif; font-size: 16px; line-height: 18px;"&gt;Once the OS is installed on the virtual machine, start the virtual machine to login to Guest OS&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_1y3JEK7a9rA/TOCC8DrOg1I/AAAAAAAAB18/6ouv4izbSpU/s1600/04.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_1y3JEK7a9rA/TOCC8DrOg1I/AAAAAAAAB18/6ouv4izbSpU/s1600/04.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;Login to the Guest OS using the login credential provide during the Linux OS installation.&lt;/li&gt;&lt;/ul&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_1y3JEK7a9rA/TOCDIzViD1I/AAAAAAAAB2A/E5u9cEHZZk8/s1600/05.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_1y3JEK7a9rA/TOCDIzViD1I/AAAAAAAAB2A/E5u9cEHZZk8/s1600/05.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2277672312650284960-3126279079389577259?l=gilroygonsalves.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2277672312650284960&amp;postID=3126279079389577259' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/3126279079389577259'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/3126279079389577259'/><link rel='alternate' type='text/html' href='http://gilroygonsalves.blogspot.com/2010/11/db2-97-hadr-with-tsa-part-01-installing.html' title='DB2 9.7 HADR with TSA - Part 01 - Installing and configuring VMWare environment'/><author><name>Gilroy N. Gonsalves</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://4.bp.blogspot.com/_1y3JEK7a9rA/SwVA9dHzK_I/AAAAAAAABDA/9ilTxBQTEB0/S220/DSC00140.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_1y3JEK7a9rA/TOB4KXk22ZI/AAAAAAAAB0Q/45gN2vWBf2M/s72-c/00.JPG' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2277672312650284960.post-850257383719939773</id><published>2010-11-14T23:26:00.000Z</published><updated>2011-04-10T23:32:32.479+01:00</updated><title type='text'>DB2 9.7 HADR with TSA - Part 00</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;In coming weeks before I start my Christmas vacation, i would be presenting series of blogs explaining the DB2 9.7 HADR configuration using TSA. All work which i would be presenting in the upcoming blogs was carried out on VMWare test environment.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;The DB2 9.7 HADR with TSA series of blogs is organised in following sections&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2010/11/db2-97-hadr-with-tsa-part-01-installing.html"&gt;Part 1 : Installing and configuring VMWare environment&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-02-installing.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;2 : Installing IBM tools for querying and monitoring purpose&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-03-installing.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;3 : Installing IBM DB2 9.7 database&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-04-installing.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;4 : Installing DB2 9.7 Fix-pack&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-05-creating.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;5 : Creating Instance and database&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/03/db2-97-hadr-with-tsa-part-06.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;6 : Configuring DB2 9.7 HADR between Primary and Standby&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/04/db2-97-hadr-with-tsa-part-07.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;7 : Configuring DB2 9.7 HADR to work with TSA&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/04/db2-97-hadr-with-tsa-part-08-performing.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;8 : Performing some DB2 9.7 HADR failover and failback test&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/04/db2-97-hadr-with-tsa-part-09-converting.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;9 : Converting DB2 9.7 HADR no-read-access standby to DB2 9.7 HADR read-only standby database&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/04/db2-97-hadr-with-tsa-part10-configuring.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;Part&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;10 : Configuring DB2 9.7 Automatic Client re-route &amp;nbsp;(ACR)&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;a href="http://gilroygonsalves.blogspot.com/2011/04/db2-97-hadr-with-tsa-part11-db2-hadr.html"&gt;Part 11 : DB2 HADR userful references&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;The idea behind this series is to configure DB2 HADR with TSA and provide detailed Steps for HADR configuration.&amp;nbsp; &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2277672312650284960-850257383719939773?l=gilroygonsalves.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2277672312650284960&amp;postID=850257383719939773' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/850257383719939773'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/850257383719939773'/><link rel='alternate' type='text/html' href='http://gilroygonsalves.blogspot.com/2010/11/db2-97-hadr-with-tsa-part-00.html' title='DB2 9.7 HADR with TSA - Part 00'/><author><name>Gilroy N. Gonsalves</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://4.bp.blogspot.com/_1y3JEK7a9rA/SwVA9dHzK_I/AAAAAAAABDA/9ilTxBQTEB0/S220/DSC00140.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2277672312650284960.post-8633940034155223497</id><published>2010-07-18T20:58:00.000+01:00</published><updated>2010-11-10T23:00:52.615Z</updated><title type='text'>DB2 9.5 and DB2 9.7  Locking Tips</title><content type='html'>&lt;a href="http://www.blogger.com/"&gt;&lt;span id="goog_731052986"&gt;&lt;/span&gt;&lt;span id="goog_731052987"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;DB2 Locking basics&lt;/b&gt;&lt;/u&gt; &lt;br /&gt;&lt;br /&gt;In any relational database, in order to maintain consistency among the transaction locks need to be acquired on the resource on which the transaction will be executed. Resource can be a Relational Table, or Rows. Locking provide isolation of resource between transaction thereby providing concurrency between independent transaction. DB2 provides four isolation levels.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Uncommitted Read&lt;/li&gt;&lt;li&gt; Cursor Stability&lt;/li&gt;&lt;li&gt;Read Stability&lt;/li&gt;&lt;li&gt;Repeatable Read&lt;/li&gt;&lt;li&gt;Currently committed (New in DB 9.7) &lt;/li&gt;&lt;/ul&gt;In order to utilize the isolation level in the transaction, they can be specified at&lt;br /&gt;1) Statement level (SELECT, DELETE, UPDATE)&lt;br /&gt;eg:- SELECT &lt;column_name&gt; FROM &lt;table_name&gt; &lt;b&gt;WITH {UR, CS, RR, RS}&lt;/b&gt;&lt;/table_name&gt;&lt;/column_name&gt;&lt;br /&gt;&lt;br /&gt;2) At session level&lt;br /&gt;eg:- SET CURRENT ISOLATION = &lt;b&gt;{UR, CS, RR, RS}&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;Commonly referred LOCKING terms&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;1) &lt;b&gt;Locks&lt;/b&gt;&lt;br /&gt;In order to use any resource, DB2 lock the resource before the transaction can use it. &lt;b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;2) &lt;b&gt;Lock-Wait&lt;/b&gt;&lt;br /&gt;If any transaction is requesting lock on a resource, and that resource is currently being held by other transaction, then the application requesting the lock goes into LOCK-WAIT mode until the lock on the resource is released by the primary transaction.&lt;br /&gt;&lt;br /&gt;3) &lt;b&gt;Deadlock&lt;/b&gt;&lt;br /&gt;&amp;nbsp;If two transaction are waiting on each others resources the the both the transaction goes into deadlock state.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;4) &lt;b&gt;Lock Escalation&lt;/b&gt;&lt;br /&gt;&amp;nbsp;For each lock acquired on a resource, DB2 maintain that information in DB2 locklist memory component. If the &lt;i&gt;locklist &lt;/i&gt;memory started getting exhausted, DB2 escalate all row level lock to table level lock in order to release memory.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;How DB2 locking can be monitored?&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;1) Monitor switches&lt;br /&gt;2) GET SNAPSHOT command&lt;br /&gt;3) db2pd tool&lt;br /&gt;4) Snapshot monitor SQL administrative routines&lt;br /&gt;5) DB2_CAPTURE_LOCKTIMEOUT ( New in DB2 9.5 locking)&lt;a href="http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/topic/com.ibm.db2.luw.admin.perf.doc/doc/r0052974.html"&gt; Practical Use of DB2_CAPTURE_LOCKTIMEOUT&lt;/a&gt;&lt;br /&gt;6) db2cos scripts&lt;br /&gt;7) db2pdcfg with &lt;b&gt;-catch&lt;/b&gt; option&lt;br /&gt;8) Locking event monitor as apposed to Deadlock event monitory (New in DB2 9.7 Locking) &lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;Lock related DB CFG parameter&lt;/b&gt;&lt;/u&gt; &lt;br /&gt;&lt;br /&gt;1) LOCKLIST &lt;br /&gt;2) MAXLOCK&lt;br /&gt;3) LOCKTIMEOUT&lt;br /&gt;4) DLCHKTIME&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;Lock related registry variable&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;1) DB2LOCK_TO_RB&lt;br /&gt;2) DB2_KEEPTABLELOCK&lt;br /&gt;3) DB2_MAX_NON_TABLE_LOCKS&lt;br /&gt;4) DB2_EVALUNCOMMITED&lt;br /&gt;5) DB2_SKIPDELETED&lt;br /&gt;6) DB2_SKIPINSERTED&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;Reference URLs:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.ibm.com/developerworks/data/library/techarticle/dm-0509schuetz/"&gt;1) Example to understand the DB2 Locking Mechanism&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.ibm.com/developerworks/data/library/techarticle/dm-0408hubel/index.html"&gt;2) Example on DB2 Snapshot and Event monitors&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;&lt;a href="http://download.boulder.ibm.com/ibmdl/pub/software/dw/dm/db2/0310wilkins/0310wilkins.pdf"&gt;3) Whitepaper describing technique to Diagnose and resolve lock problems&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.ibm.com/developerworks/data/library/techarticle/dm-0707fechner/"&gt;&amp;nbsp;4) DB2 9.5 lock monitoring - Part 1&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.ibm.com/developerworks/data/library/techarticle/dm-0804fechner/index.html"&gt;&amp;nbsp;5) DB2 9.5 Lock monitoring - Part 2&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.ibm.com/developerworks/data/library/techarticle/dm-0801schuetz/index.html"&gt;&amp;nbsp;6) DB2 9.5 Optimistic Locking ( New in DB2 9.5)&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2277672312650284960-8633940034155223497?l=gilroygonsalves.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2277672312650284960&amp;postID=8633940034155223497' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/8633940034155223497'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/8633940034155223497'/><link rel='alternate' type='text/html' href='http://gilroygonsalves.blogspot.com/2010/07/db2-95-and-db2-97-locking-tips.html' title='DB2 9.5 and DB2 9.7  Locking Tips'/><author><name>Gilroy N. Gonsalves</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://4.bp.blogspot.com/_1y3JEK7a9rA/SwVA9dHzK_I/AAAAAAAABDA/9ilTxBQTEB0/S220/DSC00140.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2277672312650284960.post-8393230896703388972</id><published>2010-06-20T22:55:00.000+01:00</published><updated>2010-06-20T23:19:45.061+01:00</updated><title type='text'>My JUNE favourite DB2 9.7 articels</title><content type='html'>Finally, today i completed my DB2 9.7 Database administrator certification. DB2 9.7 have a good bunch of new feature that simplifies every DB2 DBAs job. Oracle Compatibility is very good feature that IBM brought into the product.&lt;br /&gt;&lt;br /&gt;WLM which was launched as part of DB2 9.5 is enhanced in DB2 9.7 and is really one of the powerful feature in DB2 9.7. Along with it couple of new monitoring views, event monitors are released that help in identifying how data server is performing at a given point in time. New DB2 HADR feature provide read only standby.&lt;br /&gt;Some of the other interesting feature that i rated are&lt;br /&gt;1) CGTT&lt;br /&gt;2) Index compression&lt;br /&gt;3) New Monitoring views&lt;br /&gt;4) New Event monitors&lt;br /&gt;5) WLM enhancement&lt;br /&gt;6) Online table move&lt;br /&gt;&lt;br /&gt;and many more.....&lt;br /&gt;&lt;br /&gt;I am not very interested in XML technology in DB2, but IBM had extended the XML capability in DPF environment which was not possible in previous releases. &lt;br /&gt;&lt;br /&gt;DB2 9.7 and all the future version will bring really interesting extensions to DB2. &lt;br /&gt;&lt;br /&gt;I am awaiting for DB2 9.8 pureScale for Linux. DB2 9.8 is really gone shake the market for OLTP application. It has brilliant technology running under its bonnet which is borrowed from its successful implementation in Mainframe.&lt;br /&gt;&amp;nbsp; &lt;br /&gt;Some of the good dw articles i find interesting for the month of June 2010 are&lt;br /&gt;&lt;br /&gt;1) DB2 pureScale - Group Crash Recovery &lt;br /&gt;&lt;a href="http://www.ibm.com/developerworks/cn/data/library/techarticles/dm-1006wucx/index.html"&gt;http://www.ibm.com/developerworks/cn/data/library/techarticles/dm-1006wucx/index.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2) IBM InfoSphere Federation Server Best Practice&lt;br /&gt;&lt;a href="http://www.ibm.com/developerworks/cn/data/library/techarticles/dm-1006lihf/index.html"&gt;http://www.ibm.com/developerworks/cn/data/library/techarticles/dm-1006lihf/index.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;3) Unleash the power of table partitioning in your DB2 9.7 warehouse&lt;br /&gt;&lt;a href="http://www.ibm.com/developerworks/data/library/techarticle/dm-1006tablepartitioning/index.html"&gt;http://www.ibm.com/developerworks/data/library/techarticle/dm-1006tablepartitioning/index.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;4) IBM DB2 e-kit for Database Professional&lt;br /&gt;&lt;a href="http://www.ibm.com/developerworks/data/kits/dataprokit/index.html"&gt;http://www.ibm.com/developerworks/data/kits/dataprokit/index.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;5) Whats new with DB2 Express-C 9.7.2&lt;br /&gt;&lt;a href="http://www.ibm.com/developerworks/data/library/techarticle/dm-1006db2expressc972/index.html"&gt;http://www.ibm.com/developerworks/data/library/techarticle/dm-1006db2expressc972/index.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;6) Build skills for DB2 for Linux, Unix and Windows&lt;br /&gt;&lt;a href="http://www.ibm.com/developerworks/data/db2skills/?ca=dnw-1123&amp;amp;ca=dth-i"&gt;http://www.ibm.com/developerworks/data/db2skills/?ca=dnw-1123&amp;amp;ca=dth-i&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2277672312650284960-8393230896703388972?l=gilroygonsalves.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2277672312650284960&amp;postID=8393230896703388972' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/8393230896703388972'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/8393230896703388972'/><link rel='alternate' type='text/html' href='http://gilroygonsalves.blogspot.com/2010/06/my-june-favourite-db2-97-articels.html' title='My JUNE favourite DB2 9.7 articels'/><author><name>Gilroy N. Gonsalves</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://4.bp.blogspot.com/_1y3JEK7a9rA/SwVA9dHzK_I/AAAAAAAABDA/9ilTxBQTEB0/S220/DSC00140.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2277672312650284960.post-2028472897167738197</id><published>2010-06-17T00:25:00.000+01:00</published><updated>2010-06-17T00:25:57.883+01:00</updated><title type='text'>DB2 Client Server Connectivity and Configuration</title><content type='html'>In this post i will discuss different scenario of DB2 client connectivity to DB2 server.  In each new release of DB2, the DB2 client is re-branded with different name. The table below describe the DB2 9.1, DB2 9.5 and DB2 9.7 client name.&lt;br /&gt;&lt;br /&gt;&lt;table align="center" border="1" cellpadding="2" cellspacing="0" style="width: 400px;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="background-color: #274e13; color: white; text-align: center;" valign="top" width="133"&gt;&lt;h1&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;DB2  V9.1&lt;/b&gt;&lt;/span&gt;&lt;/h1&gt;&lt;/td&gt; &lt;td style="background-color: #274e13; color: white; text-align: center;" valign="top" width="133"&gt;&lt;h1&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;DB2 V9.5&lt;/b&gt;&lt;/span&gt;&lt;/h1&gt;&lt;/td&gt; &lt;td style="background-color: #274e13; color: white; text-align: center;" valign="top" width="133"&gt;&lt;h1&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;DB2 V9.7&lt;/b&gt;&lt;/span&gt;&lt;/h1&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt; &lt;td valign="top" width="133"&gt;DB2 Client &lt;/td&gt; &lt;td valign="top" width="133"&gt;IBM Data Server Client&lt;/td&gt; &lt;td valign="top" width="133"&gt;IBM  Data Server Client&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt; &lt;td valign="top" width="133"&gt;DB2  Runtime Client&lt;/td&gt; &lt;td valign="top" width="133"&gt;IBM Data Server Runtime  Client&lt;/td&gt; &lt;td valign="top" width="133"&gt;IBM Data Server Runtime Client&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt; &lt;td valign="top" width="133"&gt;IBM DB2 Driver for JDBC and SQLJ&lt;/td&gt;  &lt;td valign="top" width="133"&gt;IBM Data Server Driver Package&lt;/td&gt; &lt;td valign="top" width="133"&gt;IBM Data Server Driver Package&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt; &lt;td valign="top" width="133"&gt;IBM DB2 Driver for ODBC and CLI&lt;/td&gt; &lt;td valign="top" width="133"&gt;IBM Data Server Driver Package&lt;/td&gt; &lt;td valign="top" width="133"&gt;IBM Data Server Driver Package&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;Below are link to DB2 Information that gives the details of DB2 Client  Type&lt;br /&gt;&lt;table border="1" cellpadding="2" cellspacing="0" style="width: 400px;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="background-color: #274e13; color: white; text-align: center;" valign="top" width="200"&gt;&lt;h1&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;DB2 Version&lt;/b&gt;&lt;/span&gt;&lt;/h1&gt;&lt;/td&gt; &lt;td style="background-color: #274e13; color: white; text-align: center;" valign="top" width="200"&gt;&lt;h1&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;InfoCenter Link&lt;/b&gt;&lt;/span&gt;&lt;/h1&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;  &lt;td style="background-color: #134f5c; color: white; text-align: center;" valign="top" width="200"&gt;V9.1&lt;/td&gt; &lt;td valign="top" width="200"&gt;&lt;a href="http://publib.boulder.ibm.com/infocenter/db2luw/v9/topic/com.ibm.db2.udb.rn.doc/doc/c0023028.htm"&gt;http://publib.boulder.ibm.com/infocenter/db2luw/v9/topic/com.ibm.db2.udb.rn.doc/doc/c0023028.htm&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt; &lt;td style="background-color: #134f5c; color: white; text-align: center;" valign="top" width="200"&gt;V9.5&lt;/td&gt; &lt;td valign="top" width="200"&gt;&lt;a href="http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/topic/com.ibm.swg.im.dbclient.install.doc/doc/c0022612.html"&gt;http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/topic/com.ibm.swg.im.dbclient.install.doc/doc/c0022612.html&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt; &lt;td style="background-color: #134f5c; color: white; text-align: center;" valign="top" width="200"&gt;V9.7&lt;/td&gt; &lt;td valign="top" width="200"&gt;&lt;a href="http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.swg.im.dbclient.install.doc/doc/c0022612.html"&gt;http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.swg.im.dbclient.install.doc/doc/c0022612.html&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;In order to connect to DB2 Server, one of this DB2 client needs to be  installed. This DB2 client binary then allows the application to connect  to the DB2 server. We will present two Case of DB2 client connectivity  to DB2 Server.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;b&gt;&lt;u&gt;Requirement for setup:&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1)&amp;nbsp; You need to set service port on the DB2 Server  through which the DB2 Client communicate with DB2 Server. On Windows,  the entry is recorded in “&lt;span style="font-size: small;"&gt;&lt;b style="color: blue; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;c:\windows\System32\drivers\etc\services&lt;/b&gt;&lt;/span&gt;”  file. On Linux, the entry is recorded in “&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;"&gt;&lt;b style="color: blue;"&gt;/etc/services&lt;/b&gt;&lt;/span&gt;” file. The  service port entry in this file is of the form&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;ol style="color: #351c75;"&gt;&lt;ul&gt;&lt;li&gt;&amp;nbsp; service_name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; port_number&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  /tcp&lt;/li&gt;&lt;li&gt;&amp;nbsp; For Example:-&amp;nbsp;&amp;nbsp;&amp;nbsp;  DB2_test&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7777&amp;nbsp;&amp;nbsp; /tcp&lt;/li&gt;&lt;/ul&gt;&lt;/ol&gt;2)&amp;nbsp;&lt;span style="color: black;"&gt;Update the DB2 Database Manager configuration &lt;b&gt;&lt;span style="color: blue;"&gt;SVCENAME &lt;/span&gt;&lt;/b&gt;with the service port number. The following command is executed to set the &lt;b&gt;&lt;span style="color: blue;"&gt;SVCENAME&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;ul style="color: #351c75; text-align: left;"&gt;&lt;ul&gt;&lt;li&gt;update dbm cfg using svcename DB2_test&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;3)&amp;nbsp;&lt;span style="color: black;"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;DB2COMM &lt;/span&gt;&lt;/b&gt;registry variable needs to be set to value “&lt;b&gt;&lt;span style="color: blue;"&gt;TCPIP&lt;/span&gt;&lt;/b&gt;”.  The DB2 instance needs to be bounced in order reflect the changes made to the &lt;b&gt;&lt;span style="color: blue;"&gt;DB2COMM &lt;/span&gt;&lt;/b&gt;registry variable. The following set of command needs to be executed in sequence to make this changes&lt;/span&gt;&lt;br /&gt;&lt;ol style="color: #351c75;"&gt;&lt;ul&gt;&lt;li&gt;db2set DB2COMM=TCPIP&lt;/li&gt;&lt;li&gt;db2stop force&lt;/li&gt;&lt;li&gt;db2start&lt;/li&gt;&lt;/ul&gt;&lt;/ol&gt;4)&lt;span style="color: black;"&gt;&amp;nbsp;On the client, DB2 Client instance must be created if it didnt already exist. This is needed to catalog the remote DB2 database. The client is created using the following command&lt;/span&gt;&lt;br /&gt;&lt;ol style="color: #351c75;"&gt;&lt;ul&gt;&lt;li&gt;db2icrt –s client {instance_name}&lt;instance_name&gt;&lt;/instance_name&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ol&gt;5) &lt;span style="color: black;"&gt;On client, the CATALOG DATABASE and CATALOG NODE command must be executed as the DB2 Client Instance owner.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="background-color: black;"&gt;&lt;span style="color: red;"&gt;&lt;b&gt;Case 1:&lt;/b&gt;&lt;/span&gt;&amp;nbsp; &lt;span style="color: white;"&gt;DB2 Client is  located on the same server where the DB2 Server is executing&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="color: #741b47;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: #741b47; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;a)&amp;nbsp; In this DB2 Client binary is NOT needed  to be installed since all the files needed to connect to DB2 Server is  installed as part of DB2 Server Installation.&amp;nbsp;&lt;/div&gt;&lt;div style="color: #741b47; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: #741b47; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;b) If we need to access database with different name then  we need to catalog the database with different name. Following command  is executed in sequence&lt;/div&gt;&lt;ul style="color: #351c75; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;ul&gt;&lt;li&gt;CATALOG  DATABASE {source_db_name} &lt;source_db_name&gt; AS {alias_db_name} &lt;alias_db_name&gt; ON {drive | path}&lt;drive path=""&gt;&lt;/drive&gt;&lt;/alias_db_name&gt;&lt;/source_db_name&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;div style="color: #741b47; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;c) Then connect to the  alias using the following command&lt;/div&gt;&lt;ul style="color: #351c75; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;ul&gt;&lt;li&gt;CONNECT TO {alias_db_name}&lt;alias_db_name&gt;&lt;/alias_db_name&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;br /&gt;&lt;div style="background-color: black;"&gt;&lt;b&gt;&lt;span style="color: red;"&gt;Case 2:&lt;/span&gt;&lt;/b&gt; &lt;span style="color: white;"&gt;DB2 Client is  Located on the Remote Machine which in turn connect to DB2 Server  running on different machine.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="color: #741b47; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;a) In this the DB2 Client need to be installed on the client machine.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #741b47; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;b) We need to catalog the remote instance. This step is needed to access the remote database created under that instance. Following command are executed&lt;/span&gt;&lt;br /&gt;&lt;ul style="color: #351c75; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;ul&gt;&lt;li&gt;CATALOG TCPIP NODE {nodename} REMOTE {hostname OR IP address} SERVER {service_port_set_on_DB2_Server}&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;span style="color: #741b47; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;c) We then need to catalog the database in order for client to connect to the DB2 server. Following command is executed&lt;/span&gt;&lt;br style="color: #741b47; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;ul style="color: #351c75; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;ul&gt;&lt;li&gt;CATALOG DATABASE {source_db_name} AS {alias_db_name} AT NODE {node_name_from_step_2}&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;span style="color: #741b47; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;d) Then connect to the alias using the following command&lt;/span&gt;&lt;br style="color: #741b47; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;ul style="color: #351c75; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;ul&gt;&lt;li&gt;CONNECT TO {alias_db_name}&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="background-color: black;"&gt;&lt;b&gt;&lt;span style="color: red;"&gt;Case 3:&lt;/span&gt;&lt;/b&gt;&lt;span style="color: white;"&gt; Remote application  is located on the Remote Machine which want to connect to DB2 Server  running on different machine using the JDBC connection.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;a) Download the &lt;b style="color: blue;"&gt;IBM Data Server Driver Packages&lt;/b&gt; client from the following website&lt;br /&gt;&lt;a href="http://www.blogger.com/goog_1354416805"&gt;&amp;nbsp;&lt;/a&gt;&lt;a href="http://www-01.ibm.com/support/docview.wss?uid=swg24025865" title="blocked::http://www-01.ibm.com/support/docview.wss?uid=swg24025865"&gt;http://www-01.ibm.com/support/docview.wss?uid=swg24025865&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;Download Steps:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="621573209-14062010"&gt;&lt;span style="font-family: Arial; font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp; 1) Select "&lt;strong&gt;Windows 32-bit X86&lt;/strong&gt;"&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="621573209-14062010"&gt;&amp;nbsp;&amp;nbsp; &lt;span style="font-family: Arial; font-size: x-small;"&gt;2) Select "&lt;strong&gt;IBM Data Server Driver  Packages"&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="621573209-14062010"&gt;&amp;nbsp;&amp;nbsp; &lt;span style="font-family: Arial; font-size: x-small;"&gt;3) Select "&lt;span onmouseout="javascript:fcHidePopup('result0');" onmouseover="javascript:fcShowPopup('result0');"&gt;&lt;strong&gt;fix pack:  DSClients-nt32-dsdriver-9.5.500.784-FP005&lt;/strong&gt;"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="621573209-14062010"&gt;&lt;span style="font-family: Arial; font-size: x-small;"&gt;&lt;span onmouseout="javascript:fcHidePopup('result0');" onmouseover="javascript:fcShowPopup('result0');"&gt;&amp;nbsp;&amp;nbsp; 4) Select "&lt;span style="font-family: Times New Roman; font-size: small;"&gt;&lt;span style="font-family: Arial; font-size: x-small;"&gt;&lt;strong&gt;Download using your browser  (HTTP)&lt;/strong&gt;&lt;/span&gt;"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="621573209-14062010"&gt;&lt;span style="font-family: Arial; font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp; 5) Select  "&lt;strong&gt;v9.5fp5_nt32_dsdriver_EN.exe (24.95 MB)&lt;/strong&gt;"&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;b) More details on the driver can be read at below link&lt;br /&gt;&lt;span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Times New Roman;"&gt;&lt;a href="http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/topic/com.ibm.swg.im.dbclient.install.doc/doc/c0022612.html" title="blocked::http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/topic/com.ibm.swg.im.dbclient.install.doc/doc/c0022612.html"&gt;http://publib.boulder.ibm.com/infocenter/&lt;span style="background: none repeat scroll 0% 0% highlight; color: highlighttext;" title="blocked::http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/topic/com.ibm.swg.im.dbclient.install.doc/doc/c0022612.html"&gt;db2&lt;/span&gt;&lt;span title="blocked::http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/topic/com.ibm.swg.im.dbclient.install.doc/doc/c0022612.html"&gt;luw/v9r5/topic/com.ibm.swg.im.db&lt;span style="background: none repeat scroll 0% 0% highlight; color: highlighttext;" title="blocked::http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/topic/com.ibm.swg.im.dbclient.install.doc/doc/c0022612.html"&gt;client&lt;/span&gt;.install.doc/doc/c0022612.html&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;c) Driver Installation details can be read at below link&lt;br /&gt;&amp;nbsp; &lt;span class="621573209-14062010"&gt;&lt;span style="font-family: Arial; font-size: x-small;"&gt;&lt;span style="font-family: Times New Roman; font-size: small;"&gt;&lt;a href="http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/topic/com.ibm.swg.im.dbclient.install.doc/doc/c0054554.html" title="blocked::http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/topic/com.ibm.swg.im.dbclient.install.doc/doc/c0054554.html"&gt;http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/topic/com.ibm.swg.im.dbclient.install.doc/doc/c0054554.html&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="621573209-14062010"&gt;&lt;span style="font-family: Arial; font-size: x-small;"&gt;&lt;span style="font-family: Times New Roman; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="621573209-14062010"&gt;&lt;span style="font-family: Arial; font-size: x-small;"&gt;&lt;span style="font-family: Times New Roman; font-size: small;"&gt;d) Set the &lt;b&gt;&lt;span style="color: blue;"&gt;CLASSPATH &lt;/span&gt;&lt;/b&gt;environment variable to &lt;b style="color: blue;"&gt;{driver_install_path}\java\db2jcc.jar&lt;/b&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="621573209-14062010"&gt;&lt;span style="font-family: Arial; font-size: x-small;"&gt;&lt;span style="font-family: Times New Roman; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="621573209-14062010"&gt;&lt;span style="font-family: Arial; font-size: x-small;"&gt;&lt;span style="font-family: Times New Roman; font-size: small;"&gt;e) Connect to DB2 Server using the JDBC URL as described by JAVA documentation.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2277672312650284960-2028472897167738197?l=gilroygonsalves.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2277672312650284960&amp;postID=2028472897167738197' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/2028472897167738197'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/2028472897167738197'/><link rel='alternate' type='text/html' href='http://gilroygonsalves.blogspot.com/2010/06/db2-client-server-connectivity-and.html' title='DB2 Client Server Connectivity and Configuration'/><author><name>Gilroy N. Gonsalves</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://4.bp.blogspot.com/_1y3JEK7a9rA/SwVA9dHzK_I/AAAAAAAABDA/9ilTxBQTEB0/S220/DSC00140.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2277672312650284960.post-8688716596097716206</id><published>2010-06-16T21:59:00.000+01:00</published><updated>2011-08-12T11:47:42.153+01:00</updated><title type='text'>DB2 Database Directories</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="font-family: Verdana; font-size: 85%;"&gt;&lt;br /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;When the database is created and/or catalogued in an instance, it record its details in three directory. They are System Database directory, Local database directory and Node directory&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;span style="color: #38761d; font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif; font-size: small;"&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt; The System database directory&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt; contain all the database information. The database may be a local database or it can also show the remote database details. Local database is represented with keyword “&lt;b&gt;&lt;span style="color: magenta;"&gt;INDIRECT&lt;/span&gt;&lt;/b&gt;” and remote database is represented by “&lt;b&gt;&lt;span style="color: magenta;"&gt;REMOTE&lt;/span&gt;&lt;/b&gt;”.&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt; When the connection to the DB2 Database is made, DB2 first check the details in the System Database directory. If the connection is to the “&lt;b&gt;&lt;span style="color: magenta;"&gt;INDIRECT&lt;/span&gt;&lt;/b&gt;” database then it check the local database directory. If the connection is to the “&lt;b&gt;&lt;span style="color: magenta;"&gt;REMOTE&lt;/span&gt;&lt;/b&gt;” database then it check the Node directory.&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt; System Database directory is a binary file with a name SQLDBDIR.  On Windows, the file can be located in &lt;/span&gt;&lt;b style="font-family: Verdana,sans-serif;"&gt;DB2INSTPROF/&lt;instance_name&gt;SQLDBDIR/SQLDBDIR&lt;/instance_name&gt;&lt;/b&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;. On Linux, the file is located in &lt;b&gt;INSTHOME/sqllib/sqldbdir/sqldbdir&lt;/b&gt;.  The content of this directory is displayed by using the command “&lt;b style="color: #660000;"&gt;list db directory&lt;/b&gt;”. The purpose of the System database directory is to record all the database (local or remote) that are accessible.&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt; &lt;b style="color: #e06666;"&gt;DB2INSTPROF = DB2 Registry variable&lt;/b&gt;. If not set then the default value is the DB2 Installed directory path.&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt; &lt;b style="color: #e06666;"&gt;INSTHOME = Is the user profile variable which is set to the Instance home directory&lt;/b&gt;.&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;/span&gt;&lt;span style="color: blue; font-family: Verdana,sans-serif; font-size: small;"&gt;&lt;b&gt;&lt;u&gt;Local Database Directory&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family: Verdana; font-size: 85%;"&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&amp;nbsp;is a binary file with the name SQLDBDIR. However, this file is different from the System Database directory binary file and also reside in different storage path. On Windows and Linux, the file can be located in &lt;b&gt;DFTDBPATH/&lt;/b&gt;&lt;/span&gt;&lt;instance_name&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;b&gt;NODEXXXX/sqldbdir/sqldbdir&lt;/b&gt; which will list all database created in the default directory. If we need to check database in non-default directory then it can be located in                                                            &lt;/span&gt;&lt;non-default directory=""&gt;&lt;b&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;/&lt;/span&gt;&lt;/b&gt;&lt;instance_name&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;b&gt;NODEXXXX/sqldbdir/sqldbdir&lt;/b&gt;.The content of this directory is displayed by using the command        “&lt;b&gt;&lt;span style="color: #660000;"&gt;list db directory on&lt;/span&gt;&lt;/b&gt; &lt;/span&gt;&lt;directory name=""&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;”. The purpose of the local database directory is to record all the database (local only) created in specific directory. This directory also give the &lt;b&gt;&lt;span style="color: magenta;"&gt;SQLXXXXX &lt;/span&gt;&lt;/b&gt;directory name of the database.&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;br style="font-family: Verdana,sans-serif;" /&gt;&lt;span style="color: #e06666; font-family: Verdana,sans-serif;"&gt; &lt;b&gt;DFTDBPATH = DB2 Database Manager variable which show the default path for creating a new database.&lt;/b&gt;&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;/directory&gt;&lt;/instance_name&gt;&lt;/non-default&gt;&lt;/instance_name&gt;&lt;/span&gt;&lt;b style="color: blue;"&gt;&lt;span style="font-family: Verdana,sans-serif; font-size: small;"&gt;&lt;u&gt;Node Directory&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;span style="font-family: Verdana; font-size: 85%;"&gt;&lt;instance_name&gt;&lt;non-default directory=""&gt;&lt;instance_name&gt;&lt;directory name=""&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;is a binary file with the name SQLNODIR. On Windows, the file can be located in &lt;b&gt;DB2INSTPROF/&lt;/b&gt;&lt;/span&gt;&lt;instance_name&gt;&lt;span style="font-family: Verdana,sans-serif;"&gt;&lt;b&gt;SQLNODIR/SQLNODIR&lt;/b&gt;.  On Linux, the file is located in &lt;b&gt;INSTHOME/sqllib/sqlnodir/sqlnodir&lt;/b&gt;. The content of this directory is displayed by using the command “&lt;b&gt;&lt;span style="color: #660000;"&gt;list node directory&lt;/span&gt;&lt;/b&gt;”. The purpose of the Node Directory is it record how to communicate with the remote DB2 instance.&lt;/span&gt;&lt;br style="font-family: Verdana,sans-serif;" /&gt; &lt;/instance_name&gt;&lt;/directory&gt;&lt;/instance_name&gt;&lt;/non-default&gt;&lt;/instance_name&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana; font-size: 85%;"&gt;&lt;instance_name&gt;&lt;non-default directory=""&gt;&lt;instance_name&gt;&lt;directory name=""&gt;&lt;instance_name&gt;&lt;br /&gt;&lt;/instance_name&gt;&lt;/directory&gt;&lt;/instance_name&gt;&lt;/non-default&gt;&lt;/instance_name&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana; font-size: 85%;"&gt;&lt;instance_name&gt;&lt;non-default directory=""&gt;&lt;instance_name&gt;&lt;directory name=""&gt;&lt;instance_name&gt;&lt;br /&gt;&lt;/instance_name&gt;&lt;/directory&gt;&lt;/instance_name&gt;&lt;/non-default&gt;&lt;/instance_name&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana; font-size: 85%;"&gt;&lt;instance_name&gt;&lt;non-default directory=""&gt;&lt;instance_name&gt;&lt;directory name=""&gt;&lt;instance_name&gt;&lt;u&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;Database Manager Configuration File (DBM CFG)&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;/instance_name&gt;&lt;/directory&gt;&lt;/instance_name&gt;&lt;/non-default&gt;&lt;/instance_name&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Verdana; font-size: 85%;"&gt;&lt;instance_name&gt;&lt;non-default directory=""&gt;&lt;instance_name&gt;&lt;directory name=""&gt;&lt;instance_name&gt;The DBM CFG files store all the Database Manager (Instance) parameter values. Each Instance has its own DBM CFG file. This is a binary file. The file is called as "&lt;b style="color: magenta;"&gt;db2systm&lt;/b&gt;". On Linux the file is located at&amp;nbsp;&lt;/instance_name&gt;&lt;/directory&gt;&lt;/instance_name&gt;&lt;/non-default&gt;&lt;/instance_name&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana; font-size: 85%;"&gt;&lt;instance_name&gt;&lt;non-default directory=""&gt;&lt;instance_name&gt;&lt;directory name=""&gt;&lt;instance_name&gt;&lt;b&gt;INSTHOME/sqllib/db2systm&lt;/b&gt;&lt;br /&gt;&lt;/instance_name&gt;&lt;/directory&gt;&lt;/instance_name&gt;&lt;/non-default&gt;&lt;/instance_name&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana; font-size: 85%;"&gt;&lt;instance_name&gt;&lt;non-default directory=""&gt;&lt;instance_name&gt;&lt;directory name=""&gt;&lt;instance_name&gt;&lt;br /&gt;&lt;/instance_name&gt;&lt;/directory&gt;&lt;/instance_name&gt;&lt;/non-default&gt;&lt;/instance_name&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana; font-size: 85%;"&gt;&lt;instance_name&gt;&lt;non-default directory=""&gt;&lt;instance_name&gt;&lt;directory name=""&gt;&lt;instance_name&gt;&lt;br /&gt;&lt;/instance_name&gt;&lt;/directory&gt;&lt;/instance_name&gt;&lt;/non-default&gt;&lt;/instance_name&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana; font-size: 85%;"&gt;&lt;instance_name&gt;&lt;non-default directory=""&gt;&lt;instance_name&gt;&lt;directory name=""&gt;&lt;instance_name&gt;&lt;u&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;Database Configuration File (DB CFG)&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;/instance_name&gt;&lt;/directory&gt;&lt;/instance_name&gt;&lt;/non-default&gt;&lt;/instance_name&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Verdana; font-size: 85%;"&gt;&lt;instance_name&gt;&lt;non-default directory=""&gt;&lt;instance_name&gt;&lt;directory name=""&gt;&lt;instance_name&gt;The DB CFG files stores all the Database parameter values. Each database has it unique DB CFG file. This is a binary file. The file is called as "&lt;b&gt;&lt;span style="color: magenta;"&gt;SQLDBCONF&lt;/span&gt;&lt;/b&gt;" starting from v8.2 and later.&lt;/instance_name&gt;&lt;/directory&gt;&lt;/instance_name&gt;&lt;/non-default&gt;&lt;/instance_name&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana; font-size: 85%;"&gt;&lt;instance_name&gt;&lt;non-default directory=""&gt;&lt;instance_name&gt;&lt;directory name=""&gt;&lt;instance_name&gt;To locate the file on Linux following step are performed&lt;/instance_name&gt;&lt;/directory&gt;&lt;/instance_name&gt;&lt;/non-default&gt;&lt;/instance_name&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana; font-size: 85%;"&gt;&lt;instance_name&gt;&lt;non-default directory=""&gt;&lt;instance_name&gt;&lt;directory name=""&gt;&lt;instance_name&gt;1) Get the database path&lt;/instance_name&gt;&lt;/directory&gt;&lt;/instance_name&gt;&lt;/non-default&gt;&lt;/instance_name&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana; font-size: 85%;"&gt;&lt;instance_name&gt;&lt;non-default directory=""&gt;&lt;instance_name&gt;&lt;directory name=""&gt;&lt;instance_name&gt;&lt;b&gt;db2 list active databases&lt;/b&gt;&lt;br /&gt;&lt;/instance_name&gt;&lt;/directory&gt;&lt;/instance_name&gt;&lt;/non-default&gt;&lt;/instance_name&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana; font-size: 85%;"&gt;&lt;instance_name&gt;&lt;non-default directory=""&gt;&lt;instance_name&gt;&lt;directory name=""&gt;&lt;instance_name&gt;&lt;br /&gt;&lt;/instance_name&gt;&lt;/directory&gt;&lt;/instance_name&gt;&lt;/non-default&gt;&lt;/instance_name&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana; font-size: 85%;"&gt;&lt;instance_name&gt;&lt;non-default directory=""&gt;&lt;instance_name&gt;&lt;directory name=""&gt;&lt;instance_name&gt;2) Change to "&lt;b&gt;Database Path&lt;/b&gt;" directory returned from the output of previous command. The file will be located under that path&lt;/instance_name&gt;&lt;/directory&gt;&lt;/instance_name&gt;&lt;/non-default&gt;&lt;/instance_name&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana; font-size: 85%;"&gt;&lt;instance_name&gt;&lt;non-default directory=""&gt;&lt;instance_name&gt;&lt;directory name=""&gt;&lt;instance_name&gt; &lt;/instance_name&gt;&lt;/directory&gt;&lt;/instance_name&gt;&lt;/non-default&gt;&lt;/instance_name&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana; font-size: 85%;"&gt;&lt;instance_name&gt;&lt;non-default directory=""&gt;&lt;instance_name&gt;&lt;directory name=""&gt;&lt;instance_name&gt;&lt;br /&gt;&lt;/instance_name&gt;&lt;/directory&gt;&lt;/instance_name&gt;&lt;/non-default&gt;&lt;/instance_name&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana; font-size: 85%;"&gt;&lt;instance_name&gt;&lt;non-default directory=""&gt;&lt;instance_name&gt;&lt;directory name=""&gt;&lt;instance_name&gt;&lt;br /&gt;&lt;/instance_name&gt;&lt;/directory&gt;&lt;/instance_name&gt;&lt;/non-default&gt;&lt;/instance_name&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana; font-size: 85%;"&gt;&lt;instance_name&gt;&lt;non-default directory=""&gt;&lt;instance_name&gt;&lt;directory name=""&gt;&lt;instance_name&gt;&lt;u&gt;&lt;b&gt;Useful Reference&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;/instance_name&gt;&lt;/directory&gt;&lt;/instance_name&gt;&lt;/non-default&gt;&lt;/instance_name&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana; font-size: 85%;"&gt;&lt;instance_name&gt;&lt;non-default directory=""&gt;&lt;instance_name&gt;&lt;directory name=""&gt;&lt;instance_name&gt;&lt;br /&gt;&lt;/instance_name&gt;&lt;/directory&gt;&lt;/instance_name&gt;&lt;/non-default&gt;&lt;/instance_name&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana; font-size: 85%;"&gt;&lt;instance_name&gt;&lt;non-default directory=""&gt;&lt;instance_name&gt;&lt;directory name=""&gt;&lt;instance_name&gt;1)&lt;a href="http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.db2.luw.qb.server.doc/doc/r0024443.html"&gt; DB2 directory Structure on Linux&lt;/a&gt;&lt;/instance_name&gt;&lt;/directory&gt;&lt;/instance_name&gt;&lt;/non-default&gt;&lt;/instance_name&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Verdana; font-size: 85%;"&gt;&lt;instance_name&gt;&lt;non-default directory=""&gt;&lt;instance_name&gt;&lt;directory name=""&gt;&lt;instance_name&gt;2) &lt;a href="http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.db2.luw.admin.dbobj.doc/doc/c0005420.html"&gt;Database directories and files&lt;/a&gt;&lt;br /&gt;&lt;/instance_name&gt;&lt;/directory&gt;&lt;/instance_name&gt;&lt;/non-default&gt;&lt;/instance_name&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana; font-size: 85%;"&gt;&lt;instance_name&gt;&lt;non-default directory=""&gt;&lt;instance_name&gt;&lt;directory name=""&gt;&lt;instance_name&gt;&lt;br /&gt;&lt;/instance_name&gt;&lt;/directory&gt;&lt;/instance_name&gt;&lt;/non-default&gt;&lt;/instance_name&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2277672312650284960-8688716596097716206?l=gilroygonsalves.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2277672312650284960&amp;postID=8688716596097716206' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/8688716596097716206'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/8688716596097716206'/><link rel='alternate' type='text/html' href='http://gilroygonsalves.blogspot.com/2010/06/db2-database-directories.html' title='DB2 Database Directories'/><author><name>Gilroy N. Gonsalves</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://4.bp.blogspot.com/_1y3JEK7a9rA/SwVA9dHzK_I/AAAAAAAABDA/9ilTxBQTEB0/S220/DSC00140.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2277672312650284960.post-5942193999436577772</id><published>2010-06-16T20:35:00.000+01:00</published><updated>2010-06-17T02:03:19.548+01:00</updated><title type='text'>IBM Balanced Warehouse D5100 Upgrade Guide available</title><content type='html'>Finally the IBM Balanced Warehouse D5100 Upgrade Guide for Linux is available. It can be downloaded from&lt;a href="http://www.blogger.com/%20%20http://www-01.ibm.com/support/docview.wss?rs=3354&amp;amp;uid=swg21295194"&gt;&lt;br /&gt;&lt;br /&gt;http://www-01.ibm.com/support/docview.wss?rs=3354&amp;amp;uid=swg21295194&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The upgrade guide explain the complete Balanced Warehouse D5100 stack upgrade.&lt;br /&gt;&lt;br /&gt;While reading the document i skimmed through some of the component that are upgraded.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1) OS from SLES10 SP1 to SLES10 SP2&lt;br /&gt;&lt;br /&gt;2) InfoSphere Warehouse 9.5.2 (9.5.1 refresh) to InfoSphere Warehouse 9.7.1&lt;br /&gt;&lt;br /&gt;3) DB2 is upgraded from DB2 9.5.3b to DB2 9.7.1&lt;br /&gt;&lt;br /&gt;4) NFS v3 to V4&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;It is really great that IBM has released document for Linux first as apposed to AIX.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2277672312650284960-5942193999436577772?l=gilroygonsalves.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2277672312650284960&amp;postID=5942193999436577772' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/5942193999436577772'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/5942193999436577772'/><link rel='alternate' type='text/html' href='http://gilroygonsalves.blogspot.com/2010/06/ibm-balanced-warehouse-d5100-upgrade.html' title='IBM Balanced Warehouse D5100 Upgrade Guide available'/><author><name>Gilroy N. Gonsalves</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://4.bp.blogspot.com/_1y3JEK7a9rA/SwVA9dHzK_I/AAAAAAAABDA/9ilTxBQTEB0/S220/DSC00140.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2277672312650284960.post-1762622864810294682</id><published>2010-05-02T22:03:00.000+01:00</published><updated>2011-08-21T20:39:56.458+01:00</updated><title type='text'>DB2 V9.5 Locking</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;u&gt;&lt;b&gt;Environment&lt;/b&gt;&lt;/u&gt; &lt;br /&gt;&lt;b&gt;Step  1: &amp;nbsp;&amp;nbsp;&lt;/b&gt;Create a sample database using the following command&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;b&gt;db2sampl&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;This will create sample database which  is shifted with DB2 software. It help to learn new concepts of DB2 and  also for testing purpose.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step 2:&amp;nbsp;&lt;/b&gt;Open three command  line which will help us see the transactions&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;&lt;i&gt;Screen 1&lt;/i&gt;&lt;/u&gt;&lt;/b&gt;:&lt;br /&gt;This  screen is used by user A.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;u&gt;&lt;b&gt;Screen 2:&amp;nbsp;&lt;/b&gt;&lt;/u&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;u&gt;&lt;b&gt;&lt;/b&gt;&lt;/u&gt;&lt;/i&gt;This  screeen is used by user B.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;u&gt;&lt;b&gt;Screen 3:&lt;/b&gt;&lt;/u&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;u&gt;&lt;b&gt;&lt;/b&gt;&lt;/u&gt;&lt;/i&gt;This  screen is used to monitor how the transaction work. Here we will use  the "db2pd" command to see the lock on the tables&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step 3:&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;&lt;table border="1" bordercolor="#000000" cellpadding="3" cellspacing="0" id="lt45"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;" width="33.333333333333336%"&gt;Screen 1 (Txn 01) &lt;/td&gt;&lt;td style="text-align: center;" width="33.333333333333336%"&gt;Screen 2 (Txn  02) &lt;/td&gt;&lt;td style="text-align: center;" width="33.333333333333336%"&gt;Screen 3 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="33.333333333333336%"&gt;db2 &lt;b&gt;connect to sample user usera using  usera&lt;/b&gt; &lt;/td&gt;&lt;td width="33.333333333333336%"&gt;db2 &lt;b&gt;connect to  sample user userb using userb&lt;/b&gt; &lt;/td&gt;&lt;td width="33.333333333333336%"&gt;db2 &lt;b&gt;connect to sample&lt;/b&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="33.333333333333336%"&gt;db2 &lt;b&gt;+c&lt;/b&gt;  &lt;b&gt;update employee set  salary = salary * 0.1&lt;/b&gt; &lt;/td&gt;&lt;td width="33.333333333333336%"&gt;db2 &lt;b&gt;+c  update employe set bonus = salary * 0.1 where job = 'MANAGER'&lt;/b&gt; &lt;/td&gt;&lt;td width="33.333333333333336%"&gt;db2 "select *from employee" &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step  4:&lt;/b&gt; &lt;br /&gt;After performing the TXN given in Step 3, we can see that Screen 2 TXN will  pause because DB2 has held the lock on all row because of the  transaction done on Screen 1. This gives us the good chance in learning  the DB2 Locks. Now in order to learn more about DB2 LOCK we will be  using Screen 3 for monitoring the locks. &lt;br /&gt;&lt;br /&gt;Perform the following  operation &lt;br /&gt;&lt;table border="1" bordercolor="#000000" cellpadding="3" cellspacing="0" id="g_j9"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;" width="50%"&gt;&lt;b&gt;Single Partition &lt;br /&gt;&lt;/b&gt;&lt;/td&gt;&lt;td style="text-align: center;" width="50%"&gt;&lt;b&gt;Multiple Partition &lt;br /&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="50%"&gt;db2pd -d sample -locks wait showlocks &lt;/td&gt;&lt;td width="50%"&gt;db2pd -d alldbs -locks wait showlocks &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="50%"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td width="50%"&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;Output&lt;/b&gt;&lt;/u&gt; &lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_1y3JEK7a9rA/S93sGvrofdI/AAAAAAAABwc/snXU4kk7d00/s1600/SS-2010-04-29_12.11.56.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_1y3JEK7a9rA/S93sGvrofdI/AAAAAAAABwc/snXU4kk7d00/s1600/SS-2010-04-29_12.11.56.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;/div&gt;&lt;div id="kims" style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;In this TranHdl = 2 is performed  by Txn  01 and TranHdl = 9 is performed by Txn 02.  Txn02 [TranHdl = 9] in our  case is in LOCK WAITING state. &lt;br /&gt;&lt;br /&gt;&lt;u style="color: red;"&gt;&lt;b&gt;What  is Extracted&lt;/b&gt;&lt;/u&gt; &lt;br /&gt;&lt;br /&gt;&lt;table border="1" bordercolor="#000000" cellpadding="3" cellspacing="0" id="lhja"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="background-color: #cccccc; text-align: center;" width="33.333333333333336%"&gt;&lt;b&gt;Parameter &lt;br /&gt;&lt;/b&gt;&lt;/td&gt;&lt;td style="background-color: #cccccc; text-align: center;" width="33.333333333333336%"&gt;&lt;b&gt;TXN 01 &lt;br /&gt;&lt;/b&gt;&lt;/td&gt;&lt;td style="background-color: #cccccc; text-align: center;" width="33.333333333333336%"&gt;&lt;b&gt;TXN 02 &lt;br /&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="33.333333333333336%"&gt;&lt;span style="color: lime;"&gt;TranHdl&lt;/span&gt; &lt;/td&gt;&lt;td width="33.333333333333336%"&gt;2 &lt;/td&gt;&lt;td width="33.333333333333336%"&gt;9 &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step  5:&lt;/b&gt; &lt;br /&gt;Now Txn 01 has updated all the records from employee table we  can see the details of it using the following command. It shows all the  records that are updated as part of Txn01. &lt;br /&gt;&lt;b&gt; &lt;br /&gt;&lt;span style="color: blue;"&gt;db2pd -d sample -locks 2    &lt;/span&gt;&lt;/b&gt;   -- Here 2 is the value taken from Step 4 &lt;b&gt;TranHdl&lt;/b&gt; column. &lt;br /&gt;&lt;br /&gt;&lt;div id="wmab" style="text-align: center;"&gt;&lt;div style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img src="http://docs.google.com/File?id=dgshtczp_371fqfqbthq_b" /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt; &lt;br /&gt;&lt;span style="color: blue;"&gt;db2pd -d sample -locks 9&lt;/span&gt;&lt;/b&gt;      --  Here 9 is the value taken from Step 4 &lt;b&gt;TranHdl&lt;/b&gt; column. &lt;br /&gt;&lt;br /&gt;&lt;div id="khzw" style="text-align: left;"&gt;&lt;div style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img src="http://docs.google.com/File?id=dgshtczp_372d46jcxgh_b" /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;When Txn02 try to update the record, DB2  block the DML operation and block the transaction resulting into LOCK  WAIT problem. We can see what transaction is trying to update usnig the  following command. Here it want to update a set of ROW. When it trys to  aquire the LOCK for first row to update, it fails and goes in LOCK  WAITING state as show in row 2 in above screen shot. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;Step  6:&lt;/b&gt;&lt;/u&gt; &lt;br /&gt;To get the list of all transaction running in the system  execute the below command. The screen shot is truncated. Therefore i  have split it into two screen shot. Hereafter if the image is followed  one after another without any text, its a continuation of the previous  screen. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;db2pd -sample  -transactions&lt;/span&gt;&lt;/b&gt;&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;div id="rg-n" style="text-align: center;"&gt;&lt;div style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img src="http://docs.google.com/File?id=dgshtczp_373dt2n5mg3_b" /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id="v_y5" style="text-align: center;"&gt;&lt;div style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img src="http://docs.google.com/File?id=dgshtczp_374cx5689hs_b" /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;We have got all the transaction  executing in the DB2 Server. Now our concern is only with the lock  waiting transaction that was identified in Step 4. In our case it was  TranHdl (2 and 9). In order to pull the details of specific transaction  we execute the command &lt;br /&gt;&lt;br /&gt;&lt;b style="color: blue;"&gt;db2pd  -sample -transactions 2&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;&lt;div id="idf:" style="text-align: center;"&gt;&lt;div style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img src="http://docs.google.com/File?id=dgshtczp_377fmf64cgz_b" /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div id="u8cf" style="text-align: center;"&gt;&lt;div style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img src="http://docs.google.com/File?id=dgshtczp_378dkdsj7f3_b" /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;From the above screen shot very  important information can be extracted. &lt;br /&gt;1) &lt;b&gt;Firstlsn and Lastlsn &lt;/b&gt;can  be used to identified how many log files it spanned. Using the column  value we can also find which log file it belong to using the &lt;b&gt;db2flsn  &lt;lsn&gt;. &lt;br /&gt;&lt;/lsn&gt;&lt;/b&gt;2) You can Txn &lt;b&gt;State&lt;/b&gt; which help us to  understand what operation the Txn was doing. &lt;br /&gt;3) &lt;b&gt;TID &lt;/b&gt;provides  the transaction ID which can be used to find more information about the  transactions. &lt;br /&gt;4) We can also find the application that is executing  the transaction using the value in the &lt;b&gt;AppHandl&lt;/b&gt; column value. In  our case the Application 77&lt;b&gt; (AppHandl=77) &lt;/b&gt;is permforming the Txn. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style="color: blue;"&gt;db2pd -sample -transactions 9 &lt;br /&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;div id="bpsv" style="text-align: center;"&gt;&lt;div style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img src="http://docs.google.com/File?id=dgshtczp_379v6s3gjhb_b" /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div id="g1_y" style="text-align: center;"&gt;&lt;div style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img src="http://docs.google.com/File?id=dgshtczp_380g6g5kkc2_b" /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;In the above screen, we can see that  there is no LOG space used by this transaction as the transaction is in  LOCK WAITING state. Application 90 (&lt;b&gt;AppHandl=90&lt;/b&gt;) is performing  the Txn 02. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;u style="color: red;"&gt;&lt;b&gt;What is  extracted&lt;/b&gt;&lt;/u&gt; &lt;br /&gt;&lt;br /&gt;&lt;table border="1" bordercolor="#000000" cellpadding="3" cellspacing="0" id="hy-3"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="background-color: #cccccc; text-align: center;" width="33.333333333333336%"&gt;&lt;b&gt;Parameter &lt;br /&gt;&lt;/b&gt;&lt;/td&gt;&lt;td style="background-color: #cccccc; text-align: center;" width="33.333333333333336%"&gt;&lt;b&gt;TXN 01 &lt;br /&gt;&lt;/b&gt;&lt;/td&gt;&lt;td style="background-color: #cccccc; text-align: center;" width="33.333333333333336%"&gt;&lt;b&gt;TXN 02 &lt;br /&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="33.333333333333336%"&gt;TranHdl &lt;/td&gt;&lt;td width="33.333333333333336%"&gt;2 &lt;/td&gt;&lt;td width="33.333333333333336%"&gt;9 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;&lt;span style="color: lime;"&gt;AppHandl&lt;/span&gt; &lt;/td&gt;&lt;td valign="top"&gt;77 &lt;/td&gt;&lt;td valign="top"&gt;90 &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;From  this we can conclude that Application 77&lt;b&gt; (AppHandl = 77) &lt;/b&gt;is  holding LOCK on which Application 90 &lt;b&gt;(AppHandl = 90)&lt;/b&gt; is waiting. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;Step  7:&lt;/b&gt;&lt;/u&gt; &lt;br /&gt;&lt;br /&gt;After getting the &lt;b&gt;Transaction Details &lt;/b&gt;and &lt;b&gt;Application  Details&lt;/b&gt;, our next task would be to find the details about the  application. There are three way to find the detials about the  application. &lt;br /&gt;&lt;br /&gt;1) &lt;b&gt;&lt;span style="color: blue;"&gt;db2 list application  show detail&lt;/span&gt;&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;&lt;div id="xeg4" style="text-align: center;"&gt;&lt;div style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img src="http://docs.google.com/File?id=dgshtczp_384g2v9b3js_b" /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div id="fsvs" style="text-align: center;"&gt;&lt;div style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img src="http://docs.google.com/File?id=dgshtczp_385tmvc6bdz_b" /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img src="http://docs.google.com/File?id=dgshtczp_387ppqnck_b" /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div id="dd5y" style="text-align: left;"&gt;&lt;/div&gt;&lt;br /&gt;In the column &lt;b&gt;Status&lt;/b&gt; shows the Txn state.  In this Application 77 (Txn 01) is in &lt;b&gt;UOW Waiting&lt;/b&gt; which mean it  waiting for application to any more transaction i.e it is right now idle  and the application is not performing any operation on database. &lt;br /&gt;Application  90 (Txn 02) show &lt;b&gt;Lock-wait&lt;/b&gt; status which mean it is Waiting for  Lock to be released by other transaction. &lt;br /&gt;&lt;br /&gt;2) &lt;b style="color: blue;"&gt;db2pd -agents app=77&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;&lt;div id="p0u9" style="text-align: center;"&gt;&lt;img src="http://docs.google.com/File?id=dgshtczp_388cpz84pg2_b" /&gt;&lt;/div&gt;&lt;br /&gt;In the above screen, &lt;b&gt;ClientPid&lt;/b&gt;  column show the value where the command is executed. It does not  represent the user and/or application executing the transaction. &lt;br /&gt;&lt;br /&gt;&lt;b style="color: blue;"&gt;db2pd -agents app=90&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;&lt;div id="murk" style="text-align: center;"&gt;&lt;img src="http://docs.google.com/File?id=dgshtczp_389ctx2pmdx_b" /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;3) &lt;b style="color: blue;"&gt;db2pd  -applications agent=8416 -db sample&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;&lt;div id="zhl5" style="text-align: center;"&gt;&lt;img src="http://docs.google.com/File?id=dgshtczp_390f4mvhrcz_b" /&gt;&lt;/div&gt;&lt;br /&gt;In this the value provided with &lt;b&gt;agent &lt;/b&gt;clause  is the Co-Ordinator agent ID which can be used to find more details  about the application. It can be extracted from &lt;b&gt;Method 1 or Method 2&lt;/b&gt;  described above. &lt;br /&gt;&lt;br /&gt;&lt;b style="color: blue;"&gt;db2pd  -applications agent=8416 -db sample&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;&lt;div id="rah2" style="text-align: center;"&gt;&lt;img src="http://docs.google.com/File?id=dgshtczp_391crb7xdhn_b" /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;From the above two output it can be  seen that &lt;b&gt;SystemAuthID&lt;/b&gt; show the actual user name executing the  transaction. &lt;br /&gt;&lt;b&gt;C-AnchID &lt;/b&gt;mean the current executing SQL  statement &lt;b&gt;C=Current&lt;/b&gt; &lt;br /&gt;&lt;b&gt;L-AnchID&lt;/b&gt; mean the  last SQL  statement that was executed &lt;b&gt;L=Last&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;u style="color: red;"&gt;&lt;b&gt;What is extracted&lt;/b&gt;&lt;/u&gt; &lt;br /&gt;&lt;br /&gt;&lt;table border="1" bordercolor="#000000" cellpadding="3" cellspacing="0" id="q1hn"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="background-color: #cccccc; text-align: center;" width="33.333333333333336%"&gt;&lt;b&gt;Parameter &lt;br /&gt;&lt;/b&gt;&lt;/td&gt;&lt;td style="background-color: #cccccc; text-align: center;" width="33.333333333333336%"&gt;&lt;b&gt;TXN 01 &lt;br /&gt;&lt;/b&gt;&lt;/td&gt;&lt;td style="background-color: #cccccc; text-align: center;" width="33.333333333333336%"&gt;&lt;b&gt;TXN 02 &lt;br /&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="33.333333333333336%"&gt;TranHdl &lt;/td&gt;&lt;td width="33.333333333333336%"&gt;2 &lt;/td&gt;&lt;td width="33.333333333333336%"&gt;9 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;AppHandl &lt;/td&gt;&lt;td valign="top"&gt;77 &lt;/td&gt;&lt;td valign="top"&gt;90 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="color: lime;" valign="top"&gt;SystemAuthID &lt;/td&gt;&lt;td valign="top"&gt;DB2ADMIN &lt;/td&gt;&lt;td valign="top"&gt;GGONSALVES &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="color: lime;" valign="top"&gt;EDUID &lt;/td&gt;&lt;td valign="top"&gt;8416 &lt;/td&gt;&lt;td valign="top"&gt;11760 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="color: lime;" valign="top"&gt;C-AnchID &lt;/td&gt;&lt;td valign="top"&gt;0 &lt;/td&gt;&lt;td valign="top"&gt;268 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="color: lime;" valign="top"&gt;L-AnchID &lt;/td&gt;&lt;td valign="top"&gt;36 &lt;/td&gt;&lt;td valign="top"&gt;268 &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;Step 8:&lt;/b&gt;&lt;/u&gt; &lt;br /&gt;&lt;br /&gt;Next  find the statement executed by the applications. This will help us to  find what are SQL query executed against the DB by each of this  application. This SQL executed are extracted using the &lt;b&gt;C-AnchID and  L-AnchID &lt;/b&gt;collected from step 7. &lt;br /&gt;&lt;br /&gt;&lt;b style="color: blue;"&gt;db2pd -db sample -dynamic anch=36&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;&lt;div id="y8b3" style="text-align: center;"&gt;&lt;img src="http://docs.google.com/File?id=dgshtczp_392d7wp98d4_b" /&gt;&lt;/div&gt;&lt;br /&gt;In this we got the statement executed by  the Txn 01 i.e Application 77. It show the all rows in the &lt;b&gt;EMPLOYEE&lt;/b&gt;  table is updated. The Statement executed was &lt;br /&gt;&lt;b style="color: #ff9900;"&gt;"UPDATE employee SET salary = salary * 1.02"&lt;/b&gt;. &lt;br /&gt;&lt;br /&gt;&lt;b style="color: blue;"&gt;db2pd -db sample -dynamic anch=268&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;&lt;div id="hwif" style="text-align: center;"&gt;&lt;img src="http://docs.google.com/File?id=dgshtczp_393ggkvhdd7_b" /&gt;&lt;/div&gt;&lt;br /&gt;The Statement executed by Txn 02 i.e  Application 90 is &lt;br /&gt;&lt;b style="color: #ff9900;"&gt;"UPDATE  employee SET bonus = salary * 0.1 WHERE job = 'MANAGER'"&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;From  the ouput of Application 90, we can see that the application is waiting  on Lock to be released. The "&lt;b&gt;Dynamic SQL Environments&lt;/b&gt;" shows the  Isolation Level of the statement that is executed. The "&lt;b&gt;Dynamic SQL  Variations&lt;/b&gt;" show the Lock on which the application is waiting. &lt;br /&gt;&lt;br /&gt;&lt;u style="color: red;"&gt;&lt;b&gt;What is extracted&lt;/b&gt;&lt;/u&gt; &lt;br /&gt;&lt;br /&gt;&lt;table border="1" bordercolor="#000000" cellpadding="3" cellspacing="0" id="e7-v"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="background-color: #cccccc; text-align: center;" width="33.333333333333336%"&gt;&lt;b&gt;Parameter &lt;br /&gt;&lt;/b&gt;&lt;/td&gt;&lt;td style="background-color: #cccccc; text-align: center;" width="33.333333333333336%"&gt;&lt;b&gt;TXN 01 &lt;br /&gt;&lt;/b&gt;&lt;/td&gt;&lt;td style="background-color: #cccccc; text-align: center;" width="33.333333333333336%"&gt;&lt;b&gt;TXN 02 &lt;br /&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="33.333333333333336%"&gt;TranHdl &lt;/td&gt;&lt;td width="33.333333333333336%"&gt;2 &lt;/td&gt;&lt;td width="33.333333333333336%"&gt;9 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;AppHandl &lt;/td&gt;&lt;td valign="top"&gt;77 &lt;/td&gt;&lt;td valign="top"&gt;90 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="color: black;" valign="top"&gt;SystemAuthID &lt;/td&gt;&lt;td valign="top"&gt;DB2ADMIN &lt;/td&gt;&lt;td valign="top"&gt;GGONSALVES &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="color: black;" valign="top"&gt;EDUID &lt;/td&gt;&lt;td valign="top"&gt;8416 &lt;/td&gt;&lt;td valign="top"&gt;11760 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="color: black;" valign="top"&gt;C-AnchID &lt;/td&gt;&lt;td valign="top"&gt;0 &lt;/td&gt;&lt;td valign="top"&gt;268 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="color: black;" valign="top"&gt;L-AnchID &lt;/td&gt;&lt;td valign="top"&gt;36 &lt;/td&gt;&lt;td valign="top"&gt;268 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;&lt;span style="color: lime;"&gt;Text  (SQL Statement)&lt;/span&gt; &lt;/td&gt;&lt;td valign="top"&gt;&lt;b style="color: #ff9900;"&gt;UPDATE employee SET salary = salary * 1.02&lt;/b&gt;xn &lt;/td&gt;&lt;td valign="top"&gt;&lt;b style="color: #ff9900;"&gt;UPDATE employee SET  bonus = salary * 0.1 WHERE job = 'MANAGER'&lt;/b&gt; &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;Step  9:&lt;/b&gt;&lt;/u&gt; &lt;br /&gt;&lt;br /&gt;From the above operation, it can be summarized that  the EMPLOYEE table is been accessed by Txn 01 and Txn 02 and each of  this transaction had requested the exclusive lock on the row in this  table. But since the Txn 01 was first to execute it got the &lt;b&gt;Exclusive&lt;/b&gt;  lock on the rows but it did not commit. Because the Txn 01 is not  commited, Txn 02 request for exclusive lock on some rows was halted and  Txn 02 goes in &lt;b&gt;LOCK-WAITING&lt;/b&gt; state. &lt;br /&gt;&lt;br /&gt;Two option can be used  to resolve from this LOCK-WAITING state &lt;br /&gt;1) LOCKTIMEOUT =&amp;gt; This DB  CFG parameter is defaulted to -1 which mean the application have to wait  indefinately until the lock which it is requesting is released. In  order to wait indefinately for a LOCK, it can be set to value other than  -1. The value specified is the time after which the waiting transaction  must rollback itself. It is given in seconds. &lt;br /&gt;&lt;br /&gt;2) Execute the  COMMIT operation which will allow the transaction to release the LOCK so  that other Transaction can continue to operate. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;Step  10:&lt;/b&gt;&lt;/u&gt; &lt;br /&gt;&lt;br /&gt;In order to perform the above step in finding the  LOCK details, the approach is to specific all the caluse in db2pd  command. It will show different section for each of the caluse. The  command is &lt;br /&gt;&lt;br /&gt;&lt;b style="color: blue;"&gt;db2pd -db sample  -locks wait show locks -transactions -agents -applications -dynamic&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;The  output of the above command will give details of all the "Transactions"  , "Agents", "applications" and all "dynamic" statements. In order to  cut shot the output following step can be carried out &lt;br /&gt;1) Find the  Transaction handle that are part of LOCK WAITING. We get &lt;b&gt;Transaction  Handle&lt;/b&gt; &lt;br /&gt;&lt;b style="color: blue;"&gt;db2pd -db sample  -locks wait show locks&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;2) Find the application executing  transaction. We get &lt;b&gt;Application Handle&lt;/b&gt; &lt;br /&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;db2pd -db sample -transactions &lt;tranhdl&gt;&lt;/tranhdl&gt;&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;/b&gt;3)  Find the EDU ID for application that is executing. We get &lt;b&gt;EDUID&lt;/b&gt; &lt;br /&gt;&lt;b style="color: blue;"&gt;   db2pd -db sample -agents app=&amp;lt;&lt;/b&gt;&lt;b style="color: blue;"&gt;Apphdl&amp;gt;&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;4) Find the  L(Last) and C(Current) anchor ID for each application. We get &lt;b&gt;C-AnchID&lt;/b&gt;  and &lt;b&gt;L-AnchID&lt;/b&gt; &lt;br /&gt;&lt;b style="color: blue;"&gt;   db2pd -db  sample -applications agent=&lt;agenteduid&gt;&lt;/agenteduid&gt;&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;5) Finally  execute the command to get all the detail in one output &lt;br /&gt;&lt;b style="color: red;"&gt;   db2pd -db sample -locks wait showlocks  -transactions &lt;/b&gt;&lt;b style="color: red;"&gt;"TranHdl"&lt;/b&gt;&lt;b style="color: red;"&gt; &lt;tranhdl&gt; -agents app="&lt;/tranhdl&gt;&lt;/b&gt;&lt;b style="color: red;"&gt;applhdl"&lt;/b&gt;&lt;b style="color: red;"&gt;&lt;tranhdl&gt;&lt;applhdl&gt; -applications  agent="&lt;/applhdl&gt;&lt;/tranhdl&gt;&lt;/b&gt;&lt;b style="color: red;"&gt;AgentEDUID"&lt;/b&gt;&lt;b style="color: red;"&gt;&lt;tranhdl&gt;&lt;applhdl&gt;&lt;agenteduid&gt; -dynamic anch="&lt;/agenteduid&gt;&lt;/applhdl&gt;&lt;/tranhdl&gt;&lt;/b&gt;&lt;b style="color: red;"&gt;C-AnchID ==OR== L-AnchID"&lt;/b&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2277672312650284960-1762622864810294682?l=gilroygonsalves.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2277672312650284960&amp;postID=1762622864810294682' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/1762622864810294682'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/1762622864810294682'/><link rel='alternate' type='text/html' href='http://gilroygonsalves.blogspot.com/2010/05/db2-v95-locking.html' title='DB2 V9.5 Locking'/><author><name>Gilroy N. Gonsalves</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://4.bp.blogspot.com/_1y3JEK7a9rA/SwVA9dHzK_I/AAAAAAAABDA/9ilTxBQTEB0/S220/DSC00140.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_1y3JEK7a9rA/S93sGvrofdI/AAAAAAAABwc/snXU4kk7d00/s72-c/SS-2010-04-29_12.11.56.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2277672312650284960.post-1339565957382785179</id><published>2009-11-19T13:26:00.000Z</published><updated>2009-11-19T14:29:32.315Z</updated><title type='text'>Grid and Cloud Computing</title><content type='html'>&lt;span style="font-family:arial;color:#000000;"&gt;Today, at every conference their is atleast one talk about the recent cloud computing. Companies present their products that runs on Cloud, other companies presented their own Cloud architecture.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;color:#000000;"&gt;Some of the popular cloud service provider are&lt;/span&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-family:arial;color:#000000;"&gt;Amazon&lt;/span&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;span style="font-family:arial;color:#000000;"&gt;Microsoft&lt;/span&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;span style="font-family:arial;color:#000000;"&gt;Google&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;span style="font-family:arial;color:#000000;"&gt;This week Microsoft offered it cloud service named "Windows Azure" at it PDC which would be released in January 2010 and in Feburary 2010 will be full flede available to customers. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;color:#000000;"&gt;There is also a buzz about Grid computing and how it differs from cloud computing. As understood, &lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:arial;color:#000000;"&gt;Grid computing is pooling the available resource and forming a group of loosely couple resources. &lt;/span&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;span style="font-family:arial;color:#000000;"&gt;Cloud computing is also a pool of resources which is provided to the user for achieving their task.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-family:arial;color:#000000;"&gt;However, both of this computing technique differ in the way it service its users. In grid computing, a single grid consist of set of nodes inter-connected to each other in loosely coupled fashion. User submits the task to the gird which break the task into sub-tasks and execute it on individual nodes in grid. After the computation is over, the result is returned back to the user. It can be called as Parallel Job processing technique.&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-family:arial;color:#000000;"&gt;In cloud computing user submit the job to the cloud. The cloud is formed with set of loosely coupled servers. But, unlike Grid computing, the task submitted by user to the cloud is executed on single server. This means, set of tasks submitted by different users are computed on any one of the server in the cloud. &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:arial;color:#000000;"&gt;The GRID and CLOUD computing also are called as "UTILITY Computing".&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-family:arial;color:#000000;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-family:arial;color:#000000;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-family:arial;color:#000000;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2277672312650284960-1339565957382785179?l=gilroygonsalves.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2277672312650284960&amp;postID=1339565957382785179' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/1339565957382785179'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/1339565957382785179'/><link rel='alternate' type='text/html' href='http://gilroygonsalves.blogspot.com/2009/11/grid-and-cloud-computing.html' title='Grid and Cloud Computing'/><author><name>Gilroy N. Gonsalves</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://4.bp.blogspot.com/_1y3JEK7a9rA/SwVA9dHzK_I/AAAAAAAABDA/9ilTxBQTEB0/S220/DSC00140.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2277672312650284960.post-2860353674294819142</id><published>2009-09-25T01:08:00.000+01:00</published><updated>2009-11-19T14:32:08.038Z</updated><title type='text'>VMWare + CentOS 4.8 Linux + Oracle RAC 10g</title><content type='html'>&lt;b&gt;Aim: &lt;/b&gt;To install oracle Database 10g Real Application Cluster on CentOS 4.8 Linux using VMWare&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;b&gt;Execution:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;Step 1: &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="WHITE-SPACE: pre"&gt;&lt;/span&gt;Download and install&lt;i&gt;"VMWare Server 2" &lt;/i&gt;from &lt;a href="http://www.vmware.com/products/server/"&gt;http://www.vmware.com/products/server/&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;Step 2:&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="WHITE-SPACE: pre"&gt;&lt;/span&gt;Download ISO image of 32-bit CentOS 4.8 Linux OS from &lt;a href="http://isoredirect.centos.org/centos/4/isos/i386/"&gt;http://isoredirect.centos.org/centos/4/isos/i386/&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;Step 3:&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="WHITE-SPACE: pre"&gt;&lt;/span&gt;Download "&lt;i&gt;Virtual DAEMON Tool"&lt;/i&gt; to mount the ISO images&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://isoredirect.centos.org/centos/4/isos/i386/"&gt;&lt;/a&gt;Step 3: &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="WHITE-SPACE: pre"&gt;&lt;/span&gt;Create Virtual Machine on VMWare Server&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="WHITE-SPACE: pre"&gt;&lt;/span&gt;a) Login to VMWare Web Console to create new VIrtual Machine.&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="WHITE-SPACE: pre"&gt;&lt;/span&gt;b) Virtual Machine Details&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;Name:&lt;span class="Apple-tab-span" style="WHITE-SPACE: pre"&gt; &lt;/span&gt;RAC1&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Operating System : &lt;i&gt;Linux Operating System =&gt; Red Hat Enterprise Linux 4 (32-Bit)&lt;/i&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;i&gt;Physical Memory: 1024MB&lt;/i&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;i&gt;Hard Disk: 10 GB&lt;/i&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;div&gt;&lt;i&gt;&lt;span class="Apple-tab-span" style="WHITE-SPACE: pre"&gt;&lt;/span&gt;DISK Mode : Independent =&gt; Persistent&lt;/i&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;&lt;i&gt;Network Adapter : Bridged&lt;/i&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;i&gt;Physical Drive : Associate to Virtual drive that mount the ISO images&lt;/i&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;i&gt;Do Not install Floppy Drives&lt;/i&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;i&gt;Add USB Controller&lt;/i&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;i&gt;Create Virtual Machines&lt;/i&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;div&gt;&lt;i&gt;Step 4: &lt;/i&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;i&gt;&lt;span class="Apple-tab-span" style="WHITE-SPACE: pre"&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="FONT-STYLE: normal"&gt;Install the CentOS 4.8 Linux by powering ON the virtual machine&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;Step 5: &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="WHITE-SPACE: pre"&gt;&lt;/span&gt;Configure Linux for Oracle RAC using details given on following URL &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://www.oracle-base.com/articles/10g/OracleDB10gR2RACInstallationOnCentos4UsingVMware.php"&gt;http://www.oracle-base.com/articles/10g/OracleDB10gR2RACInstallationOnCentos4UsingVMware.php&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;Step 6:&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="WHITE-SPACE: pre"&gt;&lt;/span&gt;Install Oracle Clusterware&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;Step 7:&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="WHITE-SPACE: pre"&gt;&lt;/span&gt;Install Oracle Database&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;Step 8:&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="WHITE-SPACE: pre"&gt;&lt;/span&gt;Create Database&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="WHITE-SPACE: pre"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="WHITE-SPACE: pre"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2277672312650284960-2860353674294819142?l=gilroygonsalves.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2277672312650284960&amp;postID=2860353674294819142' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/2860353674294819142'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2277672312650284960/posts/default/2860353674294819142'/><link rel='alternate' type='text/html' href='http://gilroygonsalves.blogspot.com/2009/09/vmware-centos-48-linux-oracle-rac-10g.html' title='VMWare + CentOS 4.8 Linux + Oracle RAC 10g'/><author><name>Gilroy N. Gonsalves</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://4.bp.blogspot.com/_1y3JEK7a9rA/SwVA9dHzK_I/AAAAAAAABDA/9ilTxBQTEB0/S220/DSC00140.JPG'/></author><thr:total>0</thr:total></entry></feed>
