﻿<?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>Ben Boise's Blog</title>
    <description>&lt;table&gt;
        &lt;tr&gt;
            &lt;td valign="top"&gt;&lt;img height="183" width="139" alt="" src="/Portals/0/Blog/blog-ben-boise.png" /&gt;&lt;/td&gt;
            &lt;td valign="top"&gt;
            &lt;p&gt;Ben Boise has been with Quest Software since June 2007 working in the PreSales group as a Solutions Architect. Ben has over 12 years in IT and has worn numerous hats during this time. He has experience in Systems Support, Software Testing, Software Development and Professional Services.&lt;/p&gt;
            &lt;p&gt;In his blog, he'll share his insights on Toad family products.&lt;/p&gt;
            &lt;p&gt;&lt;font color="#003366" size="3"&gt;&lt;strong&gt;Recent postings:&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
&lt;/table&gt;</description>
    <link>http://www.toadworld.com/BLOGS/tabid/67/BlogId/33/Default.aspx</link>
    <language>en-US</language>
    <managingEditor>Ben Boise</managingEditor>
    <webMaster>webmaster@toadworld.com</webMaster>
    <pubDate>Thu, 18 Mar 2010 15:45:23 GMT</pubDate>
    <lastBuildDate>Thu, 18 Mar 2010 15:45:23 GMT</lastBuildDate>
    <docs>http://backend.userland.com/rss</docs>
    <generator>Blog RSS Generator Version 3.2.0.15477</generator>
    <item>
      <title>Investigating and Managing Differences with SQL Navigator</title>
      <description>&lt;div&gt;Quest Software has two of the most powerful tools for PL/SQL development: Toad for Oracle and SQL Navigator for Oracle. Personally, I spend more time working with Toad for Oracle and I truly enjoy the solution. Before I proceed any further, I want to clarify a point. I am not advocating one solution over the other for PL/SQL development. That’s a conversation I refuse to have, because it borders on arguing which religion is better. I’m of the opinion that you should use the solution you’re most comfortable using and that helps you get your job done well. &lt;/div&gt;
