<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>NewPush &#187; DB2</title> <atom:link href="http://newpush.com/tag/db2/feed/" rel="self" type="application/rss+xml" /><link>http://newpush.com</link> <description>Server Hosting, Data Warehouse Hosting, Collaboration</description> <lastBuildDate>Fri, 20 Apr 2012 10:25:44 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>NewPush Hosted Services Featured on IBM Showcase</title><link>http://newpush.com/2011/06/newpush-hosted-services-featured-on-ibm-showcase/</link> <comments>http://newpush.com/2011/06/newpush-hosted-services-featured-on-ibm-showcase/#comments</comments> <pubDate>Wed, 15 Jun 2011 09:31:16 +0000</pubDate> <dc:creator>Balazs</dc:creator> <category><![CDATA[News]]></category> <category><![CDATA[Cloud]]></category> <category><![CDATA[Connections]]></category> <category><![CDATA[DB2]]></category> <category><![CDATA[Domino]]></category> <category><![CDATA[IBM]]></category> <category><![CDATA[Lotus]]></category> <category><![CDATA[Notes]]></category><guid isPermaLink="false">http://newpush.com/?p=1167</guid> <description><![CDATA[Four solutions from NewPush have been approved by IBM. The solutions are now featured on the IBM Showcase website: Hosted Lotus Connections 3 Hosted VDI &#8211; IBM Smart Business Server 2 Hosted Domino Mail, Collaboration, and Knowledge Management 8.5.1 Hosted &#8230; <a href="http://newpush.com/2011/06/newpush-hosted-services-featured-on-ibm-showcase/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>Four solutions from NewPush have been approved by IBM.  The solutions are now featured on the <a href="http://ibm.com/software/showcase">IBM Showcase</a> website:<ul><li><a href="http://www-304.ibm.com/partnerworld/gsd/solutiondetails.do?&#038;solution=44259&#038;lc=en">Hosted Lotus Connections 3</a></li><li><a href="http://www-304.ibm.com/partnerworld/gsd/solutiondetails.do?&#038;solution=44901&#038;lc=en">Hosted VDI &#8211; IBM Smart Business Server 2</a></li><li><a href="http://www-304.ibm.com/partnerworld/gsd/solutiondetails.do?&#038;solution=42012&#038;lc=en">Hosted Domino Mail, <b>Collaboration</b>, and Knowledge Management 8.5.1</a></li><li><a href="http://www-304.ibm.com/partnerworld/gsd/solutiondetails.do?&#038;solution=44264&#038;lc=en">Hosted <b>DB2</b> 9.7</a></li></ul> ]]></content:encoded> <wfw:commentRss>http://newpush.com/2011/06/newpush-hosted-services-featured-on-ibm-showcase/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Updated IBM DB2 e-kit for Database Professionals</title><link>http://newpush.com/2011/03/updated-ibm-db2-e-kit-for-database-professionals/</link> <comments>http://newpush.com/2011/03/updated-ibm-db2-e-kit-for-database-professionals/#comments</comments> <pubDate>Sat, 05 Mar 2011 00:07:38 +0000</pubDate> <dc:creator>Balazs</dc:creator> <category><![CDATA[Data Warehouse]]></category> <category><![CDATA[DB2]]></category> <category><![CDATA[Hosting Support]]></category> <category><![CDATA[Database]]></category> <category><![CDATA[IBM]]></category><guid isPermaLink="false">http://newpush.com/?p=958</guid> <description><![CDATA[Refresh of the DB2 e-kit As a follow up to the DB2 Discovery Kit post, here is a link the the Updated IBM DB2 e-kit for Database Professionals This new kit has a number of resources for migrating to DB2 &#8230; <a href="http://newpush.com/2011/03/updated-ibm-db2-e-kit-for-database-professionals/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<h1>Refresh of the DB2 e-kit</h1><p>As a follow up to the <a href="http://newpush.com/2009/12/db2-discovery-kit/"><b>DB2</b> Discovery Kit</a> post, here is a link the the <a href="https://www6.software.ibm.com/developerworks/offers/kits/data/dataprokit/index.html">Updated IBM DB2 e-kit for Database Professionals</a></p><p>This new kit has a number of resources for migrating to DB2 from other databases, such as Oracle.</p> ]]></content:encoded> <wfw:commentRss>http://newpush.com/2011/03/updated-ibm-db2-e-kit-for-database-professionals/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Understanding Business Intelligence</title><link>http://newpush.com/2010/10/understanding-business-intelligence/</link> <comments>http://newpush.com/2010/10/understanding-business-intelligence/#comments</comments> <pubDate>Sun, 24 Oct 2010 02:50:23 +0000</pubDate> <dc:creator>Balazs</dc:creator> <category><![CDATA[Business Intelligence]]></category> <category><![CDATA[Cognos 10]]></category> <category><![CDATA[Data Warehouse]]></category> <category><![CDATA[DB2]]></category> <category><![CDATA[Cognos]]></category> <category><![CDATA[IBM]]></category> <category><![CDATA[IBM Smart Analytic System]]></category> <category><![CDATA[InfoWarehouse]]></category><guid isPermaLink="false">http://newpush.com/?p=733</guid> <description><![CDATA[What is Business Intelligence? From the thread &#8220;My Quest for Understanding Business Intelligence&#8221; this comment was posted by Leslie Dudley: Business Intelligence Background A little off topic perhaps, but as an IT business intelligence worker who was interviewing during the &#8230; <a href="http://newpush.com/2010/10/understanding-business-intelligence/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<h1>What is Business Intelligence?</h1><p>From the thread &#8220;<a rel=nofollow href="http://www.linkedin.com/groupAnswers?viewQuestionAndAnswers=&#038;discussionID=20953097&#038;gid=40057&#038;commentID=25066661&#038;trk=view_disc">My Quest for Understanding <b>Business Intelligence</b></a>&#8221; this comment was posted by <a rel=nofollow href="http://www.linkedin.com/in/lesliedudley">Leslie Dudley</a>:</p><h2>Business Intelligence Background</h2><blockquote><p>A little off topic perhaps, but as an IT business intelligence worker who was interviewing during the economic downturn, I have a slightly different perspective. First, I found myself to be fortunate to be in one of the few growth fields. One of the reasons that the large consulting firms have been investing and focusing on the Business Intelligence field is because it was the first area to show growth activity during the most recent recession.</p></blockquote><h3>Business Intelligence and Technology</h3><blockquote><p>My other slightly off topic point is that the resurgence of interest in Business Intelligence technology is not a fad but the inevitable result of the major shift in media consumption in our culture. In BI IT we are the beneficiaries of the change in how our society consumes media. As a result of both a cultural shift and the recession, media spend moved from traditional to digital. The effect has been the rapidly growing influx of big data that makes it possible to measure the impact of the new media marketing &#8211; digital advertising, email, search, social media, site metrics, engagement.</p></blockquote><h3>Business Intelligence and Culture</h3><blockquote><p>The cultural shift has changed the context of business intelligence. No longer can spreadsheets and MS Access databases meet the needs of the business to identify actionable insights from data. The challenge of handling the pedabytes of data being generated by multiple sources is one that IT data warehousing workers are uniquely qualified to handle. The growth of business intelligence is not a fad, nor a recognition of IT, it is the ripple effect of the disruptive innovation going in technology, digital media and culture at large.</p></blockquote><h2>Business Intelligence in Context</h2><blockquote><p>I do agree that business intelligence is a business process. And I do agree that technology workers are being called on to meet the challenges of BI. But I don&#8217;t see a &#8216;BI Movement&#8217;. I see a broad cultural shift in the way we consume data and media.</p><p>Technologists with experience in handling and making sense of big data are rising to the challenge, and many others are trying to get on board a growth industry. Yes, many people want to learn more about the technology for managing and analyzing big data from disparate sources. It is at this point in time a growth field.</p><p>But the impetus is not BI technology: the movement changing the face and players in BI is not BI technology. We are downstream from more significant cultural shifts being played out by the success of disruptive innovations &#8211; google, search analytics, site analytics, ad-serving, social media, entertainment and news delivery. To get an idea of where our industry is heading look forward &#8211; to the semantic web.</p><p>Our role as workers with knowledge of handling and analyzing disparate, big data will grow and the opportunities will be in understanding semantic data, unstructured data and relationships. Marketing is moving ahead quickly now due to being nimble, fast and flush. Academia is lumbering forward with complex concepts, ontologies and methodologies. We are feeling the early rumblings of what will happen when the two begin intersecting.</p></blockquote><p>Posted on <a rel=nofollow href="http://linkedin.com">LinkedIn</a> by <a rel=nofollow href="http://www.linkedin.com/in/lesliedudley">Leslie Dudley</a>, member of the Business Intelligence Professionals group.   More articles on <a href="/category/services/business-intelligence/">Business Intelligence</a>&#8230;</p><p><a href="http://newpush.com/2010/10/understanding-business-intelligence/isas-innovation_530x150/" rel="attachment wp-att-738"><img src="http://newpush.com/wp-content/uploads/2010/10/isas-innovation_530x150.jpg?9d7bd4" alt="Business Intelligence with IBM Smart Analytic Systems" title="IBM Smart Analytic Systems" width="530" height="150" class="alignnone size-full wp-image-738" /></a></p> ]]></content:encoded> <wfw:commentRss>http://newpush.com/2010/10/understanding-business-intelligence/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>DB2 Query Writing Best Practices</title><link>http://newpush.com/2010/04/db2-query-writing-best-practices/</link> <comments>http://newpush.com/2010/04/db2-query-writing-best-practices/#comments</comments> <pubDate>Thu, 08 Apr 2010 08:11:32 +0000</pubDate> <dc:creator>Balazs</dc:creator> <category><![CDATA[DB2]]></category> <category><![CDATA[DB2 9.7]]></category> <category><![CDATA[FETCH]]></category> <category><![CDATA[IBM]]></category> <category><![CDATA[MERGE]]></category> <category><![CDATA[UNION]]></category><guid isPermaLink="false">http://www.wdream.com/?p=545</guid> <description><![CDATA[Problem Writing efficient SQL SELECTqueries for DB2 can be tricky. Some general SQL guidelines apply, and there are also specific practices that apply only to DB2. Solution Here is a list of tips you can use to write good SELECT &#8230; <a href="http://newpush.com/2010/04/db2-query-writing-best-practices/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<h4>Problem</h4><p>Writing efficient SQL <code>SELECT</code>queries for <b>DB2</b> can be tricky.  Some general SQL guidelines apply, and there are also specific practices that apply only to DB2.</p><h4>Solution</h4><p>Here is a list of tips you can use to write good <code>SELECT</code> queries:</p><ul><li>Avoid <code>SELECT *</code> in your queries. Instead, state the columns you want to select.</li><li>Use the consistent acronyms to alias your table names (makes it easier to read joins)</li><li>Use <code>FETCH ONLY x ROWS</code> to limit the results set</li><li>Use <code>CASE</code> or <code>MERGE</code> instead of <code>UNION ALL</code></li></ul><h4>References</h4><ul><li><a href="http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/index.jsp?topic=/com.ibm.db2.luw.admin.perf.doc/doc/c0005283.html">Efficient SELECT statements</a></li><li><a href="http://www.ibm.com/developerworks/data/bestpractices/querytuning/">Writing and Tuning Queries for Optimal Performance</a></li></ul> ]]></content:encoded> <wfw:commentRss>http://newpush.com/2010/04/db2-query-writing-best-practices/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Creating a User Defined Function (UDF) in Java for IBM DB2 9.7</title><link>http://newpush.com/2009/08/creating-a-user-defined-function-udf-in-java-for-ibm-db2-9-7/</link> <comments>http://newpush.com/2009/08/creating-a-user-defined-function-udf-in-java-for-ibm-db2-9-7/#comments</comments> <pubDate>Mon, 24 Aug 2009 08:32:17 +0000</pubDate> <dc:creator>Balazs</dc:creator> <category><![CDATA[DB2]]></category> <category><![CDATA[DB2 9.7]]></category> <category><![CDATA[IBM]]></category> <category><![CDATA[Java]]></category> <category><![CDATA[UDF]]></category><guid isPermaLink="false">http://www.wdream.com/?p=387</guid> <description><![CDATA[Intro One of the great features of DB2 is that it can be extended with custom code using SQL, C/C++, Java and COBOL. One of the great new features added to DB2 in 9.7 is the ability to run native &#8230; <a href="http://newpush.com/2009/08/creating-a-user-defined-function-udf-in-java-for-ibm-db2-9-7/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<h4>Intro</h4><p>One of the great features of <b>DB2</b> is that it can be extended with custom code using SQL, C/C++, Java and COBOL.  One of the great new features added to DB2 in 9.7 is the ability to run native Oracle PL/SQL code, that capability opens up a world of possibilities, and at the same time, the need to extend DB2 with functions that might have been available on the Oracle install and now need to be replicated on DB2.  In this short article I describe how to extend DB2 9.7 with Java UDFs.</p><h4>Prerequisites</h4><ul><li>Check that Java is properly installed and configured on DB2:<code><br /> db2 get dbm config|grep JDK</code><br /> The output should show the path to the JDK installation in DB2.  If that isn&#8217;t the case, you need to consult the DB2 install manual and make sure Java is installed and configured for DB2.</li><li>Make sure that your user has access to java and javac, and that it is the same version or compatible with DB2&#8242;s JDK</li><li>Set the database manager parameter <code>KEEPFENCED</code> to <code>NO</code>, so that the UDF will be reloaded in each call.</li></ul><h4>Writing the test code</h4><ul><li>Use your favorite text editor or IDE and create a file called <code>udftest.java</code> with the sample code:<pre>
public class udftest {
        public static String udftest(String domainName) {
                return "Domain Name: " + domainName;
        }
}</pre></li><li>Compile the java program:<code><br /> javac udftest.java </code></li><li>Create a jar file:<code><br /> jar cvf udftest.jar udftest.class</code></li><li>Register the jar file with DB2:<code><br /> db2 "CALL sqlj.install_jar('file:/home/bnagy/dev/java/udf/udftest.jar','UDFTESTJAR')"</code></li></ul><h4>Creating the UDF in DB2</h4><ul><li>Use your favorite text editor or IDE and create a file called <code>udftest-create.sql</code> with the sample code:<code><br /> CONNECT TO SAMPLE;<br /> CREATE FUNCTION udftest(VARCHAR(255)) RETURNS VARCHAR(255)<br /> FENCED<br /> EXTERNAL NAME 'UDFTESTJAR:udftest.udftest'<br /> NOT VARIANT NO SQL PARAMETER STYLE java LANGUAGE java<br /> NO EXTERNAL ACTION;<br /> CONNECT RESET;</code></li><li>Run the scritpt in DB2:<code><br /> db2 -tvf  udftest-create.sql</code></li></ul><h4>Testing</h4><p>To check that the function works, run the following command on the command line:<code><br /> db2 "select udftest('test.com') from sysibm.sysdummy1"</code><br /> You should get a regular SELECT result set with the expected values.  If something goes wrong, you can look at the <code>db2diag.log</code> that will contain any Java stack trace that would be generated.</p><h4>References</h4><ul><li><a href="http://www.amazon.com/gp/product/0738427675?ie=UTF8&#038;tag=wdr-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=0738427675">Up and Running With DB2 for Linux (Ibm Redbooks.)</a><img src="http://www.assoc-amazon.com/e/ir?t=wdr-20&#038;l=as2&#038;o=1&#038;a=0738427675" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></li></ul> ]]></content:encoded> <wfw:commentRss>http://newpush.com/2009/08/creating-a-user-defined-function-udf-in-java-for-ibm-db2-9-7/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>IBM Expands in Analytics Market</title><link>http://newpush.com/2009/08/ibm-expands-in-analytics-market/</link> <comments>http://newpush.com/2009/08/ibm-expands-in-analytics-market/#comments</comments> <pubDate>Wed, 05 Aug 2009 16:10:09 +0000</pubDate> <dc:creator>Balazs</dc:creator> <category><![CDATA[DB2]]></category> <category><![CDATA[Analytics]]></category> <category><![CDATA[IBM]]></category> <category><![CDATA[SAS]]></category> <category><![CDATA[SPSS]]></category><guid isPermaLink="false">http://www.wdream.com/?p=349</guid> <description><![CDATA[Infoworld&#8217;s Pete Babb has an article about IBM to acquire analytics firm SPSS. Pete sees this acquisition by IBM in line with the earlier acquisition of Cognos also by IBM. He underlines that the key aspect of this acquisition is &#8230; <a href="http://newpush.com/2009/08/ibm-expands-in-analytics-market/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>Infoworld&#8217;s Pete Babb has an article about <a href="http://www.infoworld.com/d/applications/ibm-acquire-analytics-firm-spss-189">IBM to acquire analytics firm SPSS</a>.  Pete sees this acquisition by IBM in line with the earlier acquisition of <b>Cognos</b> also by IBM.  He underlines that the key aspect of this acquisition is the focus on predictive analysis.  IBM clearly shows a preference for solutions that work best with its core information platform <b>DB2</b>.  Some analysts question whether IBM will fund development for compatibility on competing information platforms such as Oracle and the emerging Open Source options.  According to SAS &#8211; one of the main competitors of SPSS in that field &#8211; they may have an opportunity to increase they market share over SPSS if IBM will focus on DB2 at the expense of other information platforms.</p> ]]></content:encoded> <wfw:commentRss>http://newpush.com/2009/08/ibm-expands-in-analytics-market/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Connection pooling with mod_perl</title><link>http://newpush.com/2009/05/connection-pooling-with-mod_perl/</link> <comments>http://newpush.com/2009/05/connection-pooling-with-mod_perl/#comments</comments> <pubDate>Sun, 31 May 2009 15:26:43 +0000</pubDate> <dc:creator>Balazs</dc:creator> <category><![CDATA[DB2]]></category> <category><![CDATA[Perl]]></category> <category><![CDATA[Apache]]></category> <category><![CDATA[DBI]]></category> <category><![CDATA[IBM]]></category> <category><![CDATA[mod_perl]]></category> <category><![CDATA[PostgreSQL]]></category><guid isPermaLink="false">http://www.wdream.com/?p=289</guid> <description><![CDATA[I found this info in the PostgreSQL archives. Here are  2 methods: Best method from Dan Lyke: Apache::DBI will pool across Perl programs, and you don&#8217;t have to change anything in your scripts. Next best method from Gilles DAROLD: in &#8230; <a href="http://newpush.com/2009/05/connection-pooling-with-mod_perl/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>I found this info in the <a href="http://archives.postgresql.org/pgsql-general/2001-01/msg01362.php">PostgreSQL archives</a>.  Here are  2 methods:</p><p><strong>Best method</strong> from <em>Dan Lyke</em>: <code>Apache::DBI</code> will pool across Perl programs, and you don&#8217;t have to change anything in your scripts.</p><p><strong>Next best method</strong> from <em>Gilles DAROLD</em>: in your perl script use the following code</p><pre>use vars qw($dbh);

