<?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>Andrei DANEASA &#187; jaybird</title>
	<atom:link href="http://www.webxpert.ro/andrei/tag/jaybird/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webxpert.ro/andrei</link>
	<description>Programming, database, security, Oracle, .NET, C#, PHP, Travel</description>
	<lastBuildDate>Tue, 18 Oct 2011 15:42:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Migrate from Firebird to Oracle step by step &#8211; Part 3</title>
		<link>http://www.webxpert.ro/andrei/2008/11/27/migrate-from-firebird-to-oracle-step-by-step-part-3/</link>
		<comments>http://www.webxpert.ro/andrei/2008/11/27/migrate-from-firebird-to-oracle-step-by-step-part-3/#comments</comments>
		<pubDate>Thu, 27 Nov 2008 08:28:53 +0000</pubDate>
		<dc:creator>andreiash</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[firebird]]></category>
		<category><![CDATA[jaybird]]></category>
		<category><![CDATA[jdbc]]></category>
		<category><![CDATA[jdk]]></category>
		<category><![CDATA[migration]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://www.webxpert.ro/andrei/?p=253</guid>
		<description><![CDATA[After we tested our JDBC connection to Firebird and then migrated from Firebird to MySQL we have just one more step to do: Migration from MySQL to Oracle using SQL Developer Migration Workbench For migrating MySQL to Oracle we need to have: Oracle Database XE (small footprint, free version of Oracle DB) SQL Developer Database [...]]]></description>
			<content:encoded><![CDATA[<p>After we tested our <a href="http://www.webxpert.ro/andrei/2008/11/26/migrate-from-firebird-to-oracle-step-by-step-part-1/">JDBC connection to Firebird</a> and then <a href="http://www.webxpert.ro/andrei/2008/11/26/migrate-from-firebird-to-oracle-step-by-step-part-2/">migrated from Firebird to MySQL</a> we have just one more step to do: </p>
<h2>Migration from MySQL to Oracle using SQL Developer Migration Workbench</h2>
<p>For migrating MySQL to Oracle we need to have:</p>
<ul>
<li><a href="http://www.oracle.com/technology/software/products/database/xe/index.html">Oracle Database XE</a> (small footprint, free version of Oracle DB)</li>
<li><a href="http://www.oracle.com/technology/software/products/sql/index.html">SQL Developer</a></li>
</ul>
<p><span id="more-253"></span><br />
Database installation should be very easy for this particular version, being the only one with a non-Java installer.<br />
SQL Developer installation consists in unzipping the archive.</p>
<p>Now the steps:</p>
<p><strong>1. Open SQL Developer and add MySQL Plugin.</strong> This is actually the ODBC driver for MySQL, the well-known MySQL connector. Without this you cannot connect to MySQL from SQL Developer.<br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o1.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o1-300x225.jpg" alt="" title="o1" width="300" height="225" class="aligncenter size-medium wp-image-254" /></a></p>
<p><strong>2. Create a connection to Oracle with a powerful user</strong> (preferable SYS or SYSTEM)<br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o2.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o2-300x225.jpg" alt="" title="o2" width="300" height="225" class="aligncenter size-medium wp-image-255" /></a></p>
<p><strong>3. Create another Oracle user/schema</strong> to hold the migration repository (things needed for the migration process)<br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o3.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o3-300x225.jpg" alt="" title="o3" width="300" height="225" class="aligncenter size-medium wp-image-256" /></a></p>
<p><strong>4. Grant this user with CONNECT and RESOURCE roles</strong><br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o4.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o4-300x224.jpg" alt="" title="o4" width="300" height="224" class="aligncenter size-medium wp-image-257" /></a></p>
<p><strong>5. Grant the user with CREATE VIEW system privilege</strong> and click <strong><em>Apply </em></strong><br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o5.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o5-300x224.jpg" alt="" title="o5" width="300" height="224" class="aligncenter size-medium wp-image-258" /></a></p>
<p><strong>6. Create a connection to the recently created user/schema</strong><br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o6.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o6-300x224.jpg" alt="" title="o6" width="300" height="224" class="aligncenter size-medium wp-image-259" /></a></p>
<p><strong>7. Transform this empty schema into a migration repository.</strong><br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o7.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o7-300x225.jpg" alt="" title="o7" width="300" height="225" class="aligncenter size-medium wp-image-260" /></a></p>
<p><strong>8. This will create in the empty schema some internal objects to hold all the migration data.</strong> It&#8217;s not necessary to deal with this objects directly<br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o8.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o8-300x224.jpg" alt="" title="o8" width="300" height="224" class="aligncenter size-medium wp-image-261" /></a></p>
<p><strong>9. Create a new connection to MySQL</strong><br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o9.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o9-300x225.jpg" alt="" title="o9" width="300" height="225" class="aligncenter size-medium wp-image-262" /></a></p>
<p><strong>10. Expand the connection, choose the desired database to migrate and click on &#8220;Capture Schema&#8221;</strong><br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o10.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o10-300x225.jpg" alt="" title="o10" width="300" height="225" class="aligncenter size-medium wp-image-263" /></a></p>
<p><strong>11. A window with captured objects will appear.</strong> You can also see what was captured by going to the &#8220;Captured Objects&#8221; pane on the left.<br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o11.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o11-300x225.jpg" alt="" title="o11" width="300" height="225" class="aligncenter size-medium wp-image-264" /></a></p>
<p><strong>12. Go to Captured Objects pane on the left and choose &#8220;Convert to Oracle Model&#8221;</strong><br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o12.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o12-300x225.jpg" alt="" title="o12" width="300" height="225" class="aligncenter size-medium wp-image-265" /></a></p>
<p><strong>13. Tune the default data mappings if needed.</strong><br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o13.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o13-300x224.jpg" alt="" title="o13" width="300" height="224" class="aligncenter size-medium wp-image-266" /></a></p>
<p><strong>14. A window with converted objects will appear.</strong> You can also see what was captured by going to the &#8220;Converted Objects&#8221; pane on the left. It&#8217;s very important not to have any errors at this stage. Having errors at one object means that the object will not appear in the DDL and will not be created in the Oracle Database.<br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o14.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o14-300x225.jpg" alt="" title="o14" width="300" height="225" class="aligncenter size-medium wp-image-267" /></a></p>
<p><strong>15. Go to Converted Objects pane on the left and choose &#8220;Generate&#8221;</strong>. This will generate a SQL script for creating all the objects in Oracle. The script will not be run yet, but just diplayed.<br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o15.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o15-300x225.jpg" alt="" title="o15" width="300" height="225" class="aligncenter size-medium wp-image-268" /></a></p>
<p><strong>16. Choose the connection under you want to run the script. </strong>This should be a user that have the permission to create other user, so this is recommended to run in under the first connection (SYS or SYSTEM)<br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o16.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o16-300x225.jpg" alt="" title="o16" width="300" height="225" class="aligncenter size-medium wp-image-269" /></a></p>
<p><strong>17. Run the script by pressing F5 or by using the appropriate icon</strong><br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o17.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o17-300x225.jpg" alt="" title="o17" width="300" height="225" class="aligncenter size-medium wp-image-270" /></a></p>
<p><strong>18. Create a new connection with the recently created user</strong>. This user has now all the objects migrated from MySQL, but no data.<br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o18.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o18-300x225.jpg" alt="" title="o18" width="300" height="225" class="aligncenter size-medium wp-image-271" /></a></p>
<p><strong>19. Go to Converted Objects pane on the left and choose &#8220;Move Data&#8221;</strong>.<br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o19.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o19-300x225.jpg" alt="" title="o19" width="300" height="225" class="aligncenter size-medium wp-image-272" /></a></p>
<p><strong>20. Select source and target connections.</strong> Make sure that the source is your MySQL connection and target is your recently created Oracle user (step 18).<br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o20.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o20-300x225.jpg" alt="" title="o20" width="300" height="225" class="aligncenter size-medium wp-image-273" /></a></p>
<p><strong>21. Wait for Data Move to finish.</strong> This will work on separate threads. If the database is too big, you can tune the COMMIT interval.<br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o21.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o21-300x225.jpg" alt="" title="o21" width="300" height="225" class="aligncenter size-medium wp-image-274" /></a></p>
<p><strong>22. Have a look at the Oracle migrated objects.</strong><br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o22.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/o22-300x225.jpg" alt="" title="o22" width="300" height="225" class="aligncenter size-medium wp-image-275" /></a></p>
<p>That was all!<br />
Enjoy!</p>
<p>Read also:</p>
<li><a href="http://www.webxpert.ro/andrei/2008/11/26/migrate-from-firebird-to-oracle-step-by-step-part-2/">Migrate from Firebird to Oracle step by step &#8211; Part 2</a></li>
<li><a href="http://www.webxpert.ro/andrei/2008/11/26/migrate-from-firebird-to-oracle-step-by-step-part-1/">Migrate from Firebird to Oracle step by step &#8211; Part 1</a></li>
<li><a href="http://www.webxpert.ro/andrei/2009/10/01/sql-developer-2-1-ea1-available/">SQL Developer 2.1 EA1 available</a></li>
<li><a href="http://www.webxpert.ro/andrei/2009/05/29/windows-authentication-connection-to-sql-server-from-sql-developer/">Windows authentication connection to SQL Server from SQL Developer</a></li>
<li><a href="http://www.webxpert.ro/andrei/2008/11/05/dbase-dbf-import-to-oracle-freeware-tool-console-version/">DBase DBF import to Oracle freeware tool &#8211; console version</a></li>
]]></content:encoded>
			<wfw:commentRss>http://www.webxpert.ro/andrei/2008/11/27/migrate-from-firebird-to-oracle-step-by-step-part-3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Migrate from Firebird to Oracle step by step &#8211; Part 2</title>
		<link>http://www.webxpert.ro/andrei/2008/11/26/migrate-from-firebird-to-oracle-step-by-step-part-2/</link>
		<comments>http://www.webxpert.ro/andrei/2008/11/26/migrate-from-firebird-to-oracle-step-by-step-part-2/#comments</comments>
		<pubDate>Wed, 26 Nov 2008 13:37:30 +0000</pubDate>
		<dc:creator>andreiash</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[firebird]]></category>
		<category><![CDATA[jaybird]]></category>
		<category><![CDATA[jdbc]]></category>
		<category><![CDATA[jdk]]></category>
		<category><![CDATA[migration]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://www.webxpert.ro/andrei/?p=218</guid>
		<description><![CDATA[Now that we connected successfully to Firebird through JDBC, let&#8217;s see if MySQL Migration Tool can connect and migrate the data to MySQL, our intermediary stage for migrating to Oracle. Migration from Firebird to MySQL In addition to what we installed during Part 1, we need to install MySQL 5.0 Community Server, the free version, [...]]]></description>
			<content:encoded><![CDATA[<p>Now that <a href="http://www.webxpert.ro/andrei/2008/11/26/migrate-from-firebird-to-oracle-step-by-step-part-1">we connected successfully to Firebird through JDBC</a>, let&#8217;s see if MySQL Migration Tool can connect and migrate the data to MySQL, our intermediary stage for migrating to Oracle.</p>
<h2>Migration from Firebird to MySQL</h2>
<p>In addition to what we installed during <a href="http://www.webxpert.ro/andrei/2008/11/26/migrate-from-firebird-to-oracle-step-by-step-part-2">Part 1</a>, we need to install <a href="http://dev.mysql.com/get/Downloads/MySQL-5.0/mysql-5.0.67-win32.zip/from/http://mysql.easynet.be/">MySQL 5.0 Community Server</a>, the free version, which comes by default (not the Essential Edition) with MySQL Migration Toolkit.<br />
<span id="more-218"></span><br />
<strong>1. Start MySQL Migration Toolkit</strong><br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/4.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/4-300x231.jpg" alt="" title="4" width="300" height="231" class="aligncenter size-medium wp-image-221" /></a></p>
<p><strong>2. Go for Direct Migration</strong><br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/5.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/5-300x232.jpg" alt="" title="5" width="300" height="232" class="aligncenter size-medium wp-image-222" /></a></p>
<p><strong>3. Set the Source connection as:</strong></p>
<ul>
<li>Database System: Generic JDBC</li>
<li>Class Name: org.firebirdsql.jdbc.FBDriver</li>
<li>Connection string: jdbc:firebirdsql:localhost/3050:employee</li>
<li>Username: sysdba</li>
<li>Password: masterkey</li>
</ul>
<p><a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/6.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/6-300x231.jpg" alt="" title="6" width="300" height="231" class="aligncenter size-medium wp-image-223" /></a></p>
<p><strong>4. Set the Target connection as:</strong></p>
<ul>
<li>Database System: MySQL Server</li>
<li>Hostname: localhost</li>
<li>Port: 3306</li>
<li>Username: root</li>
<li>Password: <your Password here></li>
</ul>
<p><a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/7.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/7-300x231.jpg" alt="" title="7" width="300" height="231" class="aligncenter size-medium wp-image-224" /></a></p>
<p><strong>5. Get Schema information</strong><br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/8.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/8-300x220.jpg" alt="" title="8" width="300" height="220" class="aligncenter size-medium wp-image-229" /></a></p>
<p><strong>6. Pick your desired schema to migrate</strong><br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/9.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/9-300x221.jpg" alt="" title="9" width="300" height="221" class="aligncenter size-medium wp-image-226" /></a></p>
<p><strong>7. Reverse engineer the schema</strong><br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/10.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/10-300x220.jpg" alt="" title="10" width="300" height="220" class="aligncenter size-medium wp-image-227" /></a></p>
<p><strong>8. Select objects to migrate  (default all)</strong><br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/11.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/11-300x220.jpg" alt="" title="11" width="300" height="220" class="aligncenter size-medium wp-image-228" /></a></p>
<p><strong>9. Set object mapping (go for Generic first)</strong><br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/12.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/12-300x220.jpg" alt="" title="12" width="300" height="220" class="aligncenter size-medium wp-image-230" /></a></p>
<p><strong>10. Migrate the Metadata and have the SQL that is generating tables in MySQL</strong><br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/13.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/13-300x219.jpg" alt="" title="13" width="300" height="219" class="aligncenter size-medium wp-image-231" /></a></p>
<p><strong>11. Manual edit the Generated code (no changes here for my example)</strong><br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/14.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/14-300x220.jpg" alt="" title="14" width="300" height="220" class="aligncenter size-medium wp-image-232" /></a></p>
<p><strong>12. Create objects directly from the migration tool or save the SQL for running it later (do it online)</strong><br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/15.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/15-300x220.jpg" alt="" title="15" width="300" height="220" class="aligncenter size-medium wp-image-233" /></a></p>
<p><strong>13. Execution of the DDL against the target database</strong><br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/16.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/16-300x220.jpg" alt="" title="16" width="300" height="220" class="aligncenter size-medium wp-image-234" /></a></p>
<p><strong>14. Execution report</strong><br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/17.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/17-300x220.jpg" alt="" title="17" width="300" height="220" class="aligncenter size-medium wp-image-235" /></a></p>
<p><strong>15. Data Mapping options, transfer data online or generate a script for running it later (do it online)</strong><br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/18.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/18-300x219.jpg" alt="" title="18" width="300" height="219" class="aligncenter size-medium wp-image-236" /></a></p>
<p><strong>16. Data movement from Firebird to MySQL</strong><br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/191.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/191-300x220.jpg" alt="" title="191" width="300" height="220" class="aligncenter size-medium wp-image-243" /></a></p>
<p><strong>17. Execution report</strong><br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/20.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/20-300x220.jpg" alt="" title="20" width="300" height="220" class="aligncenter size-medium wp-image-238" /></a></p>
<p>That was it!<br />
The next step is <a href="http://www.webxpert.ro/andrei/2008/11/26/migrate-from-firebird-to-oracle-step-by-step-part-3/">migration from MySQL to Oracle</a></p>
<p>Good luck!</p>
<p>Read also:</p>
<li><a href="http://www.webxpert.ro/andrei/2008/11/27/migrate-from-firebird-to-oracle-step-by-step-part-3/">Migrate from Firebird to Oracle step by step &#8211; Part 3</a></li>
<li><a href="http://www.webxpert.ro/andrei/2008/11/26/migrate-from-firebird-to-oracle-step-by-step-part-1/">Migrate from Firebird to Oracle step by step &#8211; Part 1</a></li>
<li><a href="http://www.webxpert.ro/andrei/2009/10/01/sql-developer-2-1-ea1-available/">SQL Developer 2.1 EA1 available</a></li>
<li><a href="http://www.webxpert.ro/andrei/2009/05/29/windows-authentication-connection-to-sql-server-from-sql-developer/">Windows authentication connection to SQL Server from SQL Developer</a></li>
<li><a href="http://www.webxpert.ro/andrei/2008/11/05/dbase-dbf-import-to-oracle-freeware-tool-console-version/">DBase DBF import to Oracle freeware tool &#8211; console version</a></li>
]]></content:encoded>
			<wfw:commentRss>http://www.webxpert.ro/andrei/2008/11/26/migrate-from-firebird-to-oracle-step-by-step-part-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Migrate from Firebird to Oracle step by step &#8211; Part 1</title>
		<link>http://www.webxpert.ro/andrei/2008/11/26/migrate-from-firebird-to-oracle-step-by-step-part-1/</link>
		<comments>http://www.webxpert.ro/andrei/2008/11/26/migrate-from-firebird-to-oracle-step-by-step-part-1/#comments</comments>
		<pubDate>Wed, 26 Nov 2008 10:44:50 +0000</pubDate>
		<dc:creator>andreiash</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[firebird]]></category>
		<category><![CDATA[jaybird]]></category>
		<category><![CDATA[jdbc]]></category>
		<category><![CDATA[jdk]]></category>
		<category><![CDATA[migration]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://www.webxpert.ro/andrei/?p=206</guid>
		<description><![CDATA[In order to do an automatic migration from Firebird to Oracle the only fully automatic process for Tables and Data is make a 2-step migration: - Firebird to MySQL with MySQL Migration tool - MySQL to Oracle with SQL Developer Migration Workbench ..but first: Firebird connection through JDBC on Windows I downloaded Firebird 1.5 which [...]]]></description>
			<content:encoded><![CDATA[<p>In order to do an automatic migration from Firebird to Oracle the only fully automatic process for Tables and Data is make a 2-step migration:<br />
- Firebird to MySQL with MySQL Migration tool<br />
- MySQL to Oracle with SQL Developer Migration Workbench<br />
..but first:</p>
<h2>Firebird connection through JDBC on Windows</h2>
<p><span id="more-206"></span><br />
I downloaded <a href="http://www.firebirdsql.org/">Firebird</a> 1.5 which comes with a demo database Employee.fbd.<br />
After this I downloaded <a href="http://www.squirrelsql.org/">SquirrelSQL</a>, a cross-platform open-source JavaSQL Client which uses JDBC connection to a large number of databases. Firebird is one of them and as long as Firebird comes just with a console application, I found SquirrelSQL very useful.</p>
<p>In order to connect to Firebird through JDBC you will need </p>
<ul>
<li>Java JDK (I used <a href="http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/jdk-1_5_0_16-windows-i586-p.exe?BundledLineItemUUID=.rVIBe.meGcAAAEdWIhWh9hg&#038;OrderID=QdFIBe.mEJQAAAEdQYhWh9hg&#038;ProductID=OBFIBe.n9OkAAAEaArxVHpdD&#038;FileName=/jdk-1_5_0_16-windows-i586-p.exe">1.5</a>)</li>
<li><a href="http://prdownloads.sourceforge.net/firebird/Jaybird-2.1.6JDK_1.5.zip">JayBird JDBC Driver</a> for Firebird.</li>
</ul>
<p><strong>1. Install JDK</strong> into a convenient location, preferred C:\Java in order not to use spaces in the path.<br />
<strong>2. Copy JayBird jar file to C:\Java\lib</strong> or add it to the CLASSPATH environment variable<br />
<strong>3. Add jaybird21.dll to system path</strong> (I copied it to the system32 folder).<br />
<strong>4. Start SquirrelSQL</strong> and try to connect to the Firebird JayBird driver in the drivers pane until it will appear with a blue check icon.<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/1_1.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/1_1-147x300.jpg" alt="" title="1_1" width="147" height="300" class="aligncenter size-medium wp-image-211" /></a><br />
<strong>5. The class name should be org.firebirdsql.jdbc.FBDriver</strong> and make sure that jaybird jar file is present into the Java Class path. If it&#8217;s blue then means that the driver is active and we can test it.<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/1_2.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/1_2-300x263.jpg" alt="" title="1_2" width="300" height="263" class="aligncenter size-medium wp-image-212" /></a><br />
<strong>6. We should first create a new alias for employee database in the Firebird aliases.conf file.</strong> After creating such an alias, the connection string should be &#8220;jdbc:firebirdsql:localhost/3050:employee&#8221;, username/password are sysdba/masterkey (default ones). <a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/1_3.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/1_3-300x238.jpg" alt="" title="1_3" width="300" height="238" class="aligncenter size-medium wp-image-213" /></a><br />
<strong>7. You are connected.</strong> you will see the objects list, data, DDL, whatever you need.<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/1_4.jpg"><img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/11/1_4-300x176.jpg" alt="" title="1_4" width="300" height="176" class="aligncenter size-medium wp-image-214" /></a></p>
<p><em>The next step is <a href="http://www.webxpert.ro/andrei/2008/11/26/migrate-from-firebird-to-oracle-step-by-step-part-2">migration from Firebird to MySQL</a> (the temporary host)</em></p>
<p>Good luck!</p>
<p>Read also:</p>
<li><a href="http://www.webxpert.ro/andrei/2008/11/27/migrate-from-firebird-to-oracle-step-by-step-part-3/">Migrate from Firebird to Oracle step by step &#8211; Part 3</a></li>
<li><a href="http://www.webxpert.ro/andrei/2008/11/26/migrate-from-firebird-to-oracle-step-by-step-part-2/">Migrate from Firebird to Oracle step by step &#8211; Part 2</a></li>
<li><a href="http://www.webxpert.ro/andrei/2009/10/01/sql-developer-2-1-ea1-available/">SQL Developer 2.1 EA1 available</a></li>
<li><a href="http://www.webxpert.ro/andrei/2009/05/29/windows-authentication-connection-to-sql-server-from-sql-developer/">Windows authentication connection to SQL Server from SQL Developer</a></li>
<li><a href="http://www.webxpert.ro/andrei/2008/11/05/dbase-dbf-import-to-oracle-freeware-tool-console-version/">DBase DBF import to Oracle freeware tool &#8211; console version</a></li>
]]></content:encoded>
			<wfw:commentRss>http://www.webxpert.ro/andrei/2008/11/26/migrate-from-firebird-to-oracle-step-by-step-part-1/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

