﻿<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Jim Wankowski</title>
    <description>Providing Toad “Tips and Tricks” and other useful information for administration and development on DB2 whether you are running on Linux, Unix, Windows, or z/OS.</description>
    <link>http://www.toadworld.com/Community/QuestExpertsBlogs/tabid/67/BlogId/19/Default.aspx</link>
    <language>en-US</language>
    <webMaster>webmaster@toadworld.com</webMaster>
    <pubDate>Fri, 25 Jul 2008 07:11:25 GMT</pubDate>
    <lastBuildDate>Fri, 25 Jul 2008 07:11:25 GMT</lastBuildDate>
    <docs>http://backend.userland.com/rss</docs>
    <generator>Blog RSS Generator Version 3.2.0.15477</generator>
    <item>
      <title>DB2 LUW Autonomics</title>
      <description>&lt;div&gt;Last week I did an IDUG sponsored webcast on the topic of autonomic computing. I wil be excerpting these features over the next few blogs. If you wish to view a recording of the webcast here is the link:  &lt;a href="http://www.quest.com/events/listdetails.aspx?contentid=7611&amp;technology=&amp;prod=&amp;prodfamily=&amp;loc="&gt;&lt;span&gt;http://www.quest.com/events/listdetails.aspx?contentid=7611&amp;technology=&amp;prod=&amp;prodfamily=&amp;loc&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;&lt;strong&gt;&lt;span&gt;The beginnings of autonomics&lt;br /&gt;
 &lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;In early releases of DB2 LUW the database and instance configurations were more or less static. In order to make a change the instance or database had to be taken offline for any changes to be made. The move towards an automated tuning process began in V8 where you could start to dynamically change parameters without having to shut down the database. There were quite a few limitations at this stage however.&lt;br /&gt;
 &lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;&lt;span&gt;Self Tuning Memory Manager- STMM&lt;br /&gt;
 &lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;With DB2 LUW V9.1, IBM introduced the concept of automated self tuning memory. The feature simplifies the task of managing package cache, sort heap, buffer pools, and locklists. The amount of memory allocated to these areas is constrained by the maximum memory allocated to the database shared memory. This parameter can be left on or once a typical workload has been set the values can be frozen by turning off the automatic parameter. Generally running the auto tune for a few hours under typical workloads will produce optimal tuning parameters.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;There are limitations to using self tuning memory. &lt;/div&gt;
&lt;ul&gt;
    &lt;li&gt;Good Candidates for STMM
    &lt;ul&gt;
        &lt;li&gt;Box has lots of free memory &lt;/li&gt;
        &lt;li&gt;Workload changes throughout the day &lt;/li&gt;
        &lt;li&gt;Inexperienced DBAs &lt;/li&gt;
        &lt;li&gt;Multiple bufferpools &lt;br /&gt;
          &lt;/li&gt;
    &lt;/ul&gt;
    &lt;/li&gt;
    &lt;li&gt;Poor Candidates for STMM
    &lt;ul&gt;
        &lt;li&gt;Databases with constrained memory
        &lt;ul&gt;
            &lt;li&gt;Heavily used server &lt;/li&gt;
            &lt;li&gt;&lt;em&gt;Database_memory&lt;/em&gt; set low &lt;/li&gt;
        &lt;/ul&gt;
        &lt;/li&gt;
        &lt;li&gt;Volatile workloads
        &lt;ul&gt;
            &lt;li&gt;Constantly changing workloads cannot be tuned effectively &lt;/li&gt;
        &lt;/ul&gt;
        &lt;/li&gt;
        &lt;li&gt;Static workload throughout the day &lt;/li&gt;
    &lt;/ul&gt;
    &lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;The level of automation is continuing to evolve. In v9.5 you can now automate at the instance level, database heap, and new application memory. By specifying the &lt;em&gt;database_memory&lt;/em&gt; parameter as AUTOMATIC, DB2 will also dynamically adjust the shared memory based on database workload. If you need to view what the current memory allocations are you can use a snapshot or the GET DATABASE CONFIGURATION command. All memory changes are recorded in memory tuning files which can be found in the STMMLOG directory:&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;img height="388" alt="" width="750" src="http://www.toadworld.com/Portals/0/blogimages/JimWblog06302008-1.gif" /&gt; &lt;/div&gt;