$dbh ||= DBI::connect($datasrc, $dbuser, $dbpwd);</pre><p>These can be use to create a database connection class in Perl that can handle transparently the connection / reconnection and disconnection for your code.  The end use code doesn&#8217;t have to be OO, thus the connection object can be reused in any legacy code.</p> ]]></content:encoded> <wfw:commentRss>http://newpush.com/2009/05/connection-pooling-with-mod_perl/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How to delete records with duplicate fields, such as dupplicate emails?</title><link>http://newpush.com/2009/05/how-to-delete-records-with-duplicate-fields-such-as-dupplicate-emails/</link> <comments>http://newpush.com/2009/05/how-to-delete-records-with-duplicate-fields-such-as-dupplicate-emails/#comments</comments> <pubDate>Mon, 04 May 2009 02:09:32 +0000</pubDate> <dc:creator>Balazs</dc:creator> <category><![CDATA[DB2]]></category> <category><![CDATA[IBM]]></category> <category><![CDATA[MySQL]]></category> <category><![CDATA[Oracle]]></category> <category><![CDATA[PostgreSQL]]></category><guid isPermaLink="false">http://www.wdream.com/?p=166</guid> <description><![CDATA[To delete records where only a field is duplicated, we can use a similar technique to the general duplicate removal technique: CREATE TABLE temp AS SELECT DISTINCT ON (email) * FROM table_to_deduplicate; DROP TABLE table_to_deduplicate; ALTER TABLE temp RENAME TO &#8230; <a href="http://newpush.com/2009/05/how-to-delete-records-with-duplicate-fields-such-as-dupplicate-emails/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>To delete records where only a field is duplicated, we can use a similar technique to the general duplicate removal technique:</p><pre>
CREATE TABLE temp AS SELECT DISTINCT ON (email) * FROM table_to_deduplicate;
DROP TABLE table_to_deduplicate;
ALTER TABLE temp RENAME TO table_to_deduplicate;
</pre><p>Be mindful of the fact that this process will not preserve the constraints on the original table. So if you have indexes, NOT NULL attributes, primary keys, foreign keys, you&#8217;ll have to recreate them.</p> ]]></content:encoded> <wfw:commentRss>http://newpush.com/2009/05/how-to-delete-records-with-duplicate-fields-such-as-dupplicate-emails/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How to delete dupplicate records in DB2, Oracle, MySQL, and PostgreSQL</title><link>http://newpush.com/2009/05/how-to-delete-dupplicate-records-in-db2-oracle-mysql-and-postgresql/</link> <comments>http://newpush.com/2009/05/how-to-delete-dupplicate-records-in-db2-oracle-mysql-and-postgresql/#comments</comments> <pubDate>Mon, 04 May 2009 02:06:59 +0000</pubDate> <dc:creator>Balazs</dc:creator> <category><![CDATA[DB2]]></category> <category><![CDATA[IBM]]></category> <category><![CDATA[MySQL]]></category> <category><![CDATA[Oracle]]></category> <category><![CDATA[PostgreSQL]]></category><guid isPermaLink="false">http://www.wdream.com/?p=164</guid> <description><![CDATA[To delete dupplicate records in SQL, the following sequence of commands will do the trick: CREATE TABLE temp AS SELECT DISTINCT * FROM table_to_deduplicate; DROP TABLE table_to_deduplicate; ALTER TABLE temp RENAME TO table_to_deduplicate; Be mindful of the fact that this &#8230; <a href="http://newpush.com/2009/05/how-to-delete-dupplicate-records-in-db2-oracle-mysql-and-postgresql/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>To delete dupplicate records in SQL, the following sequence of commands will do the trick:</p><pre>
CREATE TABLE temp AS SELECT DISTINCT * FROM table_to_deduplicate;
DROP TABLE table_to_deduplicate;
ALTER TABLE temp RENAME TO table_to_deduplicate;
</pre><p>Be mindful of the fact that this process will not preserve the constraints on the original table. So if you have indexes, NOT NULL attributes, primary keys, foreign keys, you&#8217;ll have to recreate them.</p> ]]></content:encoded> <wfw:commentRss>http://newpush.com/2009/05/how-to-delete-dupplicate-records-in-db2-oracle-mysql-and-postgresql/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>DB2 Client Install on Linux</title><link>http://newpush.com/2009/05/db2-client-install-on-linux/</link> <comments>http://newpush.com/2009/05/db2-client-install-on-linux/#comments</comments> <pubDate>Fri, 01 May 2009 18:41:17 +0000</pubDate> <dc:creator>Balazs</dc:creator> <category><![CDATA[DB2]]></category> <category><![CDATA[IBM]]></category><guid isPermaLink="false">http://www.wdream.com/?p=149</guid> <description><![CDATA[Allowing client machines to connect to a DB2 database is not as simple as regular databases. If you are using a client application, such as a Java web application, usually the application server has what is needed to configure a &#8230; <a href="http://newpush.com/2009/05/db2-client-install-on-linux/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>Allowing client machines to connect to a <b>DB2</b> database is not as simple as regular databases.  If you are using a client application, such as a Java web application, usually the application server has what is needed to configure a DB2 connection pool.  However, if you need to access DB2 from the command line, the process is a little more complicated.  Here are steps that will work with IBM DB2 v9.5 (example is for AMD64 architecture):</p><ul><li>Get download link from <a href="http://www-306.ibm.com/software/data/db2/9/download.html">http://www-306.ibm.com/software/data/db2/9/download.html</a></li><li>Run the following commands:<pre>wget &lt;use link retrieved above&gt;
tar xvzf v9.5_linuxx64_client.tar.gz
client/db2_install (accept defaults)
groupadd -g 999 db2iadm1
groupadd -g 998 db2fadm1
groupadd -g 997 dasadm1
useradd -u 1004 -g db2iadm1 -m -d /home/db2inst1 db2inst1
useradd -u 1003 -g db2fadm1 -m -d /home/db2fenc1 db2fenc1
useradd -u 1002 -g dasadm1 -m -d /home/dasusr1 dasusr1
/opt/ibm/db2/V9.5/instance/db2icrt -a server -u db2fenc1 db2inst1
cp /home/db2inst1/sqllib/db2profile /etc/profile.d/db2profile.sh</pre></li><li> If you run into errors during the install process such as:</p><blockquote><p style="font-family: Courier New,Courier,mono; font-size: 9px;">/root/client/db2/linuxamd64/install/db2_install: line 277: /root/tmp/db2_install.15043.rsp: Not a directory<br /> /root/client/db2/linuxamd64/install/db2_install: line 285: /root/tmp/db2_install.15043.rsp: Not a directory<br /> /root/client/db2/linuxamd64/install/db2setup: /tmp/db2.tmp.15043/db2/linuxamd64/install//db2chgpath: /bin/sh: bad interpreter: Permission denied<br /> /root/client/db2/linuxamd64/install/db2setup: /tmp/db2.tmp.15043/db2/linuxamd64/install//db2setup_exec: /bin/sh: bad interpreter: Permission denied</p></blockquote><p> Because <code>/tmp</code> is mounted with the <code>noexec</code> option the <code>db2_install</code> fails. It looks like it prefers to copy all the files to tmp then install (not a secure method).</p><p>Open up the platform specific <code>db2_install</code> file (noted above in the errors)</p><pre>db2/linuxamd64/install/db2_install</pre><p>Edit the <code>TMPDIR</code> line:</p><pre>TMPDIR=${DB2TMPDIR:-/tmp}</pre><p>to something like</p><pre>TMPDIR=${DB2TMPDIR:-/root/tmp}</pre><p>(*directory must exist or be created!)</p><p>Next, make sure <code>DB2TMPDIR</code> is a valid environment variable matching above:</p><pre> [root@server ~/] export DB2TMPDIR=~/tmp</pre><p>Then start the db2_install from the top level directory, IE</p><pre> ./db2_install</pre></li><li>there is one more step: adding the catalog entry to for the remote database which consists of two steps</li></ul><ul><li>create the instance alias using the following commands:<pre>
    db2 "catalog tcpip node remoteinst remote remotehost server 50000"
    db2 "terminate"
</pre></li><li> create the database alias using the following commands:</p><pre>
    db2 "catalog database testdb as remotedb at node remoteinst authentication server"
    db2 "terminate"
</pre></li></ul><p>References:</p><ul><li><a href="http://sqlrelay.sourceforge.net/sqlrelay/gettingstarted/db2.html">Getting Started With IBM DB2</a></li></ul> ]]></content:encoded> <wfw:commentRss>http://newpush.com/2009/05/db2-client-install-on-linux/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Served from: newpush.com @ 2012-05-22 11:23:56 by W3 Total Cache -->
