<?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>instantOLAP &#187; JDBC</title>
	<atom:link href="http://www.instantolap.com/tag/jdbc/feed" rel="self" type="application/rss+xml" />
	<link>http://www.instantolap.com</link>
	<description>Business intelligence for the Java Platform</description>
	<lastBuildDate>Thu, 12 Aug 2010 18:53:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>JDBC drivers</title>
		<link>http://www.instantolap.com/howtos/jdbc-drivers#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.instantolap.com/howtos/jdbc-drivers#comments</comments>
		<pubDate>Mon, 18 Jan 2010 13:12:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HowTos]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[JDBC]]></category>

		<guid isPermaLink="false">http://www.instantolap.com/?p=508</guid>
		<description><![CDATA[JDBC drivers are needed to connect instantOLAP to its source databases. But where to find them and how to install drivers in Tomcat?]]></description>
			<content:encoded><![CDATA[<p>Before you can connect a database server with instantOLAP or any other Java application, you need a to install a matching database driver. For Java systems, you will need a driver which implements the Java JDBC standard and almost all database vendors provide a JDBC driver for their product.</p>
<p>Because of copyright reasons, only a few drivers are included in the instantOLAP standard distribution (an open source driver for Sybase and Microsoft SQL-Server and a second driver for HSQLDB databases). For all other database servers, you can find the driver in the internet. This is a list of the common database servers and some internet addresses where to find the driver.</p>
<p><span id="more-508"></span></p>
<div class='toc wptoc'>
<h2>Contents</h2>
<ol class='toc-odd level-1'>
	<li>
		<a href="#How_to_install_a_new_driver_under_Tomcat">How to install a new driver under Tomcat</a>
	</li>
	<li>
		<a href="#How_to_use_drivers_in_instantOLAP">How to use drivers in instantOLAP</a>
	</li>
	<li>
		<a href="#JDBC_drivers_for_database_servers">JDBC drivers for database servers</a>
		<ol class='toc-even level-2'>
			<li>
				<a href="#Microsoft_SQL-Server">Microsoft SQL-Server</a>
				<ol class='toc-odd level-3'>
					<li>
						<a href="#Microsoft_SQL-Server_original_driver">Microsoft SQL-Server (original driver)</a>
					</li>
					<li>
						<a href="#Microsoft_SQL-Server_jDTS_open_source_driver">Microsoft SQL-Server (jDTS open source driver)</a>
					</li>
				</ol>
			<li>
				<a href="#MySQL">MySQL</a>
			</li>
			<li>
				<a href="#Oracle">Oracle</a>
			</li>
			<li>
				<a href="#Sybase">Sybase</a>
				<ol class='toc-odd level-3'>
					<li>
						<a href="#Sybase_original_Sybase_driver_jConnect">Sybase (original Sybase driver jConnect)</a>
					</li>
					<li>
						<a href="#Sybase_jDTS_open_source_driver">Sybase (jDTS open source driver)</a>
					</li>
				</ol>
			<li>
				<a href="#IBM_DB2">IBM DB/2</a>
			</li>
			<li>
				<a href="#Informix">Informix</a>
			</li>
</ol>
</ol>
</ol>
</div>
<div class='wptoc-end'>&nbsp;</div>
<span id="How_to_install_a_new_driver_under_Tomcat"><h2>How to install a new driver under Tomcat</h2></span>
<p>If you use Apache Tomcat as your Application Server (which is the default Application Server installed together with instantOLAP), installing a new driver is very simple:</p>
<ol>
<li>Download the driver from the vendors driver page</li>
<li>If neccesary, extract the driver or execute the driver installer to extract the driver files onto your hard disk.</li>
<li>Locate the driver files (they always end with .jar) and copy them into the library folder of your Tomcat server. Depending on the Tomcat version, the library folder is &lt;tomcat&gt;/common/lib (for Tomcat 5.5) or &lt;tomcat&gt;/lib (for Tomcat 6)</li>
<li>Restart Tomcat</li>
</ol>
<span id="How_to_use_drivers_in_instantOLAP"><h2>How to use drivers in instantOLAP</h2></span>
<p>After you installed the driver in your Application Server you can use from instantOLAP. Generally there are two different ways to access a driver or database: You can connect the server directly out of instantOLAP or you can use a predefined datasource, which has to be prepared inside the Application Server. For testing, developing or small installations, we recommend the first alternative.</p>
<p>To connect a database directly out of instantOLAP, simply use the &#8220;Add datasource&#8221; button when you are inside the &#8220;Datasources&#8221; section of a configuration. This will open a datasource wizard, which asks you for the name, driver, connection URL and credentials of the target database. Refer our <a href="http://www.instantolap.com/docs/reference_2_6_1_en/4_3_1.html#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed">online documentation</a> for more details.</p>
<span id="JDBC_drivers_for_database_servers"><h2>JDBC drivers for database servers</h2></span>
<span id="Microsoft_SQL-Server"><h3>Microsoft SQL-Server</h3></span>
<p>There are at least two good drivers for the Microsofts SQL-Server: The <strong>original Microsoft JDBC driver</strong> and the open source driver <strong>jDTS </strong>for Microsoft SQL and Sybase databases, which is included in the instantOLAP standard distribution.</p>
<span id="Microsoft_SQL-Server_original_driver"><h4>Microsoft SQL-Server (original driver)</h4></span>
<p>The original Microsoft JDBC driver can be found and downloaded from the Microsoft page.</p>
<ul>
<li>Download: <a rel="nofollow" target="_blank" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=99B21B65-E98F-4A61-B811-19912601FDC9&amp;displaylang=en">Microsoft SQL Server JDBC Driver 2.0</a></li>
<li>Driver file(s): sqljdbc.jar</li>
<li>Driver class: com.microsoft.sqlserver.jdbc.SQLServerDriver</li>
<li>Connection-URL: jdbc:sqlserver://&lt;server&gt;[:&lt;port&gt;];databasename=&lt;database&gt;</li>
</ul>
<p>Escpecially in older versions of the originial driver, it is important to know how to form the connection URL. You must include the database name in your URL, otherwise you will be able to see the tables but not to access their content.</p>
<span id="Microsoft_SQL-Server_jDTS_open_source_driver"><h4>Microsoft SQL-Server (jDTS open source driver)</h4></span>
<p>jDTS is an open source alternative for Microsoft SQL and Sybase databases and already included in the instantOLAP standard distribution.</p>
<ul>
<li>Download: <a rel="nofollow" target="_blank" href="http://jtds.sourceforge.net/">http://jtds.sourceforge.net</a></li>
<li>Driver files(s):Â  jdts-&lt;version&gt;.jar</li>
<li>Driver class: net.sourceforge.jtds.jdbc.Driver</li>
<li>Connection-URL: jdbc:jtds:sqlserver://&lt;server&gt;[:&lt;port&gt;][/&lt;database&gt;]</li>
</ul>
<span id="MySQL"><h3>MySQL</h3></span>
<p>When using MySQL databases, make sure to use the most current available driver version, because older drivers may cause problems with newer versions of the database.</p>
<ul>
<li>Download page: <a rel="nofollow" target="_blank" href="http://dev.mysql.com/downloads/#connector-j">http://dev.mysql.com/downloads/#connector-j</a></li>
<li>Driver file(s): mysql-connector-java-&lt;version&gt;-bin.jar</li>
<li>Driver class: com.mysql.jdbc.Driver</li>
<li>Connection-URL: jdbc:mysql://&lt;server&gt;/&lt;database&gt;</li>
</ul>
<span id="Oracle"><h3>Oracle</h3></span>
<p>For Oracle databases it is imporant to use the correct version of the driver which matches the version of your database server. The drivers for all version can be downloaded from the Oracle page, but you will need to create an account before (if you don&#8217;t have already).</p>
<ul>
<li>Download: <a rel="nofollow" target="_blank" href="http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html">Oracle JDBC/UCP Download Page</a></li>
<li>Driver file(s): ojdbc15.jar or ojdbc16.jar</li>
<li>Driver class: oracle.jdbc.driver.OracleDriver</li>
<li>Connection-URL: jdbc:oracle:thin:@&lt;server&gt;:1521:&lt;database&gt;</li>
</ul>
<span id="Sybase"><h3>Sybase</h3></span>
<p>Like in the case of Microsoft SQL Server, you can use the original Sybase driver or the open source driver jDTS to connect a Sybase driver.</p>
<span id="Sybase_original_Sybase_driver_jConnect"><h4>Sybase (original Sybase driver jConnect)</h4></span>
<ul>
<li>Download: <a rel="nofollow" target="_blank" href="http://www.sybase.com/products/allproductsa-z/softwaredeveloperkit/jconnect">jConnect &#8211; Software Developer Kit</a></li>
<li>Driver file(s): jconn3.jar</li>
<li>Driver class: com.sybase.jdbc2.jdbc.SybDriver</li>
<li>Connection-URL: jdbc:sybase:Tds:&lt;server&gt;[:&lt;port&gt;]/&lt;database&gt;</li>
</ul>
<span id="Sybase_jDTS_open_source_driver"><h4>Sybase (jDTS open source driver)</h4></span>
<p>jDTS is an open source alternative for Microsoft SQL and Sybase databases and already included in the instantOLAP standard distribution.</p>
<ul>
<li>Download: <a rel="nofollow" target="_blank" href="http://jtds.sourceforge.net/">http://jtds.sourceforge.net</a></li>
<li>Driver file(s): jtds-&lt;version&gt;.jar</li>
<li>Driver class: net.sourceforge.jtds.jdbc.Driver</li>
<li>Connection-URL: jdbc:jtds:sybase://&lt;server&gt;[:&lt;port&gt;][/&lt;database&gt;]</li>
</ul>
<span id="IBM_DB2"><h3>IBM DB/2</h3></span>
<p>For all current versions of DB/2 you can use the Universal Database Driver (UDB) from DB/2. However, when you wan&#8217;t to connect a DB/2 database running on a mainframe system, you&#8217;ll have to purchase an additional license from IBM.</p>
<ul>
<li>Download: <a rel="nofollow" target="_blank" href="http://www-01.ibm.com/software/data/db2/ad/java.html">IBM &#8211; Application Development with DB/2</a> (Follow the links and download the DB/2 client)</li>
<li>Driver file(s): db2jcc.jar</li>
<li>Driver class: com.ibm.db2.jcc.DB2Driver</li>
<li>Connection-URL: jdbc:db2://&lt;server&gt;[:&lt;port&gt;]/&lt;database&gt;</li>
</ul>
<span id="Informix"><h3>Informix</h3></span>
<p>Since IBM bought the Informix database, you can find the Informix drivers on the IBM homepage now, too:</p>
<ul>
<li>Download: <a rel="nofollow" target="_blank" href="http://www14.software.ibm.com/webapp/download/search.jsp?go=y&amp;rs=ifxjdbc">IBM Software Downloads</a></li>
<li>Driver file(s): ifxjdbc.jar</li>
<li>Driver class: com.informix.jdbc.IfxDriver</li>
<li>Connection-URL: jdbc:informix-sqli://&lt;host&gt;:&lt;port&gt;/&lt;database&gt;:informixserver=&lt;dbservername&gt;</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.instantolap.com/howtos/jdbc-drivers/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk (enhanced) (user agent is rejected)

Served from: www.instantolap.com @ 2010-09-06 22:58:48 -->