&lt;div&gt;&lt;em&gt;STMM Log&lt;/em&gt;&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Next time, I will be covering the new automatic storage features introduced into DB2 LUW. &lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt; &lt;/div&gt;</description>
      <link>http://www.toadworld.com/Community/QuestExpertsBlogs/tabid/67/EntryID/243/Default.aspx</link>
      <comments>http://www.toadworld.com/Community/QuestExpertsBlogs/tabid/67/EntryID/243/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.toadworld.com/Default.aspx?tabid=67&amp;EntryID=243</guid>
      <pubDate>Mon, 30 Jun 2008 13:21:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.toadworld.com/DesktopModules/Blog/Trackback.aspx?id=243</trackback:ping>
    </item>
    <item>
      <title>DB2 Autonomics</title>
      <description>&lt;div&gt;Obtaining optimal performance from your DB2 LUW applications requires that you not only ensure your SQL is written efficiently and is properly tuned, but one must be sure that the DB2 instance itself is properly tuned. Too many people make the mistake of focusing all their efforts on tuning SQL and do not take a look at the big picture. Think of your DB2 installation as an ecosystem, where memory, physical design, and SQL transactions all work in conjunction with each other, and all can have a direct impact on performance. No doubt that proper SQL coding is probably the most critical factor when it comes to performance, but it is very important to understand that the best written SQL statement will not perform properly if there are inadequate memory allocations, or a poor physical database design. Monitoring and tuning a DB2 instance requires time and skill. Many LUW installations may not have the expertise to optimally tune their environments. &lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;One of the unique differentiators between DB2 and other relational databases is IBM’s implementation of the concept of autonomic tuning and self tuning memory and automated maintenance. With these features the database is becoming much more hands off making the database much more reliable and freeing up DBAs time for other tasks.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;This automation is broken up into different categories:&lt;/div&gt;
&lt;ol type="1"&gt;
    &lt;li&gt;&lt;strong&gt;Self Tuning Memory (STMM)&lt;/strong&gt;
    &lt;ul type="circle"&gt;
        &lt;li&gt;Package Cache &lt;/li&gt;
        &lt;li&gt;Buffer Pool &lt;/li&gt;
        &lt;li&gt;Sort Heap &lt;/li&gt;
        &lt;li&gt;Locklist&lt;br /&gt;
          &lt;/li&gt;
    &lt;/ul&gt;
    &lt;/li&gt;
    &lt;li&gt;&lt;strong&gt;Storage Management&lt;/strong&gt;
    &lt;ul type="circle"&gt;
        &lt;li&gt;Automatic tablespace
        &lt;ul type="square"&gt;
            &lt;li&gt;Auto-resize&lt;br /&gt;
              &lt;/li&gt;
        &lt;/ul&gt;
        &lt;/li&gt;
    &lt;/ul&gt;
    &lt;/li&gt;
    &lt;li&gt;&lt;strong&gt;Automate maintenance&lt;/strong&gt;
    &lt;ul type="circle"&gt;
        &lt;li&gt;Reorg &lt;/li&gt;
        &lt;li&gt;Runstats &lt;/li&gt;
        &lt;li&gt;Backup &lt;/li&gt;
    &lt;/ul&gt;
    &lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;Over the course of the next few weeks, I will be discussing each of these different categories in more depth so stay tuned!&lt;/div&gt;</description>
      <link>http://www.toadworld.com/Community/QuestExpertsBlogs/tabid/67/EntryID/226/Default.aspx</link>
      <comments>http://www.toadworld.com/Community/QuestExpertsBlogs/tabid/67/EntryID/226/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.toadworld.com/Default.aspx?tabid=67&amp;EntryID=226</guid>
      <pubDate>Mon, 02 Jun 2008 15:16:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.toadworld.com/DesktopModules/Blog/Trackback.aspx?id=226</trackback:ping>
    </item>
    <item>
      <title>Custom Data Reporting with Toad for DB2</title>
      <description>&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;One of the nicer features within Toad&lt;sup&gt;®&lt;/sup&gt; for DB2 is the wide array of reporting capabilities. There is a constant requirement for managerial level reports that need to be run on a regular basis. Many of these reports are generating using reporting tools like QMF, Crystal Reporting, etc. Toad’s data reporting facility provides an easy method for generating professional report templates which can be saved and reused. I will take you through an example of building a custom data report.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;The first step is to build the desired query. You can do this through the query builder, or SQL editor. In my example I built a simple join of the sample department and employee tables through the query builder option.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" align="center"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;img height="243" alt="" width="400" src="http://www.toadworld.com/Portals/0/blogimages/CustomData01.png" /&gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;Once you are satisfied with your query, right click on the results grid and select:&lt;br /&gt;