&lt;div&gt;
&lt;p&gt;Recently, I went to visit some customers who are using SQL Navigator for Oracle. Well, because I spend most of my time with Toad for Oracle, I found my SQL Navigator skills to be a bit rusty. In preparation for our meetings, I spent some time refamiliarizing myself with this solution. During this preparation, I discovered a feature that I wanted to share with you. Granted, I’m running the risk of exposing a feature you’re already aware of, but that’s the chance I take &lt;img alt="" width="16" height="16" src="http://www.toadworld.com/Providers/HtmlEditorProviders/Fck/FCKeditor/editor/images/smiley/msn/wink_smile.gif" /&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;p&gt;SQL Navigator for Oracle has a utility that allows you to compare both script differences and object differences. You can launch the comparison process in a few ways (imagine that). We’ll focus on using the menus within SQL Navigator for Oracle. All you have to do is select &lt;em&gt;Tools | View Difference&lt;/em&gt;:&lt;/p&gt;
&lt;p&gt;&lt;img alt="" width="225" height="265" src="http://www.toadworld.com/Portals/0/blogimages/BenBoise/BB_blog_112309-1.gif" /&gt; &lt;/p&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;p&gt;Selecting this menu loads the following dialog:&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="http://www.toadworld.com/Portals/0/blogimages/BenBoise/BB_blog_112309-2.gif" /&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div&gt;As you can see, we have the option of selecting &lt;em&gt;Script&lt;/em&gt; or &lt;em&gt;Object&lt;/em&gt;. The &lt;em&gt;Script&lt;/em&gt; option allows us to compare a variety of file types. If you click the ellipses, you can activate the &lt;em&gt;Files of Type &lt;/em&gt;dropdown to see the file formats that are supported for comparison purposes. I’m going to take us through an example of using the &lt;em&gt;Object&lt;/em&gt; comparison.&lt;/div&gt;
&lt;div&gt;
&lt;p&gt;The interface is very straight-forward. Simply select the &lt;em&gt;Object&lt;/em&gt; radio button and fill out the proper objects you wish to compare from the various dropdowns. You’ll see something similar to the below screenshot:&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="http://www.toadworld.com/Portals/0/blogimages/BenBoise/BB_blog_112309-3.gif" /&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div&gt;**Please note that I am comparing the OW_CUSTOMERS table in my QUEST_DEV schema to the OW_CUSTOMERS table in my QUEST_PROD schema. My connection provides me access to both of these schemas; hence, the Session information is identical in both dropdowns.&lt;/div&gt;
&lt;div&gt;
&lt;p&gt;You guess it. Now all we do is click the &lt;em&gt;OK&lt;/em&gt; button and we have the following results:&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="http://www.toadworld.com/Portals/0/blogimages/BenBoise/BB_blog_112309-4.gif" /&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div&gt;You can see that we have a column size difference between these two schemas. This is indicated by the blue syntax in the above screenshot (line #3). &lt;/div&gt;
&lt;div&gt;
&lt;p&gt;In my opinion, this is where it gets good. If I select the line that is different (line #3), you’ll notice a change in the toolbar:&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="http://www.toadworld.com/Portals/0/blogimages/BenBoise/BB_blog_112309-5.gif" /&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div&gt;The eraser icons give us the ability to &lt;em&gt;Delete left text&lt;/em&gt; or to &lt;em&gt;Delete right text&lt;/em&gt;. The arrow icons allow us to &lt;em&gt;Copy to right&lt;/em&gt; or &lt;em&gt;Copy to left&lt;/em&gt;.  What does this mean to us? Using these icons we can now react to these differences. &lt;/div&gt;
&lt;div&gt;
&lt;p&gt;Let’s say that we need to make our QUEST_PROD table look like our QUEST_DEV table. Our QUEST_PROD table’s NAME column is 64 bytes and we need it to be 70 bytes. Using the &lt;em&gt;Copy to right&lt;/em&gt; arrow (the arrow pointing to the right), we can start to make this change:&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="http://www.toadworld.com/Portals/0/blogimages/BenBoise/BB_blog_112309-6.gif" /&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;p&gt;Now, line #3 is identical on both the left-hand and right-hand sides of the screen. If you click on the floppy disk icon, on the toolbar, you’ll be prompted to save the changes as a script.&lt;/p&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;p&gt;Icon to click:&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="http://www.toadworld.com/Portals/0/blogimages/BenBoise/BB_blog_112309-7.gif" /&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;p&gt;Dialog to save changes:&lt;/p&gt;
&lt;p&gt; &lt;img alt="" src="http://www.toadworld.com/Portals/0/blogimages/BenBoise/BB_blog_112309-8.gif" /&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;p&gt;Now that we’ve saved our changes, we can very easily load the script into the editor and execute it to apply our changes. All we have to do is click on the SQL icon in the toolbar:&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="http://www.toadworld.com/Portals/0/blogimages/BenBoise/BB_blog_112309-9.gif" /&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;p&gt;This loads our script into SQL Navigator for Oracle’s editor:&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="http://www.toadworld.com/Portals/0/blogimages/BenBoise/BB_blog_112309-10.gif" /&gt; &lt;/p&gt;
&lt;/div&gt;
&lt;div&gt;We can now execute this script to apply our desired changes!&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Investigating differences is very easy in SQL Navigator for Oracle. Perhaps equally important is the fact that we can react to these differences in a safe and logical manner. I find that I’m sometimes my worst enemy when it comes to managing changes. SQL Navigator for Oracle helps save me from myself. &lt;/div&gt;</description>
      <link>http://www.toadworld.com/BLOGS/tabid/67/EntryID/478/Default.aspx</link>
      <author>Ben Boise</author>
      <comments>http://www.toadworld.com/BLOGS/tabid/67/EntryID/478/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.toadworld.com/Default.aspx?tabid=67&amp;EntryID=478</guid>
      <pubDate>Mon, 23 Nov 2009 08:00:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.toadworld.com/DesktopModules/Blog/Trackback.aspx?id=478</trackback:ping>
    </item>
  </channel>
</rss>