<?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>FanaticZine &#187; Business Intelligence</title>
	<atom:link href="http://www.fanaticzine.com/index.php/category/business-intelligence/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fanaticzine.com</link>
	<description>Creativity Simplified</description>
	<lastBuildDate>Wed, 09 Mar 2011 05:52:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Pentaho Server goes Offline every night…</title>
		<link>http://www.fanaticzine.com/index.php/2010/08/pentaho-server-goes-offline-every-night%e2%80%a6/</link>
		<comments>http://www.fanaticzine.com/index.php/2010/08/pentaho-server-goes-offline-every-night%e2%80%a6/#comments</comments>
		<pubDate>Tue, 10 Aug 2010 05:20:45 +0000</pubDate>
		<dc:creator>z7oofy</dc:creator>
				<category><![CDATA[Business Intelligence]]></category>
		<category><![CDATA[Pentaho]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Offline Every night]]></category>
		<category><![CDATA[Pentaho B.I Server]]></category>

		<guid isPermaLink="false">http://www.fanaticzine.com/?p=324</guid>
		<description><![CDATA[Are you experiencing the same problem as the title ? are you working with a MySQL DB server. Then the cause for this problem is. The MySQL driver remove it’s connection from the connection pool due to inactivity after few hours if the server is not processing anything though the db connection. There is a [...]]]></description>
			<content:encoded><![CDATA[<p>Are you experiencing the same problem as the title ? are you working with a MySQL DB server. Then the cause for this problem is. The MySQL driver remove it’s connection from the connection pool due to inactivity after few hours if the server is not processing anything though the db connection.</p>
<p>There is a solution introduced in the Pentaho forum for this, you can find the thread with the following link.</p>
<p><a title="Pentaho Forum Post" href="http://forums.pentaho.com/showthread.php?54939-Pentaho-Server-falls-each-night-..&amp;p=178067#post178067" target="_blank">http://forums.pentaho.com/showthread.php?54939-Pentaho-Server-falls-each-night-..&amp;p=178067#post178067</a></p>
<p>But above forum post is based on the JBoss server. My intention with this post is to implement the same on the tomcat server since the file structure is a bit different. Ok without further due, let get into action.</p>
<p>01.    Download the C3P0 driver from SourceForge<br />
02.    Extract the  <strong>c3p0-0.9.1.2.jar</strong> file into<strong> \biserver-ce\tomcat\common\lib\</strong><br />
03.    Open the <strong>mysql5.hibernate.cfg.xml</strong> XML file in the <strong>\biserver-ce\pentaho-solutions\system\hibernate\</strong> folder<br />
04.    Add the following code into the file</p>
<blockquote><p>&lt;!&#8212; hibernate c3p0 settings &#8212;&gt;</p>
<p>&lt;property  name=&#8221;connection.provider_class&#8221;&gt;org.hibernate.connection.C3P0ConnectionProvider&lt;/property&gt;<br />
&lt;property  name=&#8221;hibernate.c3p0.acquire_increment&#8221;&gt;3&lt;/property&gt;<br />
&lt;property  name=&#8221;hibernate.c3p0.idle_test_period&#8221;&gt;10&lt;/property&gt;<br />
&lt;property name=&#8221;hibernate.c3p0.min_size&#8221;&gt;5&lt;/property&gt;<br />
&lt;property  name=&#8221;hibernate.c3p0.max_size&#8221;&gt;75&lt;/property&gt;<br />
&lt;property name=&#8221;hibernate.c3p0.max_statements&#8221;&gt;0&lt;/property&gt;<br />
&lt;property name=&#8221;hibernate.c3p0.timeout&#8221;&gt;25200&lt;/property&gt;<br />
&lt;property name=&#8221;hibernate.c3p0.preferredTestQuery&#8221;&gt;select  1&lt;/property&gt;<br />
&lt;property  name=&#8221;hibernate.c3p0.testConnectionOnCheckout&#8221;&gt;true&lt;/property&gt;</p></blockquote>
<p>05.    Save and Restart the B.I Server or Service</p>
<p>That should do the trick…</p>
<p>( When you are editing the XML file, please be careful with the quotation characters )</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fanaticzine.com/index.php/2010/08/pentaho-server-goes-offline-every-night%e2%80%a6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to connect to a Sybase SQL Anywhere DB, with Kettle.</title>
		<link>http://www.fanaticzine.com/index.php/2010/03/how-to-connect-to-a-sybase-sql-anywhere-db-with-kettle/</link>
		<comments>http://www.fanaticzine.com/index.php/2010/03/how-to-connect-to-a-sybase-sql-anywhere-db-with-kettle/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 17:35:49 +0000</pubDate>
		<dc:creator>z7oofy</dc:creator>
				<category><![CDATA[Business Intelligence]]></category>
		<category><![CDATA[Kettle (PDI)]]></category>
		<category><![CDATA[Pentaho]]></category>
		<category><![CDATA[Connect to Sybase]]></category>
		<category><![CDATA[jconn.jar]]></category>
		<category><![CDATA[Pentaho Kettle]]></category>
		<category><![CDATA[Sybase SQL Anywhere]]></category>

		<guid isPermaLink="false">http://www.fanaticzine.com/?p=280</guid>
		<description><![CDATA[Search not more ! here it is 01.  First you might want to, download the proper JDBC Driver from the Sybase website. download the ZIP file and find the jconn.jar file which is located in the \ jConnect-6_0\classes folder. 02.  Place the jconn.jar file in your {Kettle Folder}\libext\JDBC\ folder And now the database settings. 03.  [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Search not more ! here it is <img src='http://www.fanaticzine.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </strong></p>
<p>01.  First you might want to, <a href="http://www.sybase.com/detail?id=1041013" target="_blank">download</a> the proper JDBC Driver from the Sybase website. download the ZIP file and find the <strong>jconn.jar</strong> file which is located in the \ <em>jConnect-6_0\classes </em>folder<em>.</em><br />
02.  Place the<strong> jconn.jar</strong> file in your <em>{Kettle Folder}\libext\JDBC\</em> folder</p>
<div id="attachment_281" class="wp-caption alignnone" style="width: 310px"><a href="http://www.fanaticzine.com/wp-content/uploads/2010/03/Sybase_3.jpg"><img class="size-medium wp-image-281  " title="Sybase_3" src="http://www.fanaticzine.com/wp-content/uploads/2010/03/Sybase_3-300x227.jpg" alt="" width="300" height="227" /></a><p class="wp-caption-text">Kettle installation\libext\JDBC folder </p></div>
<p>And now the database settings.</p>
<p>03.  Start Kettle, and bring up your DB settings window, and configure is as follows.</p>
<blockquote><p><strong>Connection Type : </strong>Generic database<br />
<strong>Access </strong> :  Native(JDBC)</p></blockquote>
<p>And under DB access settings</p>
<blockquote><p><strong>Custom Connection URL     :</strong> jdbc:sybase:Tds:&lt;HOST ADDRESS&gt;:&lt;PORT NUMBER&gt;/&lt;DB NAME&gt;<br />
<strong>Custom Driver Class Name</strong> : com.sybase.jdbc3.jdbc.SybDriver<br />
<strong>User Name</strong> : &lt;USER NAME&gt;<br />
<strong>Password                                             :</strong> &lt;DB PASSWORD&gt;</p></blockquote>
<p>Yup that should be it ! now test your connection, if you did everything correct, Wolah !!</p>
<p><a href="http://www.fanaticzine.com/wp-content/uploads/2010/03/sybase_2.jpg"><img class="alignnone size-full wp-image-291" title="sybase_2" src="http://www.fanaticzine.com/wp-content/uploads/2010/03/sybase_2.jpg" alt="" width="500" height="400" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.fanaticzine.com/index.php/2010/03/how-to-connect-to-a-sybase-sql-anywhere-db-with-kettle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Couldn&#8217;t close query, Couldn&#8217;t get row from result set</title>
		<link>http://www.fanaticzine.com/index.php/2009/11/couldnt-close-query-couldnt-get-row-from-result-set/</link>
		<comments>http://www.fanaticzine.com/index.php/2009/11/couldnt-close-query-couldnt-get-row-from-result-set/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 10:23:40 +0000</pubDate>
		<dc:creator>z7oofy</dc:creator>
				<category><![CDATA[Business Intelligence]]></category>
		<category><![CDATA[Kettle (PDI)]]></category>
		<category><![CDATA[Pentaho]]></category>
		<category><![CDATA[Communications link failure due to underlying exception]]></category>
		<category><![CDATA[Couldn't close query]]></category>
		<category><![CDATA[Couldn't get row from result set]]></category>

		<guid isPermaLink="false">http://www.fanaticzine.com/?p=220</guid>
		<description><![CDATA[Today when I was running one of my kettle scripts against a large Data Ware House DB, an error popped out in my log, something looks like this, Unexpected error : org.pentaho.di.core.exception.KettleDatabaseException: Couldn&#8217;t get row from result set and further Unexpected error closing query : org.pentaho.di.core.exception.KettleDatabaseException: Couldn&#8217;t close query: resultset or prepared statements Communications link [...]]]></description>
			<content:encoded><![CDATA[<p>Today when I was running one of my kettle scripts against a large Data Ware House DB, an error popped out in my log, something looks like this,</p>
<blockquote><p>Unexpected error :<br />
org.pentaho.di.core.exception.KettleDatabaseException:<br />
Couldn&#8217;t get row from result set</p></blockquote>
<p>and further</p>
<blockquote><p>Unexpected error closing query : org.pentaho.di.core.exception.KettleDatabaseException:<br />
Couldn&#8217;t close query: resultset or prepared statements<br />
Communications link failure due to underlying exception: ** BEGIN NESTED EXCEPTION ** java.net.SocketException<br />
MESSAGE: Connection reset STACKTRACE:</p>
<p>java.net.SocketException: Connection reset</p></blockquote>
<p>This is simply because, after long time in execution the MySQL server get confused at somewhere in the corner and decides to not to feed the rows back to JDBC driver. As  I found in MySQL massage board placing SQL_NO_CACHE next  to your SELECT keyword (SELECT SQL_NO_CACHE * FROM users) should solve the issue.</p>
<p>I will confirm, if this works since my script is still running, so far so good!</p>
<p>To be verified….</p>
<p>REF :: <a href="http://forums.mysql.com/read.php?39,203407,217196#msg-217196">http://forums.mysql.com/read.php?39,203407,217196#msg-217196</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.fanaticzine.com/index.php/2009/11/couldnt-close-query-couldnt-get-row-from-result-set/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