&lt;/span&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;“SEND TO/Data Report Designer”.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" align="center"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;img height="254" alt="" width="400" src="http://www.toadworld.com/Portals/0/blogimages/CustomData02.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" align="left"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;This will open up the report design wizard.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" align="center"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;img height="315" alt="" width="400" src="http://www.toadworld.com/Portals/0/blogimages/CustomData03.png" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;Select the desired columns for the report&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" align="center"&gt;&lt;o:p&gt;&lt;img height="313" alt="" width="400" src="http://www.toadworld.com/Portals/0/blogimages/CustomData04.png" /&gt;&lt;/o:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;Select desired grouping&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" align="center"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;img height="312" alt="" width="400" src="http://www.toadworld.com/Portals/0/blogimages/CustomData05.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" align="center"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;img height="311" alt="" width="400" src="http://www.toadworld.com/Portals/0/blogimages/CustomData06.png" /&gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;Select the desired layout&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" align="center"&gt;&lt;o:p&gt;&lt;img height="315" alt="" width="400" src="http://www.toadworld.com/Portals/0/blogimages/CustomData07.png" /&gt;&lt;/o:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;Once all the basic formatting questions have been answered the report designer will then be displayed. The designer allows you to make custom headings, page breaks, column headings, etc.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" align="center"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;img height="243" alt="" width="400" src="http://www.toadworld.com/Portals/0/blogimages/CustomData08.png" /&gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;Once you r formatting is complete, select the preview button to see the finished report:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" align="center"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;o:p&gt;&lt;img height="243" alt="" width="400" src="http://www.toadworld.com/Portals/0/blogimages/CustomData09.png" /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;The report templates can then be saved and put into the project manager for later reference. Toad for DB2 provides a low cost easy to use alternative to other 3&lt;sup&gt;rd&lt;/sup&gt; party report generators.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;</description>
      <link>http://www.toadworld.com/Community/QuestExpertsBlogs/tabid/67/EntryID/163/Default.aspx</link>
      <comments>http://www.toadworld.com/Community/QuestExpertsBlogs/tabid/67/EntryID/163/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.toadworld.com/Default.aspx?tabid=67&amp;EntryID=163</guid>
      <pubDate>Tue, 18 Dec 2007 17:57:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.toadworld.com/DesktopModules/Blog/Trackback.aspx?id=163</trackback:ping>
    </item>
    <item>
      <title>Multi-Location Script Executions</title>
      <description>&lt;p&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;In many cases there is a need to create an object or to execute an SQL statement in multiple locations.&lt;span style="mso-spacerun: yes"&gt; &lt;/span&gt;The group execute option in TOAD for DB2 allows you to execute a script against multiple environments with one easy step.&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;Let’s step through a few use cases.&lt;/span&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;strong style="mso-bidi-font-weight: normal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;Example 1:&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;A new table needs to be added to multiple databases.&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;The first step is to generate the necessary DDL and send it to the editor.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" align="center"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;o:p&gt;&lt;img height="300" alt="" width="400" src="http://www.toadworld.com/Portals/0/blogimages/multilocation01.jpg" /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;The next step is to go to the toolbar and select VIEW/GROUP EXECUTE:&lt;br /&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" align="center"&gt;&lt;img height="292" alt="" width="400" src="http://www.toadworld.com/Portals/0/blogimages/multilocation02.jpg" /&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;The group execute window will open on the bottom of the editor, displaying all your cataloged connections.&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;Select the locations you wish to execute the DDL from and click the execute button.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align="center"&gt;&lt;o:p&gt;&lt;img height="286" alt="" width="400" src="http://www.toadworld.com/Portals/0/blogimages/multilocation03.jpg" /&gt;&lt;/o:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;Status messages will be displayed next to selected targets and script executions can be view on the right.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" align="center"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;img height="276" alt="" width="400" src="http://www.toadworld.com/Portals/0/blogimages/multilocation04.jpg" /&gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;strong style="mso-bidi-font-weight: normal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;Example 2&lt;/span&gt;&lt;/strong&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;: Execute a query against multiple databases and validate that the same results set is being brought back.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;Open the Query in the editor and select the VIEW/GROUP EXECTUE option.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" align="center"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;o:p&gt;&lt;img height="272" alt="" width="400" src="http://www.toadworld.com/Portals/0/blogimages/multilocation05.jpg" /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;Select the desired targets and execute the query.&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;Then right click on the results sets and send them to the Data Diff Viewer.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" align="center"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;img height="229" alt="" width="400" src="http://www.toadworld.com/Portals/0/blogimages/multilocation06.jpg" /&gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;  &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;The Diff Viewer will then validate the results are the same.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" align="center"&gt;&lt;o:p&gt;&lt;img height="267" alt="" width="400" src="http://www.toadworld.com/Portals/0/blogimages/multilocation07.jpg" /&gt;&lt;/o:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;As you can see the “Group Execute” option can be a very useful tool.&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;It is very easy to replicate script executions across multiple environments and even multiple platforms of DB2 concurrently.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;</description>
      <link>http://www.toadworld.com/Community/QuestExpertsBlogs/tabid/67/EntryID/153/Default.aspx</link>
      <comments>http://www.toadworld.com/Community/QuestExpertsBlogs/tabid/67/EntryID/153/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.toadworld.com/Default.aspx?tabid=67&amp;EntryID=153</guid>
      <pubDate>Thu, 22 Nov 2007 03:24:00 GMT</pubDate>
      <slash:comments>1</slash:comments>
      <trackback:ping>http://www.toadworld.com/DesktopModules/Blog/Trackback.aspx?id=153</trackback:ping>
    </item>
    <item>
      <title>TheThree Letter Word</title>
      <description>&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;I just got back from the IBM IOD conference in &lt;st1:city w:st="on"&gt;&lt;st1:place w:st="on"&gt;Las Vegas&lt;/st1:place&gt;&lt;/st1:city&gt;; it was a great show. Every year there is usually some buzz about what is “hot” with DB2. This year’s buzz was heard loud and clear – XML was being discussed just about everywhere. This is definitely the driving focus for the latest release of DB2 running on both LUW and z/OS. Toad&lt;sup&gt;®&lt;/sup&gt; for DB2 3.0 has many XML features already enabled. You can create tables with XML data types, create indexes on XML columns, import XML data into tables, and generate data reports including XML data. The following is a quick example showing how TOAD will allow you to create a table featuring XML data.&lt;/span&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;Select the CREATE option from the tool bar and select TABLE:&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" align="center"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;img height="268" alt="" width="400" src="http://www.toadworld.com/Portals/0/blogimages/3letter01.jpg" /&gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;From the general tab assign a name for the table. Then select the column option to begin adding your columns.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" align="center"&gt;&lt;o:p&gt;&lt;img height="270" alt="" width="400" src="http://www.toadworld.com/Portals/0/blogimages/3letter02.jpg" /&gt;&lt;/o:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;The column data types are release sensitive. When you create a table on V9 LUW the object types will include XML. Create a column with the XML datatype.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" align="center"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;img height="287" alt="" width="400" src="http://www.toadworld.com/Portals/0/blogimages/3letter03.jpg" /&gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;  &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;The SQL script option will allow you to review the DDL then execute the DDL to generate the table.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" align="center"&gt;&lt;o:p&gt;&lt;img height="269" alt="" width="400" src="http://www.toadworld.com/Portals/0/blogimages/3letter04.jpg" /&gt;&lt;/o:p&gt;&lt;o:p&gt;  &lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;To populate the table you can then use the SQL Editor to code inserts or use the IMPORT wizard to import data in a file. You can then also run your XQUERY statements through the SQL EDITOR to query your table as well. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;Toad for DB2 is well enabled today to help you build your XML applications.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;</description>
      <link>http://www.toadworld.com/Community/QuestExpertsBlogs/tabid/67/EntryID/146/Default.aspx</link>
      <comments>http://www.toadworld.com/Community/QuestExpertsBlogs/tabid/67/EntryID/146/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.toadworld.com/Default.aspx?tabid=67&amp;EntryID=146</guid>
      <pubDate>Mon, 29 Oct 2007 21:27:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.toadworld.com/DesktopModules/Blog/Trackback.aspx?id=146</trackback:ping>
    </item>
    <item>
      <title>DB2 Day to Day</title>
      <description>&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;Hey DB2’ers,&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;I had a busy week last week speaking at the Central Canadian DB2 Users Group in &lt;st1:place w:st="on"&gt;&lt;st1:city w:st="on"&gt;Toronto&lt;/st1:city&gt;&lt;/st1:place&gt; and visiting with customers. The best part of this job is that I have the opportunity to speak to many people in the DB2 community and get to hear what they are doing with DB2 and what their needs are from a tool perspective.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;It’s interesting to hear that although companies are using DB2 for a variety of applications the work of the DBA stays pretty consistent. There is always a need to be able to quickly and accurately make changes to objects and put all dependencies back as they were. The other common thread is they need a solid SQL tuning tool. &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;Developers like to throw SQL together and not really test. This was the &lt;a href="http://www.toadworld.com/Community/ExpertsBlog/tabid/67/EntryID/119/Default.aspx"&gt;subject of my blog&lt;/a&gt; a few weeks ago. I spent all day Friday onsite with one of our largest customers discussing what they do on a day-to-day basis and what they need their tools to do. They confirmed the need for a solid object management and SQL tuning product. We have some exciting new features planed for the upcoming release of Toad&lt;sup&gt;®&lt;/sup&gt; over the next few months. &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;What I would like is to hear from you on what your day to day job entails, and what type of functionality would be most useful to you. I am looking forward to your feedback.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;</description>
      <link>http://www.toadworld.com/Community/QuestExpertsBlogs/tabid/67/EntryID/141/Default.aspx</link>
      <comments>http://www.toadworld.com/Community/QuestExpertsBlogs/tabid/67/EntryID/141/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.toadworld.com/Default.aspx?tabid=67&amp;EntryID=141</guid>
      <pubDate>Fri, 12 Oct 2007 18:13:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.toadworld.com/DesktopModules/Blog/Trackback.aspx?id=141</trackback:ping>
    </item>
    <item>
      <title>Roll with the Changes</title>
      <description>&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;One of the questions I get quite a bit from customers is; do we have the ability to compare data and/or have the ability to compare DDL files to what’s currently in the DB2 catalog?&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;As of V3.0 of TOAD for DB2 the answer is YES to both of these questions. A new feature called “Difference Viewer” allows you to compare table data, results sets, and various script files either file to file, or file to catalog. This feature is available for both LUW and z/OS environments. This is a very useful feature when you wish to verify the data in multiple copies of a table, or in many cases you may have DDL files saved and you want to be sure they match what’s actually in the catalog. Here are a couple of examples: &lt;/span&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;
&lt;p class="MsoNormal"&gt;&lt;strong style="mso-bidi-font-weight: normal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;Example &lt;/span&gt;&lt;/strong&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;1 – I have 2 copies of my employee table.&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;I wish to verify the employee count is the same.&lt;br style="mso-special-character: line-break" /&gt;
&lt;br style="mso-special-character: line-break" /&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/span&gt;
&lt;p align="center"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;&lt;img height="246" alt="" width="400" src="http://www.toadworld.com/Portals/0/blogimages/Changes01.jpg" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align="left"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;Select the table and send the data to the Diff viewer. Repeat this step for the second employee table. The diff viewer report will display the data side by with a summary at the bottom left of the window. In this example we can see that an additional employee was added to my second employee table.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align="center"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;&lt;img height="244" alt="" width="400" src="http://www.toadworld.com/Portals/0/blogimages/Changes02.jpg" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;This feature will also be useful when tuning queries.&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;A queries result set can be sent to the Diff Viewer and when the query is modified and re-executed the new results set can be compared back to the original query to verify that the result set has not changed.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;Example 2 – I have a DDL file that I wish to compare to what’s actually in the catalog to validate that they are in sync.&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;This time we select “Diff Viewer as Script”:&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" align="center"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;img height="253" alt="" width="400" src="http://www.toadworld.com/Portals/0/blogimages/Changes03.jpg" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" align="center"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;img height="241" alt="" width="400" src="http://www.toadworld.com/Portals/0/blogimages/Changes04.jpg" /&gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;When the Diff Viewer window opens the existing tables structure will appear on the left.&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;On the right I then select the browse button and select the DDL file from my directory.&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;The compare then verifies that the DDL I have saved does not match what is currently in the catalog.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;As you can see there are many uses for this new feature.&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;It can even be used to compare various TXT , HTML, XML, JAVA, .NET, PERL and many more types of documents.&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;Have fun with this one!&lt;/span&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;See you next week!&lt;/span&gt;&lt;/p&gt;</description>
      <link>http://www.toadworld.com/Community/QuestExpertsBlogs/tabid/67/EntryID/133/Default.aspx</link>
      <comments>http://www.toadworld.com/Community/QuestExpertsBlogs/tabid/67/EntryID/133/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.toadworld.com/Default.aspx?tabid=67&amp;EntryID=133</guid>
      <pubDate>Fri, 28 Sep 2007 22:16:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.toadworld.com/DesktopModules/Blog/Trackback.aspx?id=133</trackback:ping>
    </item>
    <item>
      <title>The Attack of the Clones!</title>
      <description>&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;This week I am going to switch gears over to the big iron and talk about DB2 z/OS. IBM has been making great strides in the area of schema management. As any mainframe DBA knows, the process of having to make a seemingly simple schema change can result in a very complex combination of DDL, Utilities and batch processes. These changes can result in applications having to be unavailable for significant amounts of time. Starting with V8 of DB2, IBM introduced the concept of “Online Schema Evolution.” This is the process of being able to make changes to your DB2 objects with very little or no down time by eliminating the need to unload data, drop/recreate objects with dependencies, reload the data and rebind any plans or packages associated with the objects. This is a significant feature when it comes to high availability applications. With the upcoming release of DB2 for z/OS V9 this area continues to evolve.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;The first one I want to talk about this week is table cloning. Table cloning is a unique feature that will benefit applications that require high availability such as web based applications. With table cloning you can make an exact copy of an existing table in the same tablespace and then switch back and forth between the tables with almost complete transparency. The cloned table can then be loaded with data just like the original table. This in effect provides a very simple data mirroring facility plus having the ability to have different versions of data.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;The other significant schema management features are:&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;/span&gt;&lt;strong style="mso-bidi-font-weight: normal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;Column renaming&lt;/span&gt;&lt;/strong&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt; – This feature gives you to have the ability to rename table columns without having to drop/recreate the table. This will be a great time saver and potentially eliminate the need to add new columns to a table by allowing for the reuse of existing columns. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;strong style="mso-bidi-font-weight: normal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;Renaming Indexes&lt;/span&gt;&lt;/strong&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt; -This feature can be helpful when maintaining ERP type applications. Many of these applications have the version coded into the name of the indexes. Not having to drop and recreate indexes when a version upgrade is applied will be a huge timesaver.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;DB2 has made great strides in improving availability by minimizing the downtime necessary to perform changes to the database structures. This is essential in today’s 24x7 web enabled world. These types of enhancements are ensuring that DB2 z/OS will remain the core data repository for large IT operations for a long time to come.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;See you next week!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;</description>
      <link>http://www.toadworld.com/Community/QuestExpertsBlogs/tabid/67/EntryID/127/Default.aspx</link>
      <comments>http://www.toadworld.com/Community/QuestExpertsBlogs/tabid/67/EntryID/127/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.toadworld.com/Default.aspx?tabid=67&amp;EntryID=127</guid>
      <pubDate>Mon, 17 Sep 2007 18:28:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.toadworld.com/DesktopModules/Blog/Trackback.aspx?id=127</trackback:ping>
    </item>
    <item>
      <title>The importance of SQL scalability testing</title>
      <description>&lt;p align="left"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;As we all know, there are many factors that influence the performance of your application. Proper memory allocations, physical design, how the SQL is written and workload all affect the way your queries perform. One of most overlooked parts of testing an application is testing queries under production workload conditions.&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;A seemingly simple query runs fine in your test environment, but how will it perform when 10, 25 or 50 end users are running the query concurrently?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;One of the neater features in Toad&lt;sup&gt;®&lt;/sup&gt; for DB2 is the integration with SQL Optimizer and Benchmark Factory&lt;sup&gt;®&lt;/sup&gt; to do automated index analysis and scalability testing. Once you have a query built the optimizer can recommend indexes and simulate real world user loads.&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;In this example below a query containing a 3 table join is being run in a DB2 V8 Windows environment. The &lt;st1:place w:st="on"&gt;SLA&lt;/st1:place&gt; for this application is to maintain a sub-second response time during peak user time. The query is initially test run with production data volume with an average elapsed time around 230 milliseconds; well below my &lt;st1:place w:st="on"&gt;SLA&lt;/st1:place&gt; requirement. I then put the query through a scalability test escalating users from 10 to 25, to 50.&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;As you can see from the graph, the average response time jumped to over 4 seconds, which is completely unacceptable for this application.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" align="center"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;o:p&gt;&lt;img height="400" alt="" width="572" src="http://www.toadworld.com/Portals/0/blogimages/SQLScalability001.bmp" /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" align="left"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;o:p&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;After running the query through Toad’s EXPLAIN, you can see that all 3 tables are doing tablespace scans.&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align="center"&gt;&lt;img height="306" alt="" width="500" src="http://www.toadworld.com/Portals/0/blogimages/SQLScalability002.JPG" /&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;The query was then launched into SQL optimizer and the Index Expert option was run.&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;It determined the indexes to be created to optimize this query.&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" align="center"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;/span&gt;&lt;o:p&gt;&lt;img height="400" alt="" width="601" src="http://www.toadworld.com/Portals/0/blogimages/SQLScalability003.bmp" /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;The Indexes were created and the scalability test was run again. This time the query maintained its sub second response time even with 50 concurrent users.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" align="center"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;img height="400" alt="" width="573" src="http://www.toadworld.com/Portals/0/blogimages/SQLScalability004.bmp" /&gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;This simple demonstration highlights the importance of doing realistic testing of SQL prior to putting it into production.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;</description>
      <link>http://www.toadworld.com/Community/QuestExpertsBlogs/tabid/67/EntryID/119/Default.aspx</link>
      <comments>http://www.toadworld.com/Community/QuestExpertsBlogs/tabid/67/EntryID/119/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.toadworld.com/Default.aspx?tabid=67&amp;EntryID=119</guid>
      <pubDate>Thu, 30 Aug 2007 20:26:00 GMT</pubDate>
      <slash:comments>2</slash:comments>
      <trackback:ping>http://www.toadworld.com/DesktopModules/Blog/Trackback.aspx?id=119</trackback:ping>
    </item>
    <item>
      <title>Welcome to the Toad for DB2 blog</title>
      <description>&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;Welcome to my inaugural blog for Toad&lt;sup&gt;®&lt;/sup&gt; for DB2.&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;Many of you may not be aware that Toad is now a multiplatform solution.&lt;span style="mso-spacerun: yes"&gt; &lt;/span&gt;I plan to discuss subjects across both DB2 running on the LUW platforms as well as z/OS.&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;I will address day-to-day issues and show you how Toad can make your job easier whether you are developing new applications or administering legacy databases.&lt;span style="mso-spacerun: yes"&gt; &lt;/span&gt;Toad for DB2 has been available for about two years now.&lt;span style="mso-spacerun: yes"&gt; &lt;/span&gt;Quest just released version 3.0 which added some advanced database administration features such as schema migration, compare/synchronization, and advanced alters.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;If you are not familiar with Toad for DB2 you may want to take a look at the web pages for more info:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;a target="_blank" href="http://www.quest.com/toad-for-db2/"&gt;DB2 for LUW&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;a target="_blank" href="http://www.quest.com/toad-for-db2-zos/"&gt;DB2 for z/OS&lt;/a&gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;I look forward to showing you a lot of the neat features in Toad for DB2 and how they can help make you better manage your DB2 environments.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE: 9pt; FONT-FAMILY: Tahoma"&gt;&lt;o:p&gt;Be on the look out for my next blog where I will answer the quest "Does your SQL Scale?"&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;</description>
      <link>http://www.toadworld.com/Community/QuestExpertsBlogs/tabid/67/EntryID/112/Default.aspx</link>
      <comments>http://www.toadworld.com/Community/QuestExpertsBlogs/tabid/67/EntryID/112/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.toadworld.com/Default.aspx?tabid=67&amp;EntryID=112</guid>
      <pubDate>Wed, 15 Aug 2007 17:41:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.toadworld.com/DesktopModules/Blog/Trackback.aspx?id=112</trackback:ping>
    </item>
  </channel>
</rss>